Searched refs:OP_MOCK_LOCATION (Results 1 – 3 of 3) sorted by relevance
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/ |
H A D | SystemAppOpsHelperTest.java | 22 import static android.app.AppOpsManager.OP_MOCK_LOCATION; 184 mAppOps).noteOp(eq(OP_MOCK_LOCATION), eq(1000), eq("mypackage"), eq("myfeature"), in testNoteOp() 186 assertThat(mHelper.noteOp(OP_MOCK_LOCATION, identity)).isTrue(); in testNoteOp() 189 mAppOps).noteOp(eq(OP_MOCK_LOCATION), eq(1000), eq("mypackage"), eq("myfeature"), in testNoteOp() 191 assertThat(mHelper.noteOp(OP_MOCK_LOCATION, identity)).isFalse(); in testNoteOp() 195 mAppOps).noteOp(eq(OP_MOCK_LOCATION), eq(1000), eq("mypackage"), eq("myfeature"), in testNoteOp() 197 assertThrows(SecurityException.class, () -> mHelper.noteOp(OP_MOCK_LOCATION, identity)); in testNoteOp()
|
/aosp14/frameworks/base/services/core/java/com/android/server/location/ |
H A D | LocationManagerService.java | 1395 if (!mInjector.getAppOpsHelper().noteOp(AppOpsManager.OP_MOCK_LOCATION, identity)) { in addTestProvider() 1408 if (!mInjector.getAppOpsHelper().noteOp(AppOpsManager.OP_MOCK_LOCATION, identity)) { in removeTestProvider() 1431 if (!mInjector.getAppOpsHelper().noteOp(AppOpsManager.OP_MOCK_LOCATION, identity)) { in setTestProviderLocation() 1452 if (!mInjector.getAppOpsHelper().noteOp(AppOpsManager.OP_MOCK_LOCATION, identity)) { in setTestProviderEnabled()
|
/aosp14/frameworks/base/core/java/android/app/ |
H A D | AppOpsManager.java | 1079 public static final int OP_MOCK_LOCATION = AppProtoEnums.APP_OP_MOCK_LOCATION; field in AppOpsManager 2541 new AppOpInfo.Builder(OP_MOCK_LOCATION, OPSTR_MOCK_LOCATION, "MOCK_LOCATION")
|