Searched refs:mMyUid (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/ |
D | AppOpsServiceTest.java | 99 private int mMyUid; field in AppOpsServiceTest 123 mMyUid = Process.myUid(); in setUp() 149 when(mockMyPkg.getUid()).thenReturn(mMyUid); in initializeStaticMocks() 168 mAppOpsService.setMode(OP_READ_SMS, mMyUid, sMyPackageName, MODE_ALLOWED); in testNoteOperationAndGetOpsForPackage() 169 mAppOpsService.setMode(OP_WRITE_SMS, mMyUid, sMyPackageName, MODE_ERRORED); in testNoteOperationAndGetOpsForPackage() 172 mAppOpsService.noteOperation(OP_READ_SMS, mMyUid, sMyPackageName, null, false, null, false); in testNoteOperationAndGetOpsForPackage() 177 mAppOpsService.noteOperation(OP_WRITE_SMS, mMyUid, sMyPackageName, null, false, null, in testNoteOperationAndGetOpsForPackage() 192 mAppOpsService.setMode(OP_COARSE_LOCATION, mMyUid, sMyPackageName, MODE_ALLOWED); in testNoteOperationAndGetOpsForPackage_controlledByDifferentOp() 194 assertThat(mAppOpsService.noteOperation(OP_WIFI_SCAN, mMyUid, sMyPackageName, null, false, in testNoteOperationAndGetOpsForPackage_controlledByDifferentOp() 201 mAppOpsService.setMode(OP_COARSE_LOCATION, mMyUid, sMyPackageName, MODE_ERRORED); in testNoteOperationAndGetOpsForPackage_controlledByDifferentOp() [all …]
|
/frameworks/base/core/java/android/content/ |
D | ContentProvider.java | 126 private int mMyUid; field in ContentProvider 749 if (UserHandle.isSameApp(uid, mMyUid)) { in enforceReadPermissionInner() 798 final Uri userUri = (mSingleUser && !UserHandle.isSameUser(mMyUid, uid)) in enforceReadPermissionInner() 833 if (UserHandle.isSameApp(uid, mMyUid)) { in enforceWritePermissionInner() 2375 mMyUid = Process.myUid(); in attachInfo()
|