Skip to content

Commit ab8096f

Browse files
committed
A92s
1 parent 96194a5 commit ab8096f

File tree

13,134 files changed

+3538828
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

13,134 files changed

+3538828
-4
lines changed

A92s_10_0_0/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

A92s_10_0_0/build.gradle

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
apply plugin: 'com.android.library'
2+
3+
android {
4+
compileSdkVersion 28
5+
6+
7+
8+
defaultConfig {
9+
minSdkVersion 25
10+
targetSdkVersion 28
11+
versionCode 1
12+
versionName "1.0"
13+
}
14+
15+
buildTypes {
16+
release {
17+
minifyEnabled false
18+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
19+
}
20+
}
21+
22+
}
23+
24+
dependencies {
25+
implementation fileTree(dir: 'libs', include: ['*.jar'])
26+
27+
implementation 'com.android.support:appcompat-v7:28.0.0'
28+
}

A92s_10_0_0/proguard-rules.pro

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
package="com.oppo.a1_711" />

A92s_10_0_0/src/main/java/android/Manifest.java

Lines changed: 780 additions & 0 deletions
Large diffs are not rendered by default.

A92s_10_0_0/src/main/java/android/R.java

Lines changed: 5241 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package android;
2+
3+
public final class Section {
4+
public static final int SECTION_COMMAND = 2;
5+
public static final int SECTION_DUMPSYS = 3;
6+
public static final int SECTION_FILE = 1;
7+
public static final int SECTION_GZIP = 5;
8+
public static final int SECTION_LOG = 4;
9+
public static final int SECTION_NONE = 0;
10+
public static final int SECTION_TOMBSTONE = 6;
11+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package android;
2+
3+
public final class SectionFlags {
4+
public static final long ARGS = 1138166333442L;
5+
public static final long TYPE = 1159641169921L;
6+
public static final long USERDEBUG_AND_ENG_ONLY = 1133871366147L;
7+
}
Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
package android.accessibilityservice;
2+
3+
import android.os.Handler;
4+
import android.os.Looper;
5+
import android.os.RemoteException;
6+
import android.util.ArrayMap;
7+
import android.util.Slog;
8+
import com.android.internal.util.Preconditions;
9+
10+
public final class AccessibilityButtonController {
11+
private static final String LOG_TAG = "A11yButtonController";
12+
private ArrayMap<AccessibilityButtonCallback, Handler> mCallbacks;
13+
private final Object mLock = new Object();
14+
private final IAccessibilityServiceConnection mServiceConnection;
15+
16+
AccessibilityButtonController(IAccessibilityServiceConnection serviceConnection) {
17+
this.mServiceConnection = serviceConnection;
18+
}
19+
20+
public boolean isAccessibilityButtonAvailable() {
21+
IAccessibilityServiceConnection iAccessibilityServiceConnection = this.mServiceConnection;
22+
if (iAccessibilityServiceConnection == null) {
23+
return false;
24+
}
25+
try {
26+
return iAccessibilityServiceConnection.isAccessibilityButtonAvailable();
27+
} catch (RemoteException re) {
28+
Slog.w(LOG_TAG, "Failed to get accessibility button availability.", re);
29+
re.rethrowFromSystemServer();
30+
return false;
31+
}
32+
}
33+
34+
public void registerAccessibilityButtonCallback(AccessibilityButtonCallback callback) {
35+
registerAccessibilityButtonCallback(callback, new Handler(Looper.getMainLooper()));
36+
}
37+
38+
public void registerAccessibilityButtonCallback(AccessibilityButtonCallback callback, Handler handler) {
39+
Preconditions.checkNotNull(callback);
40+
Preconditions.checkNotNull(handler);
41+
synchronized (this.mLock) {
42+
if (this.mCallbacks == null) {
43+
this.mCallbacks = new ArrayMap<>();
44+
}
45+
this.mCallbacks.put(callback, handler);
46+
}
47+
}
48+
49+
/* JADX WARNING: Code restructure failed: missing block: B:14:0x001f, code lost:
50+
return;
51+
*/
52+
public void unregisterAccessibilityButtonCallback(AccessibilityButtonCallback callback) {
53+
Preconditions.checkNotNull(callback);
54+
synchronized (this.mLock) {
55+
if (this.mCallbacks != null) {
56+
int keyIndex = this.mCallbacks.indexOfKey(callback);
57+
if (keyIndex >= 0) {
58+
this.mCallbacks.removeAt(keyIndex);
59+
}
60+
}
61+
}
62+
}
63+
64+
/* access modifiers changed from: package-private */
65+
/* JADX WARNING: Code restructure failed: missing block: B:10:0x0018, code lost:
66+
r0 = 0;
67+
r2 = r1.size();
68+
*/
69+
/* JADX WARNING: Code restructure failed: missing block: B:11:0x001d, code lost:
70+
if (r0 >= r2) goto L_0x0036;
71+
*/
72+
/* JADX WARNING: Code restructure failed: missing block: B:12:0x001f, code lost:
73+
r1.valueAt(r0).post(new android.accessibilityservice.$$Lambda$AccessibilityButtonController$b_UAM9QJWcH4KQOC_odiN0t_boU(r1.keyAt(r0)));
74+
r0 = r0 + 1;
75+
*/
76+
/* JADX WARNING: Code restructure failed: missing block: B:13:0x0036, code lost:
77+
return;
78+
*/
79+
public void dispatchAccessibilityButtonClicked() {
80+
synchronized (this.mLock) {
81+
if (this.mCallbacks != null) {
82+
if (!this.mCallbacks.isEmpty()) {
83+
ArrayMap<AccessibilityButtonCallback, Handler> entries = new ArrayMap<>(this.mCallbacks);
84+
}
85+
}
86+
Slog.w(LOG_TAG, "Received accessibility button click with no callbacks!");
87+
}
88+
}
89+
90+
public /* synthetic */ void lambda$dispatchAccessibilityButtonClicked$0$AccessibilityButtonController(AccessibilityButtonCallback callback) {
91+
callback.onClicked(this);
92+
}
93+
94+
/* access modifiers changed from: package-private */
95+
/* JADX WARNING: Code restructure failed: missing block: B:10:0x0018, code lost:
96+
r0 = 0;
97+
r2 = r1.size();
98+
*/
99+
/* JADX WARNING: Code restructure failed: missing block: B:11:0x001d, code lost:
100+
if (r0 >= r2) goto L_0x0036;
101+
*/
102+
/* JADX WARNING: Code restructure failed: missing block: B:12:0x001f, code lost:
103+
r1.valueAt(r0).post(new android.accessibilityservice.$$Lambda$AccessibilityButtonController$RskKrfcSyUz7I9Sqaziy1P990ZM(r1.keyAt(r0), r7));
104+
r0 = r0 + 1;
105+
*/
106+
/* JADX WARNING: Code restructure failed: missing block: B:13:0x0036, code lost:
107+
return;
108+
*/
109+
public void dispatchAccessibilityButtonAvailabilityChanged(boolean available) {
110+
synchronized (this.mLock) {
111+
if (this.mCallbacks != null) {
112+
if (!this.mCallbacks.isEmpty()) {
113+
ArrayMap<AccessibilityButtonCallback, Handler> entries = new ArrayMap<>(this.mCallbacks);
114+
}
115+
}
116+
Slog.w(LOG_TAG, "Received accessibility button availability change with no callbacks!");
117+
}
118+
}
119+
120+
public /* synthetic */ void lambda$dispatchAccessibilityButtonAvailabilityChanged$1$AccessibilityButtonController(AccessibilityButtonCallback callback, boolean available) {
121+
callback.onAvailabilityChanged(this, available);
122+
}
123+
124+
public static abstract class AccessibilityButtonCallback {
125+
public void onClicked(AccessibilityButtonController controller) {
126+
}
127+
128+
public void onAvailabilityChanged(AccessibilityButtonController controller, boolean available) {
129+
}
130+
}
131+
}

0 commit comments

Comments
 (0)