Home
last modified time | relevance | path

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

/aosp12/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()
H A DLocationAttributionHelperTest.java60 CallerIdentity caller1 = CallerIdentity.forTest(1, 1, "test1", null); in testLocationMonitoring()
61 CallerIdentity caller2 = CallerIdentity.forTest(2, 2, "test2", null); in testLocationMonitoring()
102 CallerIdentity caller1 = CallerIdentity.forTest(1, 1, "test1", null); in testHighPowerLocationMonitoring()
103 CallerIdentity caller2 = CallerIdentity.forTest(2, 2, "test2", null); in testHighPowerLocationMonitoring()
/aosp12/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
/aosp12/frameworks/base/core/java/com/android/internal/os/
H A DPowerProfile.java289 public PowerProfile(Context context, boolean forTest) { in PowerProfile() argument
293 readPowerValuesFromXml(context, forTest); in PowerProfile()
300 private void readPowerValuesFromXml(Context context, boolean forTest) { in readPowerValuesFromXml() argument
301 final int id = forTest ? com.android.internal.R.xml.power_profile_test : in readPowerValuesFromXml()
/aosp12/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,
230 CallerIdentity newIdentity = CallerIdentity.forTest(OTHER_USER, 1, "otherpackage", in testProperties()
478 CallerIdentity identity = CallerIdentity.forTest(CURRENT_USER, Process.myPid(), "mypackage", in testRegisterListener_SameProcess()
514 CallerIdentity identity = CallerIdentity.forTest(CURRENT_USER, Process.myPid(), "mypackage", in testRegisterListener_Unregister_SameProcess()
641 CallerIdentity identity = CallerIdentity.forTest(CURRENT_USER, Process.myPid(), "mypackage", in testRegisterListener_Wakelock()
849 CallerIdentity identity1 = CallerIdentity.forTest(CURRENT_USER, 1, in testLocationMonitoring_multipleIdentities()
851 CallerIdentity identity2 = CallerIdentity.forTest(CURRENT_USER, 1, in testLocationMonitoring_multipleIdentities()
H A DMockableLocationProviderTest.java76 CallerIdentity.forTest(0, 1, "testpackage", "test"), in setUp()
/aosp12/frameworks/base/services/core/java/com/android/server/location/
H A DLocationManagerService.java384 + CallerIdentity.forTest(uid, 0, packageName, attributionTag)); in onSystemReady()