Home
last modified time | relevance | path

Searched refs:getServices (Results 1 – 25 of 38) sorted by relevance

12

/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java272 when(getServices().packageManager.hasSystemFeature(eq(PackageManager.FEATURE_DEVICE_ADMIN))) in setUp()
275 .when(getServices().packageManager).queryBroadcastReceiversAsUser( in setUp()
282 getServices().addPackageContext(UserHandle.of(0), mContext); in setUp()
283 getServices().addPackageContext(UserHandle.of(CALLER_USER_HANDLE), mContext); in setUp()
286 when(getServices().userManager.isUserUnlocked(anyInt())).thenReturn(true); in setUp()
290 Mockito.reset(getServices().usageStatsManagerInternal); in setUp()
291 Mockito.reset(getServices().networkPolicyManagerInternal); in setUp()
297 mAdmin1Context = new DpmMockContext(getServices(), mRealTestContext); in setUp()
304 when(getServices().lockPatternUtils.hasSecureLockScreen()).thenReturn(true); in setUp()
332 dpms = new DevicePolicyManagerServiceTestable(getServices(), mContext); in initializeDpms()
[all …]
DDevicePolicyManagerServiceMigrationTest.java80 getServices().addPackageContext(UserHandle.of(0), mContext); in setUp()
82 when(getServices().packageManager.hasSystemFeature(eq(PackageManager.FEATURE_DEVICE_ADMIN))) in setUp()
90 final File user10dir = getServices().addUser(10, 0, in testMigration_managedProfileOwner()
95 when(getServices().userManager.isManagedProfile(eq(10))).thenReturn(true); in testMigration_managedProfileOwner()
97 when(getServices().settings.settingsSecureGetIntForUser( in testMigration_managedProfileOwner()
102 … (new File(getServices().systemUserDataDir, "device_policies.xml")).getAbsoluteFile(), in testMigration_managedProfileOwner()
120 dpms = new DevicePolicyManagerServiceTestable(getServices(), mContext); in testMigration_managedProfileOwner()
164 when(getServices().lockPatternUtils.hasSecureLockScreen()).thenReturn(true); in testCompMigrationAffiliated()
171 final DpmMockContext poContext = new DpmMockContext(getServices(), mRealTestContext); in testCompMigrationAffiliated()
222 when(getServices().packageManagerInternal.isSuspendingAnyPackages( in testCompMigration_keepSuspendedAppsWhenDpcIsRPlus()
[all …]
DPolicyVersionUpgraderTest.java82 File parentDir = getServices().environment.getUserSystemDirectory(userId); in makeJournaledFile()
120 mUpgrader = new PolicyVersionUpgrader(mProvider, getServices().pathProvider); in setUp()
147 getServices().addUser(10, /* flags= */ 0, USER_TYPE_PROFILE_MANAGED); in testUpgrade0To1RemovesPasswordMetrics()
168 getServices().addUser(ownerUser, FLAG_PRIMARY, USER_TYPE_FULL_SYSTEM); in testUpgrade1To2MarksDoForPermissionControl()
187 getServices().addUser(ownerUser, FLAG_PRIMARY, USER_TYPE_FULL_SYSTEM); in testNoStaleDataInCacheAfterUpgrade()
196 dpms = new DevicePolicyManagerServiceTestable(getServices(), getContext()); in testNoStaleDataInCacheAfterUpgrade()
223 getServices().addUser(ownerUser, FLAG_PRIMARY, USER_TYPE_FULL_SYSTEM); in testUserControlDisabledPackagesFromR()
249 getServices().addUser(ownerUser, FLAG_PRIMARY, USER_TYPE_FULL_SYSTEM); in testUserControlDisabledPackagesFromS()
302 File parentDir = getServices().pathProvider.getDataSystemDirectory(); in getDoFilePath()
DDpmTestBase.java88 public MockSystemServices getServices() { in getServices() method in DpmTestBase
96 getServices().injectBroadcast(getContext(), intent, userHandle); in sendBroadcastWithUser()
106 getServices().rethrowBackgroundBroadcastExceptions(); in flushTasks()
266 when(getServices().systemProperties.get( in mockSystemPropertiesToReturnDefault()
271 when(getServices().systemProperties.getBoolean( in mockSystemPropertiesToReturnDefault()
276 when(getServices().systemProperties.getLong( in mockSystemPropertiesToReturnDefault()
DOwnersTest.java57 getServices().addUsers(10); in loadProfileOwner()
120 final MockSystemServices services = getServices(); in makeOwners()
DNetworkEventTest.java66 mDpmTestable = new DevicePolicyManagerServiceTestable(getServices(), mSpiedDpmMockContext); in setUp()
/frameworks/base/core/java/android/nfc/cardemulation/
DCardEmulation.java858 public List<ApduServiceInfo> getServices(String category) { in getServices() method in CardEmulation
860 return sService.getServices(mContext.getUserId(), category); in getServices()
869 return sService.getServices(mContext.getUserId(), category); in getServices()
880 public List<ApduServiceInfo> getServices(String category, int userId) { in getServices() method in CardEmulation
882 return sService.getServices(userId, category); in getServices()
891 return sService.getServices(userId, category); in getServices()
/frameworks/base/core/java/android/nfc/
DINfcCardEmulation.aidl38 List<ApduServiceInfo> getServices(int userHandle, in String category); in getServices() method
/frameworks/base/services/core/java/com/android/server/pm/pkg/parsing/
DPkgWithoutStatePackageInfo.java231 List<ParsedService> getServices(); in getServices() method
DPackageInfoWithoutStateUtils.java147 final int size = pkg.getServices().size(); in generateWithComponents()
152 final ParsedService s = pkg.getServices().get(i); in generateWithComponents()
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/
DPackageParserTest.java514 final List<ParsedService> services = pkg.getServices(); in testParseServiceProperties()
624 for (ParsedService service : pkg.getServices()) { in testNoComponentMetadataIsCoercedToNullForInfoObject()
743 assertEquals(ArrayUtils.size(a.getServices()), ArrayUtils.size(b.getServices())); in assertPackagesEqual()
744 for (int i = 0; i < ArrayUtils.size(a.getServices()); ++i) { in assertPackagesEqual()
745 assertServicesEqual(a, a.getServices().get(i), b, b.getServices().get(i)); in assertPackagesEqual()
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/parsing/
DPackageParserLegacyCoreTest.java445 assertEquals(1, p.getServices().size()); in assertOneComponentOfEachType()
447 0 /* intents */, p.getServices().get(0)); in assertOneComponentOfEachType()
512 assertMetadata(p.getServices().get(0).getMetaData(), in checkPackageWithComponents()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageProperty.java121 mServiceProperties = addComponentProperties(pkg.getServices(), mServiceProperties); in addAllProperties()
130 mServiceProperties = removeComponentProperties(pkg.getServices(), mServiceProperties); in removeAllProperties()
DAppsFilterUtils.java122 intent, potentialTarget.getServices(), null /*protectedBroadcasts*/)) { in matchesPackage()
DScanPackageUtils.java605 if (!pkg.getServices().isEmpty()) { in assertStaticSharedLibraryIsValid()
665 assertPackageProcesses(pkg, pkg.getServices(), procs, "service"); in assertProcessesAreValid()
794 for (int i = ArrayUtils.size(pkg.getServices()) - 1; i >= 0; i--) { in configurePackageComponents()
795 final ParsedService component = pkg.getServices().get(i); in configurePackageComponents()
/frameworks/base/services/core/java/com/android/server/pm/pkg/
DAndroidPackageApi.java303 List<ParsedService> getServices(); in getServices() method
/frameworks/base/services/core/java/com/android/server/pm/parsing/pkg/
DAndroidPackageUtils.java201 List<ParsedService> services = pkg.getServices(); in hasComponentClassName()
/frameworks/base/services/core/java/com/android/server/pm/parsing/
DPackageInfoUtils.java168 final int size = pkg.getServices().size(); in generateWithComponents()
173 final ParsedService s = pkg.getServices().get(i); in generateWithComponents()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSystemUIApplication.java411 public CoreStartable[] getServices() { in getServices() method in SystemUIApplication
/frameworks/base/services/core/java/com/android/server/pm/resolution/
DComponentResolver.java383 final int servicesSize = ArrayUtils.size(pkg.getServices()); in addServicesLocked()
386 ParsedService s = pkg.getServices().get(i); in addServicesLocked()
759 componentSize = ArrayUtils.size(pkg.getServices()); in removeAllComponentsLocked()
762 ParsedService s = pkg.getServices().get(i); in removeAllComponentsLocked()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java10249 for (final ManagedServiceInfo info : NotificationAssistants.this.getServices()) {
10258 for (final ManagedServiceInfo info : NotificationAssistants.this.getServices()) {
10278 for (final ManagedServiceInfo info : NotificationAssistants.this.getServices()) {
10298 for (final ManagedServiceInfo info : NotificationAssistants.this.getServices()) {
10313 for (final ManagedServiceInfo info : NotificationAssistants.this.getServices()) {
10361 for (final ManagedServiceInfo info : NotificationAssistants.this.getServices()) {
10531 for (final ManagedServiceInfo info : NotificationAssistants.this.getServices()) {
10572 for (final ManagedServiceInfo info : NotificationAssistants.this.getServices()) {
10590 return !getServices().isEmpty();
10978 for (final ManagedServiceInfo info : getServices()) {
[all …]
DConditionProviders.java327 for (ManagedServiceInfo service : getServices()) { in findConditionProvider()
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/parsing/parcelling/
DAndroidPackageTest.kt392 AndroidPackage::getServices, in <lambda>()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationListenersTest.java477 when(mListeners.getServices()).thenReturn(services); in testImplicitGrant()
/frameworks/base/core/java/android/app/
DIActivityManager.aidl291 List<ActivityManager.RunningServiceInfo> getServices(int maxNum, int flags); in getServices() method

12