Home
last modified time | relevance | path

Searched refs:opCode (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/core/java/android/app/
DSyncNotedAppOp.java66 public SyncNotedAppOp(int opMode, @IntRange(from = 0L) int opCode, in SyncNotedAppOp()
68 this.mOpCode = opCode; in SyncNotedAppOp()
86 public SyncNotedAppOp(@IntRange(from = 0L) int opCode, @Nullable String attributionTag) { in SyncNotedAppOp()
87 this(AppOpsManager.MODE_IGNORED, opCode, attributionTag, ActivityThread in SyncNotedAppOp()
103 public SyncNotedAppOp(@IntRange(from = 0L) int opCode, @Nullable String attributionTag, in SyncNotedAppOp()
105 this(AppOpsManager.MODE_IGNORED, opCode, attributionTag, packageName); in SyncNotedAppOp()
234 int opCode = in.readInt(); in SyncNotedAppOp() local
239 this.mOpCode = opCode; in SyncNotedAppOp()
DRuntimeAppOpAccessMessage.java74 @IntRange(from = 0L) int opCode, in RuntimeAppOpAccessMessage()
83 this.mOpCode = opCode; in RuntimeAppOpAccessMessage()
188 int opCode = in.readInt(); in RuntimeAppOpAccessMessage() local
198 this.mOpCode = opCode; in RuntimeAppOpAccessMessage()
DAsyncNotedAppOp.java110 @IntRange(from = 0) int opCode, in AsyncNotedAppOp()
115 this.mOpCode = opCode; in AsyncNotedAppOp()
244 int opCode = in.readInt(); in AsyncNotedAppOp() local
250 this.mOpCode = opCode; in AsyncNotedAppOp()
DAppOpsManager.java5534 public void increaseAccessCount(int opCode, int uid, @NonNull String packageName, in increaseAccessCount() argument
5537 getOrCreateHistoricalUidOps(uid).increaseAccessCount(opCode, in increaseAccessCount()
5543 public void increaseRejectCount(int opCode, int uid, @NonNull String packageName, in increaseRejectCount() argument
5546 getOrCreateHistoricalUidOps(uid).increaseRejectCount(opCode, in increaseRejectCount()
5552 public void increaseAccessDuration(int opCode, int uid, @NonNull String packageName, in increaseAccessDuration() argument
5555 getOrCreateHistoricalUidOps(uid).increaseAccessDuration(opCode, in increaseAccessDuration()
5561 public void addDiscreteAccess(int opCode, int uid, @NonNull String packageName, in addDiscreteAccess() argument
5564 getOrCreateHistoricalUidOps(uid).addDiscreteAccess(opCode, packageName, attributionTag, in addDiscreteAccess()
5569 public void addDiscreteAccess(int opCode, int uid, @NonNull String packageName, in addDiscreteAccess() argument
5573 getOrCreateHistoricalUidOps(uid).addDiscreteAccess(opCode, packageName, attributionTag, in addDiscreteAccess()
[all …]
/frameworks/av/services/oboeservice/
DAAudioCommandQueue.h40 aaudio_command_opcode opCode, std::shared_ptr<AAudioCommandParam> param = nullptr,
42 : operationCode(opCode), parameter(param), isWaitingForReply(waitForReply), in operationCode() argument
DAAudioServiceStreamBase.h402 aaudio_result_t sendCommand(aaudio_command_opcode opCode,
DAAudioServiceStreamBase.cpp717 aaudio_result_t AAudioServiceStreamBase::sendCommand(aaudio_command_opcode opCode, in sendCommand() argument
722 opCode, param, waitForReply, timeoutNanos)); in sendCommand()
/frameworks/native/libs/permission/
DIAppOpsService.cpp158 virtual bool shouldCollectNotes(int32_t opCode) { in shouldCollectNotes() argument
161 data.writeInt32(opCode); in shouldCollectNotes()
256 const int32_t opCode = permissionToOpCode(permission); in onTransact() local
258 reply->writeInt32(opCode); in onTransact()
281 int32_t opCode = data.readInt32(); in onTransact() local
282 bool shouldCollect = shouldCollectNotes(opCode); in onTransact()
/frameworks/native/libs/ui/tests/
DGraphicBufferOverBinder_test.cpp96 status_t GetGraphicBuffer(sp<GraphicBuffer>* outBuf, uint32_t opCode) { in GetGraphicBuffer() argument
99 status_t error = mService->transact(opCode, data, &reply); in GetGraphicBuffer()
/frameworks/base/services/core/java/com/android/server/policy/
DPermissionPolicyService.java1060 private void setUidModeAllowed(int opCode, int uid, @NonNull String packageName) { in setUidModeAllowed() argument
1061 setUidMode(opCode, uid, MODE_ALLOWED, packageName); in setUidModeAllowed()
1064 private void setUidModeForeground(int opCode, int uid, @NonNull String packageName) { in setUidModeForeground() argument
1065 setUidMode(opCode, uid, MODE_FOREGROUND, packageName); in setUidModeForeground()
1068 private void setUidModeIgnored(int opCode, int uid, @NonNull String packageName) { in setUidModeIgnored() argument
1069 setUidMode(opCode, uid, MODE_IGNORED, packageName); in setUidModeIgnored()
1072 private boolean setUidModeIgnoredIfNotAllowed(int opCode, int uid, in setUidModeIgnoredIfNotAllowed() argument
1075 opCode), uid, packageName); in setUidModeIgnoredIfNotAllowed()
1078 mAppOpsManagerInternal.setUidModeFromPermissionPolicy(opCode, uid, MODE_IGNORED, in setUidModeIgnoredIfNotAllowed()
1086 private void setUidMode(int opCode, int uid, int mode, in setUidMode() argument
[all …]
/frameworks/base/libs/hwui/tests/scripts/
Dprep_generic.sh198 opCode=-1
209 opCode="$currOpCode"
214 echo "$opCode" > /proc/ppm/policy/ut_fix_freq_idx
/frameworks/native/libs/gui/tests/
DSurfaceParcelable_test.cpp123 uint32_t opCode = GetParam(); in GetSurface() local
126 status_t error = mService->transact(opCode, data, &reply); in GetSurface()
/frameworks/base/tools/traceinjection/src/com/android/traceinjection/
DTraceInjectionMethodAdapter.java94 protected void onMethodExit(int opCode) { in onMethodExit() argument
97 if (opCode != ATHROW) { in onMethodExit()
/frameworks/base/services/core/java/com/android/server/location/contexthub/
DContextHubClientBroker.java634 int opCode = mAppOpsManager.permissionToOpCode(permission); in notePermissions() local
635 if (opCode != AppOpsManager.OP_NONE) { in notePermissions()
637 if (mAppOpsManager.noteOp(opCode, mUid, mPackage, mAttributionTag, noteMessage) in notePermissions()
643 + opCode + ": " + e.getMessage()); in notePermissions()
/frameworks/native/libs/permission/include/binder/
DIAppOpsService.h54 virtual bool shouldCollectNotes(int32_t opCode) = 0;
DAppOpsManager.h186 bool shouldCollectNotes(int32_t opCode);
/frameworks/base/media/native/midi/
Damidi.cpp444 uint8_t opCode = AMIDI_OPCODE_FLUSH; in AMidiInputPort_sendFlush() local
446 ssize_t numWritten = TEMP_FAILURE_RETRY(write(((AMIDI_Port*)inputPort)->ufd, &opCode, in AMidiInputPort_sendFlush()
/frameworks/base/core/java/com/android/internal/app/
DIAppOpsService.aidl53 boolean shouldCollectNotes(int opCode); in shouldCollectNotes() argument
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/
DAppOpsServiceTest.java456 private void assertContainsOp(List<PackageOps> loggedOps, int opCode, long minMillis, in assertContainsOp() argument
466 if (opCode != opEntry.getOp()) { in assertContainsOp()
/frameworks/base/services/core/java/com/android/server/wm/
DActivityTaskSupervisor.java1244 final int opCode = AppOpsManager.permissionToOpCode(activityInfo.permission); in getComponentRestrictionForCallingPackage() local
1245 if (opCode == AppOpsManager.OP_NONE) { in getComponentRestrictionForCallingPackage()
1249 if (getAppOpsManager().noteOpNoThrow(opCode, callingUid, in getComponentRestrictionForCallingPackage()
1288 final int opCode = AppOpsManager.permissionToOpCode(permission); in getActionRestrictionForCallingPackage() local
1289 if (opCode == AppOpsManager.OP_NONE) { in getActionRestrictionForCallingPackage()
1293 if (getAppOpsManager().noteOpNoThrow(opCode, callingUid, in getActionRestrictionForCallingPackage()
/frameworks/base/services/core/java/com/android/server/am/
DBroadcastQueue.java738 final int opCode = AppOpsManager.permissionToOpCode(filter.requiredPermission); in deliverToRegisteredReceiverLocked() local
739 if (opCode != AppOpsManager.OP_NONE in deliverToRegisteredReceiverLocked()
740 && mService.getAppOpsManager().noteOpNoThrow(opCode, r.callingUid, in deliverToRegisteredReceiverLocked()
1600 final int opCode = AppOpsManager.permissionToOpCode(info.activityInfo.permission); in processNextBroadcastLocked() local
1601 if (opCode != AppOpsManager.OP_NONE && mService.getAppOpsManager().noteOpNoThrow(opCode, in processNextBroadcastLocked()
/frameworks/base/services/core/java/com/android/server/appop/
DDiscreteRegistry.java489 OpEvent(String pkgName, int uid, String attributionTag, int opCode, in OpEvent() argument
494 mOpCode = opCode; in OpEvent()
498 public boolean matches(String pkgName, int uid, String attributionTag, int opCode, in matches() argument
501 && Objects.equals(attributionTag, mAttributionTag) && mOpCode == opCode in matches()
DAppOpsService.java3693 private void collectAsyncNotedOp(int uid, @NonNull String packageName, int opCode, in collectAsyncNotedOp() argument
3706 AsyncNotedAppOp asyncNotedOp = new AsyncNotedAppOp(opCode, callingUid, in collectAsyncNotedOp()
3712 reportRuntimeAppOpAccessMessageAsyncLocked(uid, packageName, opCode, in collectAsyncNotedOp()
3723 "Could not forward noteOp of " + opCode + " to " + packageName in collectAsyncNotedOp()
4344 public boolean shouldCollectNotes(int opCode) { in shouldCollectNotes() argument
4345 Preconditions.checkArgumentInRange(opCode, 0, _NUM_OP - 1, "opCode"); in shouldCollectNotes()
4347 String perm = AppOpsManager.opToPermission(opCode); in shouldCollectNotes()
5098 int opCode = parser.getAttributeInt(null, "n"); in readOp() local
5099 Op op = new Op(uidState, pkgName, opCode, uidState.uid); in readOp()
6393 final int opCode = op.op; in dump()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/euicc/
DEuiccPort.java1390 @EuiccCardErrorException.OperationCode int opCode) in parseResponseAndCheckSimpleError() argument
1394 throw new EuiccCardErrorException(opCode, root.getChild(Tags.TAG_CTX_1).asInteger()); in parseResponseAndCheckSimpleError()
/frameworks/native/services/sensorservice/
DSensorService.cpp2012 const int32_t opCode = sensor.getRequiredAppOp(); in canAccessSensor() local
2025 if (opCode >= 0) { in canAccessSensor()
2026 const int32_t appOpMode = sAppOpsManager.checkOp(opCode, in canAccessSensor()

12