Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/app/
DSyncNotedAppOp.java57 public SyncNotedAppOp(@IntRange(from = 0L) int opCode, @Nullable String attributionTag) { in SyncNotedAppOp()
58 this.mOpCode = opCode; in SyncNotedAppOp()
148 int opCode = in.readInt(); in SyncNotedAppOp() local
151 this.mOpCode = opCode; in SyncNotedAppOp()
DRuntimeAppOpAccessMessage.java76 @IntRange(from = 0L) int opCode, in RuntimeAppOpAccessMessage()
85 this.mOpCode = opCode; in RuntimeAppOpAccessMessage()
190 int opCode = in.readInt(); in RuntimeAppOpAccessMessage() local
200 this.mOpCode = opCode; in RuntimeAppOpAccessMessage()
DAsyncNotedAppOp.java105 @IntRange(from = 0) int opCode, in AsyncNotedAppOp()
110 this.mOpCode = opCode; in AsyncNotedAppOp()
224 int opCode = in.readInt(); in AsyncNotedAppOp() local
230 this.mOpCode = opCode; in AsyncNotedAppOp()
DAppOpsManager.java4755 public void increaseAccessCount(int opCode, int uid, @NonNull String packageName, in increaseAccessCount() argument
4758 getOrCreateHistoricalUidOps(uid).increaseAccessCount(opCode, in increaseAccessCount()
4764 public void increaseRejectCount(int opCode, int uid, @NonNull String packageName, in increaseRejectCount() argument
4767 getOrCreateHistoricalUidOps(uid).increaseRejectCount(opCode, in increaseRejectCount()
4773 public void increaseAccessDuration(int opCode, int uid, @NonNull String packageName, in increaseAccessDuration() argument
4776 getOrCreateHistoricalUidOps(uid).increaseAccessDuration(opCode, in increaseAccessDuration()
5086 private void increaseAccessCount(int opCode, @NonNull String packageName, in increaseAccessCount() argument
5090 opCode, attributionTag, uidState, flags, increment); in increaseAccessCount()
5093 private void increaseRejectCount(int opCode, @NonNull String packageName, in increaseRejectCount() argument
5097 opCode, attributionTag, uidState, flags, increment); in increaseRejectCount()
[all …]
/frameworks/base/obex/javax/obex/
DClientSession.java459 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()
DClientOperation.java441 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/base/services/core/java/com/android/server/policy/
DPermissionPolicyService.java845 private void setUidModeAllowed(int opCode, int uid, @NonNull String packageName) { in setUidModeAllowed() argument
846 setUidMode(opCode, uid, MODE_ALLOWED, packageName); in setUidModeAllowed()
849 private void setUidModeForeground(int opCode, int uid, @NonNull String packageName) { in setUidModeForeground() argument
850 setUidMode(opCode, uid, MODE_FOREGROUND, packageName); in setUidModeForeground()
853 private void setUidModeIgnored(int opCode, int uid, @NonNull String packageName) { in setUidModeIgnored() argument
854 setUidMode(opCode, uid, MODE_IGNORED, packageName); in setUidModeIgnored()
857 private boolean setUidModeIgnoredIfNotAllowed(int opCode, int uid, in setUidModeIgnoredIfNotAllowed() argument
860 opCode), uid, packageName); in setUidModeIgnoredIfNotAllowed()
863 mAppOpsManagerInternal.setUidModeFromPermissionPolicy(opCode, uid, MODE_IGNORED, in setUidModeIgnoredIfNotAllowed()
871 private void setUidMode(int opCode, int uid, int mode, in setUidMode() argument
[all …]
/frameworks/native/libs/binder/
DIAppOpsService.cpp147 virtual bool shouldCollectNotes(int32_t opCode) { in shouldCollectNotes() argument
150 data.writeInt32(opCode); in shouldCollectNotes()
243 const int32_t opCode = permissionToOpCode(permission); in onTransact() local
245 reply->writeInt32(opCode); in onTransact()
268 int32_t opCode = data.readInt32(); in onTransact() local
269 bool shouldCollect = shouldCollectNotes(opCode); in onTransact()
/frameworks/native/libs/ui/tests/
DGraphicBufferOverBinder_test.cpp99 status_t GetGraphicBuffer(sp<GraphicBuffer>* outBuf, uint32_t opCode) { in GetGraphicBuffer() argument
102 status_t error = mService->transact(opCode, data, &reply); in GetGraphicBuffer()
/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/opt/net/wifi/service/java/com/android/server/wifi/util/
DFrameParser.java326 int opCode = getUnsignedShort(data); in parseArpPacket() local
327 switch (opCode) { in parseArpPacket()
335 mTypeString = "Operation " + opCode; in parseArpPacket()
/frameworks/native/libs/binder/include/binder/
DIAppOpsService.h53 virtual bool shouldCollectNotes(int32_t opCode) = 0;
DAppOpsManager.h169 bool shouldCollectNotes(int32_t opCode);
/frameworks/base/media/native/midi/
Damidi.cpp431 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/core/java/com/android/internal/app/
DIAppOpsService.aidl50 boolean shouldCollectNotes(int opCode); in shouldCollectNotes() argument
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/
DAppOpsServiceTest.java463 private void assertContainsOp(List<PackageOps> loggedOps, int opCode, long minMillis, in assertContainsOp() argument
473 if (opCode != opEntry.getOp()) { in assertContainsOp()
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsService.java3254 private void collectAsyncNotedOp(int uid, @NonNull String packageName, int opCode, in collectAsyncNotedOp() argument
3267 AsyncNotedAppOp asyncNotedOp = new AsyncNotedAppOp(opCode, callingUid, in collectAsyncNotedOp()
3273 reportRuntimeAppOpAccessMessageAsyncLocked(uid, packageName, opCode, in collectAsyncNotedOp()
3284 "Could not forward noteOp of " + opCode + " to " + packageName in collectAsyncNotedOp()
3653 public boolean shouldCollectNotes(int opCode) { in shouldCollectNotes() argument
3654 Preconditions.checkArgumentInRange(opCode, 0, _NUM_OP - 1, "opCode"); in shouldCollectNotes()
3656 String perm = AppOpsManager.opToPermission(opCode); in shouldCollectNotes()
4251 int opCode = Integer.parseInt(parser.getAttributeValue(null, "n")); in readOp() local
4252 Op op = new Op(uidState, pkgName, opCode, uidState.uid); in readOp()
5523 final int opCode = op.op; in dump()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DBroadcastQueue.java639 final int opCode = AppOpsManager.permissionToOpCode(filter.requiredPermission); in deliverToRegisteredReceiverLocked() local
640 if (opCode != AppOpsManager.OP_NONE in deliverToRegisteredReceiverLocked()
641 && mService.getAppOpsManager().noteOpNoThrow(opCode, r.callingUid, in deliverToRegisteredReceiverLocked()
1365 final int opCode = AppOpsManager.permissionToOpCode(info.activityInfo.permission); in processNextBroadcastLocked() local
1366 if (opCode != AppOpsManager.OP_NONE in processNextBroadcastLocked()
1367 … && mService.getAppOpsManager().noteOpNoThrow(opCode, r.callingUid, r.callerPackage, in processNextBroadcastLocked()
DActiveServices.java2545 final int opCode = AppOpsManager.permissionToOpCode(r.permission); in retrieveServiceLocked() local
2546 if (opCode != AppOpsManager.OP_NONE && mAm.getAppOpsManager().checkOpNoThrow( in retrieveServiceLocked()
2547 opCode, callingUid, callingPackage) != AppOpsManager.MODE_ALLOWED) { in retrieveServiceLocked()
2551 + " requires appop " + AppOpsManager.opToName(opCode)); in retrieveServiceLocked()
/frameworks/base/services/core/java/com/android/server/wm/
DActivityStackSupervisor.java1164 final int opCode = AppOpsManager.permissionToOpCode(activityInfo.permission); in getComponentRestrictionForCallingPackage() local
1165 if (opCode == AppOpsManager.OP_NONE) { in getComponentRestrictionForCallingPackage()
1169 if (getAppOpsManager().noteOpNoThrow(opCode, callingUid, in getComponentRestrictionForCallingPackage()
1208 final int opCode = AppOpsManager.permissionToOpCode(permission); in getActionRestrictionForCallingPackage() local
1209 if (opCode == AppOpsManager.OP_NONE) { in getActionRestrictionForCallingPackage()
1213 if (getAppOpsManager().noteOpNoThrow(opCode, callingUid, in getActionRestrictionForCallingPackage()
/frameworks/native/services/sensorservice/
DSensorService.cpp1804 const int32_t opCode = sensor.getRequiredAppOp(); in canAccessSensor() local
1805 const int32_t appOpMode = sAppOpsManager.checkOp(opCode, in canAccessSensor()
1820 if (opCode < 0 || appOpAllowed) { in canAccessSensor()
1826 sAppOpsManager.noteOp(opCode, IPCThreadState::self()->getCallingUid(), opPackageName); in canAccessSensor()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/euicc/
DEuiccCard.java1412 @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/
DUtils.h299 std::string getOperationName(hal::OperationType opCode);
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java5350 final int opCode = AppOpsManager.permissionToOpCode(perm);
5351 if (opCode == AppOpsManager.OP_NONE || mAppOpsManager.checkOpNoThrow(
5352 opCode, uid, packageName) == AppOpsManager.MODE_ALLOWED) {
5376 final int opCode = AppOpsManager.permissionToOpCode(perm);
5377 if (opCode == AppOpsManager.OP_NONE || mAppOpsManager.noteOpNoThrow(
5378 opCode, callingUid, opPackageName) == AppOpsManager.MODE_ALLOWED) {
/frameworks/ml/nn/runtime/test/
DTestValidateOperations.cpp331 OperationTestBase(ANeuralNetworksOperationType opCode, in OperationTestBase() argument
335 : mOpCode(opCode), mValidInputs(), mValidOutputs(), mInputRankMutators(inputRankMutators) {