/frameworks/base/services/core/java/com/android/server/policy/ |
D | PermissionPolicyService.java | 563 final int opCode = getSwitchOp(permission); in addOpIfRestricted() local 575 if (opCode != OP_NONE) { in addOpIfRestricted() 577 mOpsToDefault.add(new OpToChange(uid, pkg.packageName, opCode)); in addOpIfRestricted() 579 mOpsToAllowIfDefault.add(new OpToChange(uid, pkg.packageName, opCode)); in addOpIfRestricted() 587 if (opCode != OP_NONE) { in addOpIfRestricted() 589 mOpsToAllowIfDefault.add(new OpToChange(uid, pkg.packageName, opCode)); in addOpIfRestricted() 591 mOpsToDefault.add(new OpToChange(uid, pkg.packageName, opCode)); in addOpIfRestricted() 665 final int opCode = getSwitchOp(permission); in addOpIfFgPermissions() local 680 mOpsToForegroundIfAllow.add(new OpToChange(uid, pkgName, opCode)); in addOpIfFgPermissions() 694 mOpsToAllow.add(new OpToChange(uid, pkgName, opCode)); in addOpIfFgPermissions() [all …]
|
/frameworks/base/obex/javax/obex/ |
D | ClientSession.java | 459 public boolean sendRequest(int opCode, byte[] head, HeaderSet header, in sendRequest() argument 472 if (opCode == ObexHelper.OBEX_OPCODE_PUT) { in sendRequest() 475 } else if (opCode == ObexHelper.OBEX_OPCODE_GET) { in sendRequest() 479 } else if (opCode == ObexHelper.OBEX_OPCODE_GET_FINAL) { in sendRequest() 489 out.write((byte)opCode); in sendRequest() 521 if (opCode == ObexHelper.OBEX_OPCODE_CONNECT) { in sendRequest() 562 if (opCode == ObexHelper.OBEX_OPCODE_ABORT) { in sendRequest() 598 return sendRequest(opCode, sendHeaders, header, privateInput, false); in sendRequest()
|
D | ClientOperation.java | 441 private boolean sendRequest(int opCode) throws IOException { in sendRequest() argument 489 if (!mParent.sendRequest(opCode, sendHeader, mReplyHeader, mPrivateInput, false)) { in sendRequest() 512 opCode |= ObexHelper.OBEX_OPCODE_FINAL_BIT_MASK; in sendRequest() 537 && ((opCode & ObexHelper.OBEX_OPCODE_FINAL_BIT_MASK) != 0)) { in sendRequest() 555 if ((opCode & ObexHelper.OBEX_OPCODE_FINAL_BIT_MASK) == 0) { in sendRequest() 568 if (!mParent.sendRequest(opCode, null, mReplyHeader, mPrivateInput, mSrmActive)) { in sendRequest() 576 && (!mParent.sendRequest(opCode, out.toByteArray(), in sendRequest()
|
/frameworks/native/libs/gui/tests/ |
D | SurfaceParcelable_test.cpp | 123 uint32_t opCode = GetParam(); in GetSurface() local 126 status_t error = mService->transact(opCode, data, &reply); in GetSurface()
|
/frameworks/base/core/java/android/app/ |
D | AppOpsManager.java | 3078 public void increaseAccessCount(int opCode, int uid, @NonNull String packageName, in increaseAccessCount() argument 3080 getOrCreateHistoricalUidOps(uid).increaseAccessCount(opCode, in increaseAccessCount() 3086 public void increaseRejectCount(int opCode, int uid, @NonNull String packageName, in increaseRejectCount() argument 3088 getOrCreateHistoricalUidOps(uid).increaseRejectCount(opCode, in increaseRejectCount() 3094 public void increaseAccessDuration(int opCode, int uid, @NonNull String packageName, in increaseAccessDuration() argument 3096 getOrCreateHistoricalUidOps(uid).increaseAccessDuration(opCode, in increaseAccessDuration() 3401 private void increaseAccessCount(int opCode, @NonNull String packageName, in increaseAccessCount() argument 3404 opCode, uidState, flags, increment); in increaseAccessCount() 3407 private void increaseRejectCount(int opCode, @NonNull String packageName, in increaseRejectCount() argument 3410 opCode, uidState, flags, increment); in increaseRejectCount() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | FrameParser.java | 326 int opCode = getUnsignedShort(data); in parseArpPacket() local 327 switch (opCode) { in parseArpPacket() 335 mTypeString = "Operation " + opCode; in parseArpPacket()
|
/frameworks/native/libs/binder/ |
D | IAppOpsService.cpp | 223 const int32_t opCode = permissionToOpCode(permission); in onTransact() local 225 reply->writeInt32(opCode); in onTransact()
|
/frameworks/base/media/native/midi/ |
D | amidi.cpp | 431 uint8_t opCode = AMIDI_OPCODE_FLUSH; in AMidiInputPort_sendFlush() local 433 ssize_t numWritten = write(((AMIDI_Port*)inputPort)->ufd, &opCode, numTransferBytes); in AMidiInputPort_sendFlush()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/ |
D | AppOpsServiceTest.java | 447 private void assertContainsOp(List<PackageOps> loggedOps, int opCode, long minMillis, in assertContainsOp() argument 457 if (opCode != opEntry.getOp()) { in assertContainsOp()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BroadcastQueue.java | 652 final int opCode = AppOpsManager.permissionToOpCode(filter.requiredPermission); in deliverToRegisteredReceiverLocked() local 653 if (opCode != AppOpsManager.OP_NONE in deliverToRegisteredReceiverLocked() 654 && mService.mAppOpsService.noteOperation(opCode, r.callingUid, in deliverToRegisteredReceiverLocked() 1372 final int opCode = AppOpsManager.permissionToOpCode(info.activityInfo.permission); in processNextBroadcastLocked() local 1373 if (opCode != AppOpsManager.OP_NONE in processNextBroadcastLocked() 1374 && mService.mAppOpsService.noteOperation(opCode, r.callingUid, in processNextBroadcastLocked()
|
D | ActiveServices.java | 2254 final int opCode = AppOpsManager.permissionToOpCode(r.permission); in retrieveServiceLocked() local 2255 if (opCode != AppOpsManager.OP_NONE && mAm.mAppOpsService.checkOperation( in retrieveServiceLocked() 2256 opCode, callingUid, callingPackage) != AppOpsManager.MODE_ALLOWED) { in retrieveServiceLocked() 2260 + " requires appop " + AppOpsManager.opToName(opCode)); in retrieveServiceLocked()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ActivityStackSupervisor.java | 1164 final int opCode = AppOpsManager.permissionToOpCode(activityInfo.permission); in getComponentRestrictionForCallingPackage() local 1165 if (opCode == AppOpsManager.OP_NONE) { in getComponentRestrictionForCallingPackage() 1169 if (mService.getAppOpsService().noteOperation(opCode, callingUid, callingPackage) in getComponentRestrictionForCallingPackage() 1207 final int opCode = AppOpsManager.permissionToOpCode(permission); in getActionRestrictionForCallingPackage() local 1208 if (opCode == AppOpsManager.OP_NONE) { in getActionRestrictionForCallingPackage() 1212 if (mService.getAppOpsService().noteOperation(opCode, callingUid, callingPackage) in getActionRestrictionForCallingPackage()
|
/frameworks/base/services/core/java/com/android/server/appop/ |
D | AppOpsService.java | 2249 final int opCode = op.op; in startOperation() local 2260 mHistoricalRegistry.incrementOpRejected(opCode, uid, packageName, in startOperation() 2275 mHistoricalRegistry.incrementOpRejected(opCode, uid, packageName, in startOperation() 2287 mHistoricalRegistry.incrementOpAccessedCount(opCode, uid, packageName, in startOperation() 2456 final int opCode = op.op; in finishOperationLocked() local 2464 mHistoricalRegistry.increaseOpAccessDuration(opCode, uid, op.packageName, in finishOperationLocked() 2470 + op.packageName + " code " + opCode + " time=" in finishOperationLocked() 4218 final int opCode = op.op; in dump() 4219 if (dumpOp >= 0 && dumpOp != opCode) { in dump() 4229 pw.print(" "); pw.print(AppOpsManager.opToName(opCode)); in dump() [all …]
|
/frameworks/native/services/sensorservice/ |
D | SensorService.cpp | 1650 const int32_t opCode = sensor.getRequiredAppOp(); in canAccessSensor() local 1651 const int32_t appOpMode = sAppOpsManager.checkOp(opCode, in canAccessSensor() 1658 if (opCode < 0 || appOpAllowed) { in canAccessSensor() 1680 sAppOpsManager.noteOp(opCode, IPCThreadState::self()->getCallingUid(), opPackageName); in canAccessSensor()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/euicc/ |
D | EuiccCard.java | 1412 @OperationCode int opCode) in parseResponseAndCheckSimpleError() argument 1416 throw new EuiccCardErrorException(opCode, root.getChild(Tags.TAG_CTX_1).asInteger()); in parseResponseAndCheckSimpleError()
|
/frameworks/ml/nn/common/include/ |
D | Utils.h | 303 std::string getOperationName(hal::OperationType opCode);
|
/frameworks/base/services/core/java/com/android/server/accounts/ |
D | AccountManagerService.java | 5354 final int opCode = AppOpsManager.permissionToOpCode(perm); 5355 if (opCode == AppOpsManager.OP_NONE || mAppOpsManager.checkOpNoThrow( 5356 opCode, uid, packageName) == AppOpsManager.MODE_ALLOWED) { 5380 final int opCode = AppOpsManager.permissionToOpCode(perm); 5381 if (opCode == AppOpsManager.OP_NONE || mAppOpsManager.noteOpNoThrow( 5382 opCode, callingUid, opPackageName) == AppOpsManager.MODE_ALLOWED) {
|
/frameworks/ml/nn/runtime/test/ |
D | TestValidateOperations.cpp | 332 OperationTestBase(ANeuralNetworksOperationType opCode, in OperationTestBase() argument 336 : mOpCode(opCode), mValidInputs(), mValidOutputs(), mInputRankMutators(inputRankMutators) {
|