Home
last modified time | relevance | path

Searched refs:OP_MOCK_LOCATION (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/
DSystemAppOpsHelperTest.java22 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()
/frameworks/base/services/core/java/com/android/server/location/
DLocationManagerService.java1467 if (!mInjector.getAppOpsHelper().noteOp(AppOpsManager.OP_MOCK_LOCATION, identity)) { in addTestProvider()
1480 if (!mInjector.getAppOpsHelper().noteOp(AppOpsManager.OP_MOCK_LOCATION, identity)) { in removeTestProvider()
1503 if (!mInjector.getAppOpsHelper().noteOp(AppOpsManager.OP_MOCK_LOCATION, identity)) { in setTestProviderLocation()
1524 if (!mInjector.getAppOpsHelper().noteOp(AppOpsManager.OP_MOCK_LOCATION, identity)) { in setTestProviderEnabled()
/frameworks/base/core/java/android/app/
DAppOpsManager.java1105 public static final int OP_MOCK_LOCATION = AppProtoEnums.APP_OP_MOCK_LOCATION; field in AppOpsManager
2809 new AppOpInfo.Builder(OP_MOCK_LOCATION, OPSTR_MOCK_LOCATION, "MOCK_LOCATION")