/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DevicePolicyManagerTest.java | 272 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 …]
|
D | DevicePolicyManagerServiceMigrationTest.java | 80 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 …]
|
D | PolicyVersionUpgraderTest.java | 82 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()
|
D | DpmTestBase.java | 88 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()
|
D | OwnersTest.java | 57 getServices().addUsers(10); in loadProfileOwner() 120 final MockSystemServices services = getServices(); in makeOwners()
|
D | NetworkEventTest.java | 66 mDpmTestable = new DevicePolicyManagerServiceTestable(getServices(), mSpiedDpmMockContext); in setUp()
|
/frameworks/base/core/java/android/nfc/cardemulation/ |
D | CardEmulation.java | 858 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/ |
D | INfcCardEmulation.aidl | 38 List<ApduServiceInfo> getServices(int userHandle, in String category); in getServices() method
|
/frameworks/base/services/core/java/com/android/server/pm/pkg/parsing/ |
D | PkgWithoutStatePackageInfo.java | 231 List<ParsedService> getServices(); in getServices() method
|
D | PackageInfoWithoutStateUtils.java | 147 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/ |
D | PackageParserTest.java | 514 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/ |
D | PackageParserLegacyCoreTest.java | 445 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/ |
D | PackageProperty.java | 121 mServiceProperties = addComponentProperties(pkg.getServices(), mServiceProperties); in addAllProperties() 130 mServiceProperties = removeComponentProperties(pkg.getServices(), mServiceProperties); in removeAllProperties()
|
D | AppsFilterUtils.java | 122 intent, potentialTarget.getServices(), null /*protectedBroadcasts*/)) { in matchesPackage()
|
D | ScanPackageUtils.java | 605 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/ |
D | AndroidPackageApi.java | 303 List<ParsedService> getServices(); in getServices() method
|
/frameworks/base/services/core/java/com/android/server/pm/parsing/pkg/ |
D | AndroidPackageUtils.java | 201 List<ParsedService> services = pkg.getServices(); in hasComponentClassName()
|
/frameworks/base/services/core/java/com/android/server/pm/parsing/ |
D | PackageInfoUtils.java | 168 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/ |
D | SystemUIApplication.java | 411 public CoreStartable[] getServices() { in getServices() method in SystemUIApplication
|
/frameworks/base/services/core/java/com/android/server/pm/resolution/ |
D | ComponentResolver.java | 383 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/ |
D | NotificationManagerService.java | 10249 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 …]
|
D | ConditionProviders.java | 327 for (ManagedServiceInfo service : getServices()) { in findConditionProvider()
|
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/parsing/parcelling/ |
D | AndroidPackageTest.kt | 392 AndroidPackage::getServices, in <lambda>()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationListenersTest.java | 477 when(mListeners.getServices()).thenReturn(services); in testImplicitGrant()
|
/frameworks/base/core/java/android/app/ |
D | IActivityManager.aidl | 291 List<ActivityManager.RunningServiceInfo> getServices(int maxNum, int flags); in getServices() method
|