/aosp14/frameworks/base/core/jni/ |
H A D | android_app_NativeActivity.cpp | 240 code->env->CallVoidMethod(code->clazz, in mainWorkCallback() 245 code->env->CallVoidMethod(code->clazz, in mainWorkCallback() 250 code->env->CallVoidMethod(code->clazz, in mainWorkCallback() 255 code->env->CallVoidMethod(code->clazz, in mainWorkCallback() 375 code->obbPath = code->obbPathObj.string(); in loadNativeCode_native() 420 code->callbacks.onStart(code); in onStart_native() 434 code->callbacks.onResume(code); in onResume_native() 477 code->callbacks.onPause(code); in onPause_native() 491 code->callbacks.onStop(code); in onStop_native() 519 code->callbacks.onLowMemory(code); in onLowMemory_native() [all …]
|
/aosp14/frameworks/base/tools/protologtool/tests/com/android/protolog/tool/ |
H A D | CodeUtilsTest.kt | 60 val code = """package org.example.test; regex 69 val code = """package org.example.test; regex 78 val code = """package org.example.test; regex 87 val code = """package org.example.test; regex 96 val code = """package org.example.test; regex 100 StaticJavaParser.parse(code), "org.example.Test")) 105 val code = """package org.example.test; regex 113 val code = """package org.example.test; regex 122 val code = """ regex 134 val code = """ regex [all …]
|
H A D | ProtoLogCallProcessorTest.kt | 57 val code = """ regex 69 visitor.process(StaticJavaParser.parse(code), processor, "") 83 val code = """ regex 102 val code = """ regex 121 val code = """ regex 138 val code = """ regex 156 val code = """ regex 170 val code = """ regex 184 val code = """ regex 198 val code = """ regex [all …]
|
H A D | SourceTransformerTest.kt | 176 var code = StaticJavaParser.parse(TEST_CODE) regex 190 code = StaticJavaParser.parse(out) 232 code = StaticJavaParser.parse(out) 270 code = StaticJavaParser.parse(out) 307 code = StaticJavaParser.parse(out) 327 var code = StaticJavaParser.parse(TEST_CODE) regex 341 code = StaticJavaParser.parse(out) 379 code = StaticJavaParser.parse(out) 403 var code = StaticJavaParser.parse(TEST_CODE) regex 417 code = StaticJavaParser.parse(out) [all …]
|
/aosp14/frameworks/base/telecomm/java/android/telecom/ |
H A D | DisconnectCause.java | 187 mDisconnectCode = code; in DisconnectCause() 349 String code = ""; in toString() local 352 code = "UNKNOWN"; in toString() 355 code = "ERROR"; in toString() 358 code = "LOCAL"; in toString() 361 code = "REMOTE"; in toString() 364 code = "CANCELED"; in toString() 367 code = "MISSED"; in toString() 370 code = "REJECTED"; in toString() 373 code = "BUSY"; in toString() [all …]
|
H A D | QueryLocationException.java | 103 public QueryLocationException(@Nullable String message, @QueryLocationErrorCode int code) { in QueryLocationException() argument 104 super(getMessage(message, code)); in QueryLocationException() 105 mCode = code; in QueryLocationException() 109 @Nullable String message, @QueryLocationErrorCode int code, @Nullable Throwable cause) { in QueryLocationException() argument 110 super(getMessage(message, code), cause); in QueryLocationException() 111 mCode = code; in QueryLocationException() 117 private static String getMessage(String message, int code) { in getMessage() argument 122 builder.append(code); in getMessage() 126 return "code: " + code; in getMessage()
|
/aosp14/frameworks/base/services/core/java/com/android/server/policy/ |
H A D | AppOpsPolicy.java | 327 code = resolveRecordAudioOp(code, uid); in resolveDatasourceOp() 328 code = resolveSandboxedServiceOp(code, uid); in resolveDatasourceOp() 330 return code; in resolveDatasourceOp() 347 return code; in resolveDatasourceOp() 418 switch (code) { in resolveLocationOp() 424 return code; in resolveLocationOp() 431 return code; in resolveArOp() 449 return code; in resolveRecordAudioOp() 455 return code; in resolveSandboxedServiceOp() 463 switch (code) { in resolveSandboxedServiceOp() [all …]
|
/aosp14/frameworks/base/media/java/android/mtp/ |
H A D | MtpPropertyGroup.java | 38 int code; field in MtpPropertyGroup.Property 42 Property(int code, int type, int column) { in Property() argument 43 this.code = code; in Property() 78 switch (code) { in createProperty() 161 Log.e(TAG, "unsupported property " + code); in createProperty() 167 return new Property(code, type, columns.size() - 1); in createProperty() 169 return new Property(code, type, -1); in createProperty() 201 switch (property.code) { in getPropertyList() 214 list.append(id, property.code, in getPropertyList() 227 list.append(id, property.code, property.type, in getPropertyList() [all …]
|
H A D | MtpDeviceInfo.java | 167 public boolean isOperationSupported(int code) { in isOperationSupported() argument 168 return isSupported(mOperationsSupported, code); in isOperationSupported() 176 public boolean isEventSupported(int code) { in isEventSupported() argument 177 return isSupported(mEventsSupported, code); in isEventSupported() 187 public boolean isDevicePropertySupported(int code) { in isDevicePropertySupported() argument 188 return isSupported(mDevicePropertySupported, code); in isDevicePropertySupported() 195 private static boolean isSupported(@NonNull int[] set, int code) { in isSupported() argument 197 if (element == code) { in isSupported()
|
/aosp14/frameworks/base/telephony/java/android/telephony/ims/ |
H A D | ImsException.java | 95 public ImsException(@Nullable String message, @ImsErrorCode int code) { in ImsException() argument 96 super(getMessage(message, code)); in ImsException() 97 mCode = code; in ImsException() 108 public ImsException(@Nullable String message, @ImsErrorCode int code, in ImsException() argument 110 super(getMessage(message, code), cause); in ImsException() 111 mCode = code; in ImsException() 121 private static String getMessage(String message, int code) { in getMessage() argument 126 builder.append(code); in getMessage() 130 return "code: " + code; in getMessage()
|
H A D | ImsSuppServiceNotification.java | 40 public final int code; field in ImsSuppServiceNotification 51 public ImsSuppServiceNotification(int notificationType, int code, int index, int type, in ImsSuppServiceNotification() argument 54 this.code = code; in ImsSuppServiceNotification() 64 code = in.readInt(); in ImsSuppServiceNotification() 75 ", code=" + code + in toString() 91 out.writeInt(code); in writeToParcel()
|
/aosp14/frameworks/base/core/java/android/app/ |
H A D | AppOpsManagerInternal.java | 55 int checkOperation(int code, int uid, String packageName, @Nullable String attributionTag, in checkOperation() argument 69 int checkAudioOperation(int code, int usage, int uid, String packageName, in checkAudioOperation() argument 84 SyncNotedAppOp noteOperation(int code, int uid, @Nullable String packageName, in noteOperation() argument 125 SyncNotedAppOp startOperation(IBinder token, int code, int uid, in startOperation() argument 150 SyncNotedAppOp startProxyOperation(@NonNull IBinder clientId, int code, in startProxyOperation() argument 168 default void finishOperation(IBinder clientId, int code, int uid, String packageName, in finishOperation() argument 171 superImpl.accept(clientId, code, uid, packageName, attributionTag); in finishOperation() 183 void finishProxyOperation(@NonNull IBinder clientId, int code, in finishProxyOperation() argument 209 public abstract void setUidModeFromPermissionPolicy(int code, int uid, int mode, in setUidModeFromPermissionPolicy() argument 223 public abstract void setGlobalRestriction(int code, boolean restricted, IBinder token); in setGlobalRestriction() argument [all …]
|
H A D | AppOpInfo.java | 33 public final int code; field in AppOpInfo 100 AppOpInfo(int code, in AppOpInfo() argument 111 if (code < OP_NONE) throw new IllegalArgumentException(); in AppOpInfo() 115 this.code = code; in AppOpInfo() 141 Builder(int code, @NonNull String name, @NonNull String simpleName) { in Builder() argument 142 if (code < OP_NONE) throw new IllegalArgumentException(); in Builder() 145 this.mCode = code; in Builder() 146 this.mSwitchCode = code; in Builder()
|
/aosp14/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | ActivitySnapshotController.java | 140 final int code = getSystemHashCode(ar); in getSnapshot() local 141 return mCache.getSnapshot(code); in getSnapshot() 232 final int code = getSystemHashCode(ar); in postProcess() local 234 if (mCache.getSnapshot(code) != null) { in postProcess() 238 if (containsFile(code, userId)) { in postProcess() 262 final int code = getSystemHashCode(ar); in postProcess() local 263 mCache.onIdRemoved(code); in postProcess() 268 final int code = getSystemHashCode(ar); in postProcess() local 269 mCache.onIdRemoved(code); in postProcess() 542 mPersister.removeSnap(code, userId); in removeIfUserSavedFileExist() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/appop/ |
H A D | AppOpsRestrictionsImpl.java | 74 restrictedCodes.put(code, true); in setGlobalRestriction() 82 restrictedCodes.delete(code); in setGlobalRestriction() 96 return restrictedCodes.get(code); in getGlobalRestriction() 163 return restrictedCodes.get(code); in getUserRestriction() 207 int code = restrictedCodes.keyAt(j); in collectAllUserRestrictedCodes() local 208 allRestrictedCodes.put(code, true); in collectAllUserRestrictedCodes() 267 changed = !restrictedCodes.get(code); in putUserRestriction() 268 restrictedCodes.put(code, restricted); in putUserRestriction() 278 changed = restrictedCodes.get(code); in putUserRestriction() 279 restrictedCodes.delete(code); in putUserRestriction() [all …]
|
H A D | AppOpsService.java | 1250 ops.put(code, new Op(uidState, packageName, code, uid)); in initializePackageUidStateLocked() 1337 if (uidState.getUidMode(code) != AppOpsManager.opToDefaultMode(code) in onUidStateChanged() 1470 resOps.add(new OpEntry(code, opModes.get(code), Collections.emptyMap())); in collectUidOps() 1783 code = AppOpsManager.opToSwitch(code); in setUidMode() 1801 if (uidState.getUidMode(code) != AppOpsManager.opToDefaultMode(code)) { in setUidMode() 1851 for (int code : ops) { in updatePermissionRevokedCompat() 1958 code = AppOpsManager.opToSwitch(code); in setMode() 2434 code = AppOpsManager.opToSwitch(code); in checkOperationUnchecked() 2437 && uidState.getUidMode(code) != AppOpsManager.opToDefaultMode(code)) { in checkOperationUnchecked() 3042 if (code == OP_RECORD_AUDIO_HOTWORD || code == OP_RECEIVE_AMBIENT_TRIGGER_AUDIO in startOperationImpl() [all …]
|
/aosp14/frameworks/base/tools/protologtool/src/com/android/protolog/tool/ |
H A D | CodeUtils.kt | 32 .map { c -> c.code }.reduce { h, c -> h * 31 + c } 35 fun checkWildcardStaticImported(code: CompilationUnit, className: String, fileName: String) { 36 code.findAll(ImportDeclaration::class.java) 45 fun isClassImportedOrSamePackage(code: CompilationUnit, className: String): Boolean { 47 return code.packageDeclaration.isPresent && 48 code.packageDeclaration.get().nameAsString == packageName || 49 code.findAll(ImportDeclaration::class.java) 57 fun staticallyImportedMethods(code: CompilationUnit, className: String): Set<String> { 58 return code.findAll(ImportDeclaration::class.java)
|
H A D | ProtoLogCallProcessor.kt | 76 open fun process(code: CompilationUnit, callVisitor: ProtoLogCallVisitor?, fileName: String): 78 CodeUtils.checkWildcardStaticImported(code, protoLogClassName, fileName) 79 CodeUtils.checkWildcardStaticImported(code, protoLogGroupClassName, fileName) 81 val isLogClassImported = CodeUtils.isClassImportedOrSamePackage(code, protoLogClassName) 82 val staticLogImports = CodeUtils.staticallyImportedMethods(code, protoLogClassName) 83 val isGroupClassImported = CodeUtils.isClassImportedOrSamePackage(code, 85 val staticGroupImports = CodeUtils.staticallyImportedMethods(code, protoLogGroupClassName) 87 code.findAll(MethodCallExpr::class.java) 111 return code
|
/aosp14/frameworks/base/core/java/com/android/internal/app/ |
H A D | IAppOpsService.aidl | 39 int checkOperation(int code, int uid, String packageName); in checkOperation() argument 42 SyncNotedAppOp startOperation(IBinder clientId, int code, int uid, String packageName, in startOperation() argument 47 void finishOperation(IBinder clientId, int code, int uid, String packageName, in finishOperation() argument 52 int checkAudioOperation(int code, int usage, int uid, String packageName); in checkAudioOperation() argument 60 SyncNotedAppOp noteProxyOperation(int code, in AttributionSource attributionSource, in noteProxyOperation() argument 63 SyncNotedAppOp startProxyOperation(IBinder clientId, int code, in startProxyOperation() argument 68 void finishProxyOperation(IBinder clientId, int code, in AttributionSource attributionSource, in finishProxyOperation() argument 94 void setUidMode(int code, int uid, int mode); in setUidMode() argument 96 void setMode(int code, int uid, String packageName, int mode); in setMode() argument 108 boolean isOperationActive(int code, int uid, String packageName); in isOperationActive() argument [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/appops/ |
H A D | AppOpsControllerImpl.java | 260 if (item.getCode() == code && item.getUid() == uid in getAppOpItemLocked() 273 if (isOpMicrophone(code)) { in updateActives() 275 } else if (isOpCamera(code)) { in updateActives() 304 notifySuscribersWorker(code, uid, packageName, false); in removeNoted() 403 int code = AppOpsManager.strOpToOp(op); in onOpActiveChanged() local 426 notifySuscribers(code, uid, packageName, active); in onOpActiveChanged() 431 public void onOpNoted(int code, int uid, String packageName, in onOpNoted() argument 435 Log.w(TAG, "Noted op: " + code + " with result " in onOpNoted() 439 boolean notedAdded = addNoted(code, uid, packageName); in onOpNoted() 446 notifySuscribers(code, uid, packageName, true); in onOpNoted() [all …]
|
/aosp14/frameworks/base/tools/processors/view_inspector/test/resources/android/processor/view/inspector/InspectionCompanionGeneratorTest/ |
H A D | SimpleProperties.java.txt | 22 * Property ID of {@code boolean}. 27 * Property ID of {@code byte}. 32 * Property ID of {@code char}. 37 * Property ID of {@code color}. 42 * Property ID of {@code double}. 47 * Property ID of {@code float}. 52 * Property ID of {@code gravity}. 57 * Property ID of {@code int}. 62 * Property ID of {@code long}. 67 * Property ID of {@code object}. [all …]
|
/aosp14/frameworks/base/telephony/java/com/android/ims/ |
H A D | ImsException.java | 38 public ImsException(String message, int code) { in ImsException() argument 39 super(message + "(" + code + ")"); in ImsException() 40 mCode = code; in ImsException() 43 public ImsException(String message, Throwable cause, int code) { in ImsException() argument 45 mCode = code; in ImsException()
|
/aosp14/system/core/libsysutils/src/ |
H A D | SocketClient.cpp | 73 int SocketClient::sendMsg(int code, const char *msg, bool addErrno) { in sendMsg() argument 74 return sendMsg(code, msg, addErrno, mUseCmdNum); in sendMsg() 77 int SocketClient::sendMsg(int code, const char *msg, bool addErrno, bool useCmdNum) { in sendMsg() argument 83 ret = asprintf(&buf, "%d %d %s (%s)", code, getCmdNum(), msg, strerror(errno)); in sendMsg() 85 ret = asprintf(&buf, "%d %s (%s)", code, msg, strerror(errno)); in sendMsg() 89 ret = asprintf(&buf, "%d %d %s", code, getCmdNum(), msg); in sendMsg() 91 ret = asprintf(&buf, "%d %s", code, msg); in sendMsg() 103 int SocketClient::sendBinaryMsg(int code, const void *data, int len) { in sendBinaryMsg() argument 108 snprintf(buf, 4, "%.3d", code); in sendBinaryMsg() 127 int SocketClient::sendCode(int code) { in sendCode() argument [all …]
|
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/libcore/varhandles/ |
H A D | generate_java.py | 48 def __init__(self, code, static, vartype, flavour, klass, method, memloc, argument 50 self.code = code 82 return self.code.format( 100 def BenchVHField(code, static, vartype, flavour, method): argument 104 def BenchVHArray(code, vartype, flavour, method): argument 105 return Benchmark(code, False, vartype, flavour, "VarHandle", method, MemLoc.ARRAY) 108 def BenchVHByteArrayView(code, byteorder, vartype, flavour, method): argument 112 def BenchReflect(code, static, vartype, method): argument 113 return Benchmark(code, static, vartype, "", "Reflect", method, MemLoc.FIELD) 116 def BenchUnsafe(code, static, vartype, method): argument [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/privacy/ |
H A D | AppOpsPrivacyItemMonitor.kt | 82 code: Int, 89 if (code in OPS_MIC_CAMERA && !micCameraAvailable) { 92 if (code in OPS_LOCATION && !locationAvailable) { 96 code in USER_INDEPENDENT_OPS) { 97 logger.logUpdatedItemFromAppOps(code, uid, packageName, active) 186 it.code in USER_INDEPENDENT_OPS 192 private fun privacyItemForAppOpEnabledLocked(code: Int): Boolean { 193 if (code in OPS_LOCATION) { 195 } else if (code in OPS_MIC_CAMERA) { 204 if (!privacyItemForAppOpEnabledLocked(appOpItem.code)) { [all …]
|