Home
last modified time | relevance | path

Searched refs:forTest (Results 1 – 10 of 10) sorted by relevance

/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/
H A DSystemAppOpsHelperTest.java107 CallerIdentity identity = CallerIdentity.forTest(1000, 1000, "mypackage", "myfeature"); in testCheckOp()
117 identity = CallerIdentity.forTest(1000, 1000, "mypackage", "myfeature"); in testCheckOp()
130 CallerIdentity identity = CallerIdentity.forTest(1000, 1000, "mypackage", "myfeature"); in testNoteOpNoThrow()
143 identity = CallerIdentity.forTest(1000, 1000, "mypackage", "myfeature"); in testNoteOpNoThrow()
158 CallerIdentity identity = CallerIdentity.forTest(1000, 1000, "mypackage", "myfeature"); in testStartOp()
173 CallerIdentity identity = CallerIdentity.forTest(1000, 1000, "mypackage", "myfeature"); in testFinishOp()
181 CallerIdentity identity = CallerIdentity.forTest(1000, 1000, "mypackage", "myfeature"); in testNoteOp()
/aosp14/frameworks/base/location/java/android/location/util/identity/
H A DCallerIdentity.java43 public static CallerIdentity forTest(int uid, int pid, String packageName, in forTest() method in CallerIdentity
45 return forTest(uid, pid, packageName, attributionTag, null); in forTest()
52 public static CallerIdentity forTest(int uid, int pid, String packageName, in forTest() method in CallerIdentity
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/gnss/
H A DGnssNavigationMessageProviderTest.java50 private static final CallerIdentity IDENTITY = CallerIdentity.forTest(CURRENT_USER, 1000,
H A DGnssNmeaProviderTest.java60 private static final CallerIdentity IDENTITY = CallerIdentity.forTest(CURRENT_USER, 1000,
H A DGnssStatusProviderTest.java59 private static final CallerIdentity IDENTITY = CallerIdentity.forTest(CURRENT_USER, 1000,
H A DGnssMeasurementsProviderTest.java61 private static final CallerIdentity IDENTITY = CallerIdentity.forTest(CURRENT_USER, 1000,
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/provider/
H A DLocationProviderManagerTest.java132 private static final CallerIdentity PROVIDER_IDENTITY = CallerIdentity.forTest(CURRENT_USER, 1,
134 private static final CallerIdentity IDENTITY = CallerIdentity.forTest(CURRENT_USER, 1,
242 CallerIdentity newIdentity = CallerIdentity.forTest(OTHER_USER, 1, "otherpackage", in testProperties()
516 CallerIdentity identity = CallerIdentity.forTest(CURRENT_USER, Process.myPid(), "mypackage", in testRegisterListener_SameProcess()
552 CallerIdentity identity = CallerIdentity.forTest(CURRENT_USER, Process.myPid(), "mypackage", in testRegisterListener_Unregister_SameProcess()
698 CallerIdentity identity = CallerIdentity.forTest(CURRENT_USER, Process.myPid(), "mypackage", in testRegisterListener_Wakelock()
917 CallerIdentity identity1 = CallerIdentity.forTest(CURRENT_USER, 1, in testLocationMonitoring_multipleIdentities()
919 CallerIdentity identity2 = CallerIdentity.forTest(CURRENT_USER, 1, in testLocationMonitoring_multipleIdentities()
H A DMockableLocationProviderTest.java76 CallerIdentity.forTest(0, 1, "testpackage", "test"), in setUp()
/aosp14/frameworks/base/core/java/com/android/internal/os/
H A DPowerProfile.java331 public PowerProfile(Context context, boolean forTest) { in PowerProfile() argument
334 final int xmlId = forTest ? com.android.internal.R.xml.power_profile_test in PowerProfile()
/aosp14/frameworks/base/services/core/java/com/android/server/location/
H A DLocationManagerService.java400 + CallerIdentity.forTest(uid, 0, packageName, attributionTag)); in onSystemReady()