/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/ |
D | WakeLockLogTest.java | 63 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 …]
|
D | ShutdownCheckPointsTest.java | 61 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
|
D | ShutdownThreadTest.java | 103 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/ |
D | PersistentDataStoreTest.java | 54 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/ |
D | UiModeManagerServiceTest.java | 157 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/ |
D | BrightnessWearBedtimeModeClamperTest.java | 56 private final TestInjector mInjector = new TestInjector(); 109 private static class TestInjector extends BrightnessWearBedtimeModeClamper.Injector { class in BrightnessWearBedtimeModeClamperTest
|
D | BrightnessClamperControllerTest.java | 96 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/ |
D | EventIndexTest.java | 43 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/ |
D | BugreportManagerServiceImplTest.java | 90 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/ |
D | TestInjector.java | 23 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/ |
D | PersistentServiceConnectionTest.java | 103 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/ |
D | GnssAntennaInfoProviderTest.java | 39 import com.android.server.location.injector.TestInjector; 71 Injector injector = new TestInjector(mContext); in setUp()
|
D | GnssNavigationMessageProviderTest.java | 38 import com.android.server.location.injector.TestInjector; 72 Injector injector = new TestInjector(mContext); in setUp()
|
D | GnssNmeaProviderTest.java | 43 import com.android.server.location.injector.TestInjector; 82 Injector injector = new TestInjector(mContext); in setUp()
|
D | GnssStatusProviderTest.java | 43 import com.android.server.location.injector.TestInjector; 81 Injector injector = new TestInjector(mContext); in setUp()
|
D | GnssGeofenceProxyTest.java | 29 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/ |
D | CoreSettingsObserverTest.java | 110 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/ |
D | AppRestrictionsHelperTest.java | 64 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/ |
D | LocationManagerServiceTest.java | 47 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/ |
D | DreamOverlayConnectionHandlerTest.java | 81 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/ |
D | ServiceTimeoutTest.java | 110 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
|
D | AppChildProcessTest.java | 74 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
|
D | AsyncProcessStartTest.java | 133 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/ |
D | GnssNativeTest.java | 34 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/ |
D | UsageStatsServiceTest.java | 61 private static class TestInjector extends UsageStatsService.Injector { class in UsageStatsServiceTest 80 mService = new UsageStatsService(mContext, new TestInjector()); in setUp()
|