/frameworks/base/core/java/android/app/admin/ |
D | IDevicePolicyManager.aidl | 26 import android.content.ComponentName; 46 void setPasswordQuality(in ComponentName who, int quality, boolean parent); in setPasswordQuality() 47 int getPasswordQuality(in ComponentName who, int userHandle, boolean parent); in getPasswordQuality() 49 void setPasswordMinimumLength(in ComponentName who, int length, boolean parent); in setPasswordMinimumLength() 50 int getPasswordMinimumLength(in ComponentName who, int userHandle, boolean parent); in getPasswordMinimumLength() 52 void setPasswordMinimumUpperCase(in ComponentName who, int length, boolean parent); in setPasswordMinimumUpperCase() 53 int getPasswordMinimumUpperCase(in ComponentName who, int userHandle, boolean parent); in getPasswordMinimumUpperCase() 55 void setPasswordMinimumLowerCase(in ComponentName who, int length, boolean parent); in setPasswordMinimumLowerCase() 56 int getPasswordMinimumLowerCase(in ComponentName who, int userHandle, boolean parent); in getPasswordMinimumLowerCase() 58 void setPasswordMinimumLetters(in ComponentName who, int length, boolean parent); in setPasswordMinimumLetters() [all …]
|
D | DevicePolicyManager.java | 36 import android.content.ComponentName; 1541 public boolean isAdminActive(@NonNull ComponentName admin) { in isAdminActive() 1550 public boolean isAdminActiveAsUser(@NonNull ComponentName admin, int userId) { in isAdminActiveAsUser() 1566 public boolean isRemovingAdmin(@NonNull ComponentName admin, int userId) { in isRemovingAdmin() 1582 public @Nullable List<ComponentName> getActiveAdmins() { in getActiveAdmins() 1591 public @Nullable List<ComponentName> getActiveAdminsAsUser(int userId) { in getActiveAdminsAsUser() 1641 public void removeActiveAdmin(@NonNull ComponentName admin) { in removeActiveAdmin() 1662 public boolean hasGrantedPolicy(@NonNull ComponentName admin, int usesPolicy) { in hasGrantedPolicy() 1826 public void setPasswordQuality(@NonNull ComponentName admin, int quality) { in setPasswordQuality() 1848 public int getPasswordQuality(@Nullable ComponentName admin) { in getPasswordQuality() [all …]
|
/frameworks/base/core/java/android/content/ |
D | ComponentName.java | 38 public final class ComponentName implements Parcelable, Cloneable, Comparable<ComponentName> { class 57 public static @NonNull ComponentName createRelative(@NonNull String pkg, @NonNull String cls) { in createRelative() 70 return new ComponentName(pkg, fullName); in createRelative() 88 public static @NonNull ComponentName createRelative(@NonNull Context pkg, @NonNull String cls) { in createRelative() 100 public ComponentName(@NonNull String pkg, @NonNull String cls) { in ComponentName() method in ComponentName 115 public ComponentName(@NonNull Context pkg, @NonNull String cls) { in ComponentName() method in ComponentName 129 public ComponentName(@NonNull Context pkg, @NonNull Class<?> cls) { in ComponentName() method in ComponentName 134 public ComponentName clone() { in clone() 135 return new ComponentName(mPackage, mClass); in clone() 260 public static @Nullable ComponentName unflattenFromString(@NonNull String str) { in unflattenFromString() [all …]
|
D | IContentService.aidl | 20 import android.content.ComponentName; 64 void cancelSync(in Account account, String authority, in ComponentName cname); in cancelSync() 65 void cancelSyncAsUser(in Account account, String authority, in ComponentName cname, int userId); in cancelSyncAsUser() 96 in ComponentName cname); in getPeriodicSyncs() 156 boolean isSyncActive(in Account account, String authority, in ComponentName cname); in isSyncActive() 166 SyncStatusInfo getSyncStatus(in Account account, String authority, in ComponentName cname); in getSyncStatus() 167 SyncStatusInfo getSyncStatusAsUser(in Account account, String authority, in ComponentName cname, in getSyncStatusAsUser() 177 boolean isSyncPending(in Account account, String authority, in ComponentName cname); in isSyncPending() 178 boolean isSyncPendingAsUser(in Account account, String authority, in ComponentName cname, in isSyncPendingAsUser()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | ShortcutManagerTest5.java | 21 import android.content.ComponentName; 103 new ComponentName(mMyPackage, "ShortcutDisabled"), mMyUserId); in testGetActivityInfoWithMetadata() 108 new ComponentName("no.such.package", "ShortcutDisabled"), mMyUserId); in testGetActivityInfoWithMetadata() 113 new ComponentName(mMyPackage, "a.ShortcutEnabled"), mMyUserId); in testGetActivityInfoWithMetadata() 121 new ComponentName(mMyPackage, "a.Shortcut1"), mMyUserId); in testGetActivityInfoWithMetadata() 141 ComponentName cn = mShortcutService.injectGetDefaultMainActivity( in testGetDefaultMainActivity() 145 ComponentName.unflattenFromString("com.android.settings/.Settings"), in testGetDefaultMainActivity() 159 ComponentName.unflattenFromString("com.android.settings/.Settings"), mMyUserId)); in testIsMainActivity() 161 ComponentName.unflattenFromString("com.android.settings/.xxx"), mMyUserId)); in testIsMainActivity() 163 ComponentName.unflattenFromString("no.such.package/.xxx"), mMyUserId)); in testIsMainActivity() [all …]
|
/frameworks/base/core/java/android/nfc/ |
D | INfcCardEmulation.aidl | 19 import android.content.ComponentName; 29 boolean isDefaultServiceForCategory(int userHandle, in ComponentName service, String category); in isDefaultServiceForCategory() 30 boolean isDefaultServiceForAid(int userHandle, in ComponentName service, String aid); in isDefaultServiceForAid() 31 boolean setDefaultServiceForCategory(int userHandle, in ComponentName service, String category); in setDefaultServiceForCategory() 32 boolean setDefaultForNextTap(int userHandle, in ComponentName service); in setDefaultForNextTap() 33 …boolean registerAidGroupForService(int userHandle, in ComponentName service, in AidGroup aidGroup); in registerAidGroupForService() 34 AidGroup getAidGroupForService(int userHandle, in ComponentName service, String category); in getAidGroupForService() 35 boolean removeAidGroupForService(int userHandle, in ComponentName service, String category); in removeAidGroupForService() 37 boolean setPreferredService(in ComponentName service); in setPreferredService()
|
D | INfcFCardEmulation.aidl | 19 import android.content.ComponentName; 27 String getSystemCodeForService(int userHandle, in ComponentName service); in getSystemCodeForService() 28 … boolean registerSystemCodeForService(int userHandle, in ComponentName service, String systemCode); in registerSystemCodeForService() 29 boolean removeSystemCodeForService(int userHandle, in ComponentName service); in removeSystemCodeForService() 30 String getNfcid2ForService(int userHandle, in ComponentName service); in getNfcid2ForService() 31 boolean setNfcid2ForService(int userHandle, in ComponentName service, String nfcid2); in setNfcid2ForService() 32 boolean enableNfcFForegroundService(in ComponentName service); in enableNfcFForegroundService()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | NetworkScorerAppManagerTest.java | 34 import android.content.ComponentName; 95 final ComponentName recoComponent = new ComponentName("package1", "class1"); in testGetActiveScorer_providerAvailable() 109 final ComponentName recoComponent = new ComponentName("package1", "class1"); in testGetActiveScorer_providerAvailable_serviceLabelOverride() 124 final ComponentName recoComponent = new ComponentName("package1", "class1"); in testGetActiveScorer_permissionMissing() 136 final ComponentName recoComponent = new ComponentName("package1", "class1"); in testGetActiveScorer_providerAvailable_enableUseOpenWifiActivityNotSet() 152 final ComponentName recoComponent = new ComponentName("package1", "class1"); in testGetActiveScorer_providerAvailable_enableUseOpenWifiActivityNotResolved() 168 final ComponentName recoComponent = new ComponentName("package1", "class1"); in testGetActiveScorer_providerAvailable_enableUseOpenWifiActivityResolved() 169 final ComponentName enableUseOpenWifiComponent = new ComponentName("package2", "class2"); in testGetActiveScorer_providerAvailable_enableUseOpenWifiActivityResolved() 186 final ComponentName recoComponent = new ComponentName("package1", "class1"); in testGetActiveScorer_providerAvailable_networkAvailableNotificationChannelIdSet() 212 final ComponentName recoComponent = new ComponentName("package1", "class1"); in testGetActiveScorer_packageSettingIsInvalid() [all …]
|
/frameworks/base/services/core/java/com/android/server/vr/ |
D | EnabledComponentsObserver.java | 20 import android.content.ComponentName; 64 private final SparseArray<ArraySet<ComponentName>> mInstalledSet = new SparseArray<>(); 65 private final SparseArray<ArraySet<ComponentName>> mEnabledSet = new SparseArray<>(); 176 ArraySet<ComponentName> implementingPackages = loadComponentNamesForUser(i); in rebuildAll() 177 ArraySet<ComponentName> packagesFromSettings = in rebuildAll() 196 public int isValid(ComponentName component, int userId) { in isValid() 198 ArraySet<ComponentName> installedComponents = mInstalledSet.get(userId); in isValid() 202 ArraySet<ComponentName> validComponents = mEnabledSet.get(userId); in isValid() 216 public ArraySet<ComponentName> getInstalled(int userId) { in getInstalled() 218 ArraySet<ComponentName> ret = mInstalledSet.get(userId); in getInstalled() [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | SubActivityTest.java | 20 import android.content.ComponentName; 26 mIntent.putExtra("component", new ComponentName(getContext(), SubActivityScreen.class)); in testPendingResult() 32 mIntent.putExtra("component", new ComponentName(getContext(), SubActivityScreen.class)); in testNoResult() 38 mIntent.putExtra("component", new ComponentName(getContext(), SubActivityScreen.class)); in testResult() 45 new ComponentName(getContext(), RemoteSubActivityScreen.class)); in testFinishSub() 52 new ComponentName(getContext(), RemoteSubActivityScreen.class)); in testRemoteNoResult() 59 new ComponentName(getContext(), RemoteSubActivityScreen.class)); in testRemoteResult() 65 mIntent.putExtra("component", new ComponentName(getContext(), SubActivityScreen.class)); in testRemoteFinishSub() 72 new ComponentName(getContext(), RemoteSubActivityScreen.class)); in testRemoteRestartNoResult() 80 new ComponentName(getContext(), RemoteSubActivityScreen.class)); in testRemoteRestartResult() [all …]
|
D | LaunchTest.java | 19 import android.content.ComponentName; 28 mIntent.putExtra("component", new ComponentName(getContext(), TestedActivity.class)); in testColdActivity() 34 mIntent.putExtra("component", new ComponentName(getContext(), LocalActivity.class)); in testLocalActivity() 40 mIntent.putExtra("component", new ComponentName(getContext(), TestedScreen.class)); in testColdScreen() 46 mIntent.putExtra("component", new ComponentName(getContext(), LocalScreen.class)); in testLocalScreen() 65 mIntent.putExtra("component", new ComponentName(getContext(), ClearTop.class)); in testClearTopInCreate() 71 mIntent.putExtra("component", new ComponentName(getContext(), ClearTop.class)); in testClearTopWhileResumed()
|
D | MetaDataTest.java | 19 import android.content.ComponentName; 42 private void checkMetaData(ComponentName cn, PackageItemInfo ci) in checkMetaData() 99 ComponentName cn = new ComponentName(mContext, LocalActivity.class); in testActivityWithData() 112 ComponentName cn = new ComponentName(mContext, LocalReceiver.class); in testReceiverWithData() 125 ComponentName cn = new ComponentName(mContext, LocalService.class); in testServiceWithData() 138 ComponentName cn = new ComponentName(mContext, LocalProvider.class); in testProviderWithData() 152 ComponentName cn = new ComponentName("foo", in testPermissionWithData()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/accessibility/ |
D | AccessibilityUtils.java | 20 import android.content.ComponentName; 49 public static Set<ComponentName> getEnabledServicesFromSettings(Context context) { in getEnabledServicesFromSettings() 57 public static Set<ComponentName> getEnabledServicesFromSettings(Context context, int userId) { in getEnabledServicesFromSettings() 65 final Set<ComponentName> enabledServices = new HashSet<>(); in getEnabledServicesFromSettings() 71 final ComponentName enabledService = ComponentName.unflattenFromString( in getEnabledServicesFromSettings() 95 public static void setAccessibilityServiceState(Context context, ComponentName toggledService, in setAccessibilityServiceState() 103 public static void setAccessibilityServiceState(Context context, ComponentName toggledService, in setAccessibilityServiceState() 106 Set<ComponentName> enabledServices = AccessibilityUtils.getEnabledServicesFromSettings( in setAccessibilityServiceState() 122 Set<ComponentName> installedServices = getInstalledServices(context); in setAccessibilityServiceState() 123 for (ComponentName enabledService : enabledServices) { in setAccessibilityServiceState() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DpmTestBase.java | 20 import android.content.ComponentName; 46 public ComponentName admin1; 47 public ComponentName admin2; 48 public ComponentName admin3; 49 public ComponentName adminAnotherPackage; 50 public ComponentName adminNoPerm; 61 admin1 = new ComponentName(mRealTestContext, DummyDeviceAdmins.Admin1.class); in setUp() 62 admin2 = new ComponentName(mRealTestContext, DummyDeviceAdmins.Admin2.class); in setUp() 63 admin3 = new ComponentName(mRealTestContext, DummyDeviceAdmins.Admin3.class); in setUp() 64 adminAnotherPackage = new ComponentName(DpmMockContext.ANOTHER_PACKAGE_NAME, in setUp() [all …]
|
/frameworks/base/core/java/android/net/ |
D | NetworkScorerAppData.java | 4 import android.content.ComponentName; 18 private final ComponentName mRecommendationService; 25 private final ComponentName mEnableUseOpenWifiActivity; 32 public NetworkScorerAppData(int packageUid, ComponentName recommendationServiceComp, in NetworkScorerAppData() 33 String recommendationServiceLabel, ComponentName enableUseOpenWifiActivity, in NetworkScorerAppData() 44 mRecommendationService = ComponentName.readFromParcel(in); in NetworkScorerAppData() 46 mEnableUseOpenWifiActivity = ComponentName.readFromParcel(in); in NetworkScorerAppData() 53 ComponentName.writeToParcel(mRecommendationService, dest); in writeToParcel() 55 ComponentName.writeToParcel(mEnableUseOpenWifiActivity, dest); in writeToParcel() 81 public ComponentName getRecommendationServiceComponent() { in getRecommendationServiceComponent() [all …]
|
/frameworks/base/services/core/java/com/android/server/search/ |
D | Searchables.java | 22 import android.content.ComponentName; 61 private HashMap<ComponentName, SearchableInfo> mSearchablesMap = null; 67 private ComponentName mCurrentGlobalSearchActivity = null; 68 private ComponentName mWebSearchActivity = null; 117 public SearchableInfo getSearchableInfo(ComponentName activity) { in getSearchableInfo() 160 ComponentName referredActivity; in getSearchableInfo() 162 referredActivity = new ComponentName(pkg, pkg + refActivityName); in getSearchableInfo() 164 referredActivity = new ComponentName(pkg, refActivityName); in getSearchableInfo() 205 HashMap<ComponentName, SearchableInfo> newSearchablesMap in updateSearchableList() 206 = new HashMap<ComponentName, SearchableInfo>(); in updateSearchableList() [all …]
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | TransportManager.java | 21 import android.content.ComponentName; 69 private final Set<ComponentName> mTransportWhitelist; 88 private final Map<ComponentName, TransportConnection> mValidTransports = new ArrayMap<>(); 92 private final Map<String, ComponentName> mBoundTransports = new ArrayMap<>(); 94 TransportManager(Context context, Set<ComponentName> whitelist, String defaultTransport, in TransportManager() 117 Iterator<Map.Entry<ComponentName, TransportConnection>> iter = in onPackageRemoved() 120 Map.Entry<ComponentName, TransportConnection> validTransport = iter.next(); in onPackageRemoved() 121 ComponentName componentName = validTransport.getKey(); in onPackageRemoved() 140 ComponentName componentName = new ComponentName(packageName, component); in onPackageChanged() 154 ComponentName component = mBoundTransports.get(transportName); in getTransportBinder() [all …]
|
/frameworks/base/services/core/java/com/android/server/dreams/ |
D | DreamManagerService.java | 30 import android.content.ComponentName; 83 private ComponentName mCurrentDreamName; 203 private void testDreamInternal(ComponentName dream, int userId) { in testDreamInternal() 211 final ComponentName dream = chooseDreamForUser(doze, userId); in startDreamInternal() 262 private ComponentName chooseDreamForUser(boolean doze, int userId) { in chooseDreamForUser() 264 ComponentName dozeComponent = getDozeComponent(userId); in chooseDreamForUser() 267 ComponentName[] dreams = getDreamComponentsForUser(userId); in chooseDreamForUser() 271 private boolean validateDream(ComponentName component) { in validateDream() 287 private ComponentName[] getDreamComponentsForUser(int userId) { in getDreamComponentsForUser() 291 ComponentName[] components = componentsFromString(names); in getDreamComponentsForUser() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
D | RestrictedLockUtilsTest.java | 31 import android.content.ComponentName; 61 private static final ComponentName mAdmin1 = new ComponentName("admin1", "admin1class"); 62 private static final ComponentName mAdmin2 = new ComponentName("admin2", "admin2class"); 78 setUpManagedProfile(mUserId, new ComponentName[] {mAdmin1, mAdmin2}); in checkIfKeyguardFeaturesDisabled_noEnforcedAdminForManagedProfile() 88 setUpManagedProfile(mUserId, new ComponentName[] {mAdmin1, mAdmin2}); in checkIfKeyguardFeaturesDisabled_oneEnforcedAdminForManagedProfile() 101 setUpManagedProfile(mUserId, new ComponentName[] {mAdmin1, mAdmin2}); in checkIfKeyguardFeaturesDisabled_multipleEnforcedAdminForManagedProfile() 116 UserInfo userInfo = setUpUser(mUserId, new ComponentName[] {mAdmin1}); in checkIfKeyguardFeaturesAreDisabled_doesMatchAllowedFeature_unifiedManagedProfile() 117 UserInfo profileInfo = setUpManagedProfile(mProfileId, new ComponentName[] {mAdmin2}); in checkIfKeyguardFeaturesAreDisabled_doesMatchAllowedFeature_unifiedManagedProfile() 145 UserInfo userInfo = setUpUser(mUserId, new ComponentName[] {mAdmin1}); in checkIfKeyguardFeaturesAreDisabled_notMatchOtherFeatures_unifiedManagedProfile() 146 UserInfo profileInfo = setUpManagedProfile(mProfileId, new ComponentName[] {mAdmin2}); in checkIfKeyguardFeaturesAreDisabled_notMatchOtherFeatures_unifiedManagedProfile() [all …]
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ManagedServices.java | 29 import android.content.ComponentName; 101 private ArraySet<ComponentName> mEnabledServicesForCurrentProfiles 102 = new ArraySet<ComponentName>(); 109 private ArraySet<ComponentName> mSnoozingForCurrentProfiles = new ArraySet<>(); 170 ComponentName component, int userid, boolean isSystem, ServiceConnection connection, in newServiceInfo() 183 for (ComponentName cmpt : mEnabledServicesForCurrentProfiles) { in dump() 199 for (ComponentName name : mSnoozingForCurrentProfiles) { in dump() 308 public void registerService(IInterface service, ComponentName component, int userid) { in registerService() 330 public void setComponentState(ComponentName component, boolean enabled) { in setComponentState() 370 ArraySet<ComponentName> names = in rebuildRestoredPackages() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/drawer/ |
D | CategoryManagerTest.java | 19 import android.content.ComponentName; 129 new Intent().setComponent(new ComponentName(testPackage, "class1")); in sortCategories_singlePackage_shouldReorderBasedOnPriority() 133 new Intent().setComponent(new ComponentName(testPackage, "class2")); in sortCategories_singlePackage_shouldReorderBasedOnPriority() 137 new Intent().setComponent(new ComponentName(testPackage, "class3")); in sortCategories_singlePackage_shouldReorderBasedOnPriority() 162 new Intent().setComponent(new ComponentName(testPackage2, "class1")); in sortCategories_multiPackage_shouldReorderBasedOnPackageAndPriority() 166 new Intent().setComponent(new ComponentName(testPackage1, "class2")); in sortCategories_multiPackage_shouldReorderBasedOnPackageAndPriority() 170 new Intent().setComponent(new ComponentName(testPackage1, "class3")); in sortCategories_multiPackage_shouldReorderBasedOnPackageAndPriority() 195 new Intent().setComponent(new ComponentName(testPackage, "class1")); in sortCategories_internalPackageTiles_shouldSkipTileForInternalPackage() 199 new Intent().setComponent(new ComponentName(testPackage, "class2")); in sortCategories_internalPackageTiles_shouldSkipTileForInternalPackage() 203 new Intent().setComponent(new ComponentName(testPackage, "class3")); in sortCategories_internalPackageTiles_shouldSkipTileForInternalPackage() [all …]
|
/frameworks/base/core/java/android/service/dreams/ |
D | IDreamManager.aidl | 19 import android.content.ComponentName; 28 void setDreamComponents(in ComponentName[] componentNames); in setDreamComponents() 29 ComponentName[] getDreamComponents(); in getDreamComponents() 30 ComponentName getDefaultDreamComponent(); in getDefaultDreamComponent() 31 void testDream(in ComponentName componentName); in testDream()
|
/frameworks/support/core-utils/java/android/support/v4/app/ |
D | NavUtils.java | 20 import android.content.ComponentName; 137 final ComponentName target = new ComponentName(sourceActivity, parentName); in getParentActivityIntent() 163 new ComponentName(context, sourceActivityClass)); in getParentActivityIntent() 167 final ComponentName target = new ComponentName(context, parentActivity); in getParentActivityIntent() 185 public static Intent getParentActivityIntent(Context context, ComponentName componentName) in getParentActivityIntent() 191 final ComponentName target = new ComponentName( in getParentActivityIntent() 229 public static String getParentActivityName(Context context, ComponentName componentName) in getParentActivityName()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ProviderMap.java | 19 import android.content.ComponentName; 50 private final HashMap<ComponentName, ContentProviderRecord> mSingletonByClass 51 = new HashMap<ComponentName, ContentProviderRecord>(); 55 … private final SparseArray<HashMap<ComponentName, ContentProviderRecord>> mProvidersByClassPerUser 56 = new SparseArray<HashMap<ComponentName, ContentProviderRecord>>(); 80 ContentProviderRecord getProviderByClass(ComponentName name) { in getProviderByClass() 84 ContentProviderRecord getProviderByClass(ComponentName name, int userId) { in getProviderByClass() 111 void putProviderByClass(ComponentName name, ContentProviderRecord record) { in putProviderByClass() 143 void removeProviderByClass(ComponentName name, int userId) { in removeProviderByClass() 153 HashMap<ComponentName, ContentProviderRecord> map = getProvidersByClass(userId); in removeProviderByClass() [all …]
|
/frameworks/base/services/core/java/com/android/server/trust/ |
D | TrustArchive.java | 19 import android.content.ComponentName; 47 final ComponentName agent; 58 private Event(int type, int userId, ComponentName agent, String message, in Event() 73 public void logGrantTrust(int userId, ComponentName agent, String message, in logGrantTrust() 79 public void logRevokeTrust(int userId, ComponentName agent) { in logRevokeTrust() 83 public void logTrustTimeout(int userId, ComponentName agent) { in logTrustTimeout() 87 public void logAgentDied(int userId, ComponentName agent) { in logAgentDied() 91 public void logAgentConnected(int userId, ComponentName agent) { in logAgentConnected() 95 public void logAgentStopped(int userId, ComponentName agent) { in logAgentStopped() 99 public void logManagingTrust(int userId, ComponentName agent, boolean managing) { in logManagingTrust() [all …]
|