Home
last modified time | relevance | path

Searched refs:mMockInjector (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DTransferOwnershipMetadataManagerTest.java71 private MockInjector mMockInjector; field in TransferOwnershipMetadataManagerTest
75 mMockInjector = new MockInjector(); in setUp()
91 Path path = Paths.get(new File(mMockInjector.getOwnerTransferMetadataDir(), in testFileContentValid()
113 new File(mMockInjector.getOwnerTransferMetadataDir(), OWNER_TRANSFER_METADATA_XML); in testLoad()
146 return new TransferOwnershipMetadataManager(mMockInjector); in getOwnerTransferParams()
DDevicePolicyManagerServiceTestable.java95 protected final MockInjector mMockInjector; field in DevicePolicyManagerServiceTestable
103 mMockInjector = injector; in DevicePolicyManagerServiceTestable()
108 ContentObserver co = mMockInjector.mContentObservers.get(new Pair<>(uri, userHandle)); in notifyChangeToContentObserver()
114 co = mMockInjector.mContentObservers.get(new Pair<>(uri, UserHandle.USER_ALL)); in notifyChangeToContentObserver()
DDevicePolicyManagerTest.java4819 when(dpms.mMockInjector.getPersistentDataBlockManagerInternal().getAllowedUid()) in testWipeDataManagedProfileOnOrganizationOwnedDevice()
5403 dpms.mMockInjector.setChangeEnabledForPackage(165573442L, false, in testCanSetPasswordRequirementOnParentPreS()
5418 dpms.mMockInjector.setChangeEnabledForPackage(165573442L, true, in testCannotSetPasswordRequirementOnParent()
5426 dpms.mMockInjector.clearEnabledChanges(); in testCannotSetPasswordRequirementOnParent()
7156 dpms.mMockInjector.setSystemCurrentTimeMillis(PROFILE_OFF_WARNING_TIME + 10); in testMaximumProfileTimeOff_profileOffTimeExceeded()
7171 dpms.mMockInjector.setSystemCurrentTimeMillis(PROFILE_OFF_DEADLINE + 10); in testMaximumProfileTimeOff_profileOffTimeExceeded()
7221 dpms.mMockInjector.setSystemCurrentTimeMillis(PROFILE_OFF_WARNING_TIME + 10); in testMaximumProfileTimeOff_turnOnAfterWarning()
7251 dpms.mMockInjector.setSystemCurrentTimeMillis(PROFILE_OFF_DEADLINE + 10); in testMaximumProfileTimeOff_turnOnAfterDeadline()
7284 dpms.mMockInjector.setSystemCurrentTimeMillis(PROFILE_OFF_START); in testMaximumProfileTimeOff_turnOnAfterDeadline()
7787 dpms.mMockInjector.setSystemCurrentTimeMillis(PROFILE_OFF_START); in prepareMocksForSetMaximumProfileTimeOff()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DActivityManagerInternalTest.java52 @Mock private ActivityManagerService.Injector mMockInjector; field in ActivityManagerInternalTest
61 doReturn(InstrumentationRegistry.getInstrumentation().getContext()).when(mMockInjector) in setUp()
63 doReturn(mServiceThreadRule.getThread().getThreadHandler()).when(mMockInjector) in setUp()
66 doReturn(dummyList).when(mMockInjector).getProcessList(any()); in setUp()
67 mAms = new ActivityManagerService(mMockInjector, mServiceThreadRule.getThread()); in setUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DScanTests.java89 PackageManagerService.Injector mMockInjector; field in ScanTests
93 when(mMockInjector.getAbiHelper()).thenReturn(mMockPackageAbiHelper); in setupInjector()
94 when(mMockInjector.getUserManagerInternal()).thenReturn(mMockUserManager); in setupInjector()
95 when(mMockInjector.getCompatibility()).thenReturn(mMockCompatibility); in setupInjector()
102 when(mMockInjector.getDomainVerificationManagerInternal()) in setupInjector()
437 mMockInjector, in factoryTestFlagSet()
485 mMockInjector,
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DRebootEscrowManagerTests.java115 private MockInjector mMockInjector; field in RebootEscrowManagerTests
291 mMockInjector = new MockInjector(mContext, mUserManager, mRebootEscrow, in setUp_baseServices()
293 mService = new RebootEscrowManager(mMockInjector, mCallbacks, mStorage); in setUp_baseServices()
297 mMockInjector = new MockInjector(mContext, mUserManager, mServiceConnection, in setServerBasedRebootEscrowProvider()
299 mService = new RebootEscrowManager(mMockInjector, mCallbacks, mStorage); in setServerBasedRebootEscrowProvider()
346 assertNull(mMockInjector.getRebootEscrowProvider()); in clearCredentials_HalFailure_NonFatal()
815 mMockInjector.mServerBased = true; in armServiceProviderMismatch_Failure()