- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
125 lines
3.7 KiB
Java
125 lines
3.7 KiB
Java
package androidx.core.view;
|
|
|
|
import androidx.annotation.RestrictTo;
|
|
import androidx.annotation.VisibleForTesting;
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class HapticFeedbackConstantsCompat {
|
|
public static final int CLOCK_TICK = 4;
|
|
public static final int CONFIRM = 16;
|
|
public static final int CONTEXT_CLICK = 6;
|
|
public static final int DRAG_START = 25;
|
|
|
|
@VisibleForTesting
|
|
static final int FIRST_CONSTANT_INT = 0;
|
|
public static final int FLAG_IGNORE_VIEW_SETTING = 1;
|
|
public static final int GESTURE_END = 13;
|
|
public static final int GESTURE_START = 12;
|
|
public static final int GESTURE_THRESHOLD_ACTIVATE = 23;
|
|
public static final int GESTURE_THRESHOLD_DEACTIVATE = 24;
|
|
public static final int KEYBOARD_PRESS = 3;
|
|
public static final int KEYBOARD_RELEASE = 7;
|
|
public static final int KEYBOARD_TAP = 3;
|
|
|
|
@VisibleForTesting
|
|
static final int LAST_CONSTANT_INT = 27;
|
|
public static final int LONG_PRESS = 0;
|
|
public static final int NO_HAPTICS = -1;
|
|
public static final int REJECT = 17;
|
|
public static final int SEGMENT_FREQUENT_TICK = 27;
|
|
public static final int SEGMENT_TICK = 26;
|
|
public static final int TEXT_HANDLE_MOVE = 9;
|
|
public static final int TOGGLE_OFF = 22;
|
|
public static final int TOGGLE_ON = 21;
|
|
public static final int VIRTUAL_KEY = 1;
|
|
public static final int VIRTUAL_KEY_RELEASE = 8;
|
|
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY})
|
|
public @interface HapticFeedbackFlags {
|
|
}
|
|
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY})
|
|
public @interface HapticFeedbackType {
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:24:0x0033 */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public static int getFeedbackConstantOrFallback(int r5) {
|
|
/*
|
|
r0 = -1
|
|
if (r5 != r0) goto L4
|
|
return r0
|
|
L4:
|
|
int r1 = android.os.Build.VERSION.SDK_INT
|
|
r2 = 34
|
|
r3 = 6
|
|
r4 = 0
|
|
if (r1 >= r2) goto L15
|
|
switch(r5) {
|
|
case 21: goto L14;
|
|
case 22: goto L12;
|
|
case 23: goto L14;
|
|
case 24: goto L12;
|
|
case 25: goto L10;
|
|
case 26: goto L14;
|
|
case 27: goto L12;
|
|
default: goto Lf;
|
|
}
|
|
Lf:
|
|
goto L15
|
|
L10:
|
|
r5 = r4
|
|
goto L15
|
|
L12:
|
|
r5 = 4
|
|
goto L15
|
|
L14:
|
|
r5 = r3
|
|
L15:
|
|
r2 = 30
|
|
if (r1 >= r2) goto L2e
|
|
r2 = 12
|
|
if (r5 == r2) goto L2c
|
|
r2 = 13
|
|
if (r5 == r2) goto L2f
|
|
r2 = 16
|
|
if (r5 == r2) goto L2c
|
|
r2 = 17
|
|
if (r5 == r2) goto L2a
|
|
goto L2e
|
|
L2a:
|
|
r3 = r4
|
|
goto L2f
|
|
L2c:
|
|
r3 = 1
|
|
goto L2f
|
|
L2e:
|
|
r3 = r5
|
|
L2f:
|
|
r5 = 27
|
|
if (r1 >= r5) goto L3e
|
|
r5 = 7
|
|
if (r3 == r5) goto L3f
|
|
r5 = 8
|
|
if (r3 == r5) goto L3f
|
|
r5 = 9
|
|
if (r3 == r5) goto L3f
|
|
L3e:
|
|
r0 = r3
|
|
L3f:
|
|
return r0
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: androidx.core.view.HapticFeedbackConstantsCompat.getFeedbackConstantOrFallback(int):int");
|
|
}
|
|
|
|
private HapticFeedbackConstantsCompat() {
|
|
}
|
|
}
|