Home
last modified time | relevance | path

Searched refs:TestInjector (Results 1 – 25 of 57) sorted by relevance

123

/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/
DWakeLockLogTest.java63 TestInjector injectorSpy = spy(new TestInjector(tagDatabaseSize, logSize)); in testAddTwoItems_withNoEventTimeSupplied()
88 TestInjector injectorSpy = spy(new TestInjector(tagDatabaseSize, logSize)); in testAddTwoItems()
112 TestInjector injectorSpy = spy(new TestInjector(tagDatabaseSize, logSize)); in testAddTwoItemsWithTimeReset()
132 TestInjector injectorSpy = spy(new TestInjector(tagDatabaseSize, logSize)); in testAddTwoItemsWithTagOverwrite()
152 TestInjector injectorSpy = spy(new TestInjector(tagDatabaseSize, logSize)); in testAddFourItemsWithRingBufferOverflow()
201 TestInjector injectorSpy = spy(new TestInjector(tagDatabaseSize, logSize)); in testAddItemWithBadTag()
219 TestInjector injectorSpy = spy(new TestInjector(tagDatabaseSize, logSize)); in testAddItemWithReducedTagName()
238 TestInjector injectorSpy = spy(new TestInjector(tagDatabaseSize, logSize)); in testAddAcquireAndReleaseWithRepeatTagName()
258 TestInjector injectorSpy = spy(new TestInjector(tagDatabaseSize, logSize)); in testAddAcquireAndReleaseWithTimeTravel()
278 TestInjector injectorSpy = spy(new TestInjector(tagDatabaseSize, logSize)); in testAddSystemWakelock()
[all …]
DShutdownCheckPointsTest.java61 private TestInjector mTestInjector;
68 mTestInjector = new TestInjector(mActivityManager); in setUp()
369 private static final class TestInjector implements ShutdownCheckPoints.Injector { class in ShutdownCheckPointsTest
375 TestInjector(IActivityManager activityManager) { in TestInjector() method in ShutdownCheckPointsTest.TestInjector
DShutdownThreadTest.java103 mShutdownThread = new ShutdownThread(new TestInjector()); in setUp()
202 private class TestInjector extends ShutdownThread.Injector { class in ShutdownThreadTest
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DPersistentDataStoreTest.java54 private TestInjector mInjector;
63 mInjector = new TestInjector(); in setUp()
163 TestInjector newInjector = new TestInjector(); in testSetBrightness_brightnessTagWithNoUserId_updatesToBrightnessTagWithUserId()
305 TestInjector newInjector = new TestInjector(); in testStoreAndReloadOfDisplayBrightnessConfigurations()
368 TestInjector newInjector = new TestInjector(); in testStoreAndReloadOfBrightnessConfigurations()
421 TestInjector newInjector = new TestInjector(); in testStoreAndRestoreResolution()
457 TestInjector newInjector = new TestInjector(); in testStoreAndRestoreRefreshRate()
493 TestInjector newInjector = new TestInjector(); in testBrightnessInitialisesWithInvalidFloat()
512 TestInjector newInjector = new TestInjector(); in testStoreAndRestoreBrightnessNitsForDefaultDisplay()
529 public class TestInjector extends PersistentDataStore.Injector { class in PersistentDataStoreTest
/frameworks/base/services/tests/uiservicestests/src/com/android/server/
DUiModeManagerServiceTest.java157 private TestInjector mInjector;
247 mInjector = spy(new TestInjector()); in setUp()
966 .thenReturn(TestInjector.DEFAULT_CALLING_UID + 1); in requestProjection_failsForBogusPackageName()
986 .thenReturn(TestInjector.DEFAULT_CALLING_UID); in requestProjection_failsIfNoProjectionTypes()
999 .thenReturn(TestInjector.DEFAULT_CALLING_UID); in requestProjection_failsIfMultipleProjectionTypes()
1025 .thenReturn(TestInjector.DEFAULT_CALLING_UID); in requestProjection_automotive_failsIfAlreadySetByOtherPackage()
1031 .thenReturn(TestInjector.DEFAULT_CALLING_UID); in requestProjection_automotive_failsIfAlreadySetByOtherPackage()
1040 .thenReturn(TestInjector.DEFAULT_CALLING_UID); in requestProjection_failsIfCannotLinkToDeath()
1050 .thenReturn(TestInjector.DEFAULT_CALLING_UID); in requestProjection()
1066 .thenReturn(TestInjector.DEFAULT_CALLING_UID); in releaseProjection_failsForBogusPackageName()
[all …]
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/clamper/
DBrightnessWearBedtimeModeClamperTest.java56 private final TestInjector mInjector = new TestInjector();
109 private static class TestInjector extends BrightnessWearBedtimeModeClamper.Injector { class in BrightnessWearBedtimeModeClamperTest
DBrightnessClamperControllerTest.java96 private TestInjector mTestInjector;
105 mTestInjector = new TestInjector(List.of(mMockClamper), List.of(mMockModifier)); in setUp()
299 private class TestInjector extends BrightnessClamperController.Injector { class in BrightnessClamperControllerTest
307 private TestInjector( in TestInjector() method in BrightnessClamperControllerTest.TestInjector
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
DEventIndexTest.java43 private TestInjector mInjector;
48 mInjector = new TestInjector(CURRENT_TIMESTAMP); in setUp()
159 private class TestInjector extends EventIndex.Injector { class in EventIndexTest
163 TestInjector(long currentTimeMillis) { in TestInjector() method in EventIndexTest.TestInjector
/frameworks/base/services/tests/servicestests/src/com/android/server/os/
DBugreportManagerServiceImplTest.java90 private TestInjector mInjector;
106 mInjector = new TestInjector(mContext, mAllowlistedPackages, mMappingFile, in setUp()
260 new TestInjector(mContext, new ArraySet<>(), mMappingFile, in testCancelBugreportWithoutRole()
271 new TestInjector(mContext, new ArraySet<>(), mMappingFile, in testCancelBugreportWithRole()
327 private static class TestInjector extends BugreportManagerServiceImpl.Injector { class in BugreportManagerServiceImplTest
336 TestInjector(Context context, ArraySet<String> allowlistedPackages, AtomicFile mappingFile, in TestInjector() method in BugreportManagerServiceImplTest.TestInjector
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/
DTestInjector.java23 public class TestInjector implements Injector { class
40 public TestInjector(Context context) { in TestInjector() method in TestInjector
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DPersistentServiceConnectionTest.java103 new TestInjector(mClock)); in setup()
193 static class TestInjector extends PersistentServiceConnection.Injector { class in PersistentServiceConnectionTest
196 TestInjector(OffsettableClock clock) { in TestInjector() method in PersistentServiceConnectionTest.TestInjector
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/gnss/
DGnssAntennaInfoProviderTest.java39 import com.android.server.location.injector.TestInjector;
71 Injector injector = new TestInjector(mContext); in setUp()
DGnssNavigationMessageProviderTest.java38 import com.android.server.location.injector.TestInjector;
72 Injector injector = new TestInjector(mContext); in setUp()
DGnssNmeaProviderTest.java43 import com.android.server.location.injector.TestInjector;
82 Injector injector = new TestInjector(mContext); in setUp()
DGnssStatusProviderTest.java43 import com.android.server.location.injector.TestInjector;
81 Injector injector = new TestInjector(mContext); in setUp()
DGnssGeofenceProxyTest.java29 import com.android.server.location.injector.TestInjector;
68 GnssNative.create(new TestInjector(mContext), mMockConfiguration)); in setUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DCoreSettingsObserverTest.java110 mAms = new ActivityManagerService(new TestInjector(mContext), in setUp()
175 private class TestInjector extends Injector { class in CoreSettingsObserverTest
177 TestInjector(Context context) { in TestInjector() method in CoreSettingsObserverTest.TestInjector
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/users/
DAppRestrictionsHelperTest.java64 private TestInjector mInjector;
76 mInjector = new TestInjector(); in setUp()
265 private class TestInjector extends AppRestrictionsHelper.Injector { class in AppRestrictionsHelperTest
268 TestInjector() { in TestInjector() method in AppRestrictionsHelperTest.TestInjector
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/
DLocationManagerServiceTest.java47 import com.android.server.location.injector.TestInjector;
75 private TestInjector mInjector;
111 mInjector = new TestInjector(mContext); in setUp()
/frameworks/base/services/tests/mockingservicestests/src/android/service/dreams/
DDreamOverlayConnectionHandlerTest.java81 new TestInjector(mConnection)); in setUp()
231 static class TestInjector extends DreamOverlayConnectionHandler.Injector { class in DreamOverlayConnectionHandlerTest
234 TestInjector(PersistentServiceConnection<IDreamOverlay> connection) { in TestInjector() method in DreamOverlayConnectionHandlerTest.TestInjector
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DServiceTimeoutTest.java110 new TestInjector(mContext), mServiceThreadRule.getThread()); in setUp()
175 private class TestInjector extends Injector { class in ServiceTimeoutTest
176 TestInjector(Context context) { in TestInjector() method in ServiceTimeoutTest.TestInjector
DAppChildProcessTest.java74 private TestInjector mInjector;
101 mInjector = new TestInjector(mContext); in setUp()
244 private class TestInjector extends ActivityManagerService.Injector { class in AppChildProcessTest
245 TestInjector(Context context) { in TestInjector() method in AppChildProcessTest.TestInjector
DAsyncProcessStartTest.java133 new TestInjector(mContext), mServiceThreadRule.getThread()); in setUp()
157 private class TestInjector extends Injector { class in AsyncProcessStartTest
158 TestInjector(Context context) { in TestInjector() method in AsyncProcessStartTest.TestInjector
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/gnss/hal/
DGnssNativeTest.java34 import com.android.server.location.injector.TestInjector;
61 Injector injector = new TestInjector(mContext); in setUp()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/usage/
DUsageStatsServiceTest.java61 private static class TestInjector extends UsageStatsService.Injector { class in UsageStatsServiceTest
80 mService = new UsageStatsService(mContext, new TestInjector()); in setUp()

123