/frameworks/base/core/java/android/app/admin/ |
D | IDevicePolicyManager.aidl | 26 import android.content.ComponentName; 50 void setPasswordQuality(in ComponentName who, int quality, boolean parent); in setPasswordQuality() 51 int getPasswordQuality(in ComponentName who, int userHandle, boolean parent); in getPasswordQuality() 53 void setPasswordMinimumLength(in ComponentName who, int length, boolean parent); in setPasswordMinimumLength() 54 int getPasswordMinimumLength(in ComponentName who, int userHandle, boolean parent); in getPasswordMinimumLength() 56 void setPasswordMinimumUpperCase(in ComponentName who, int length, boolean parent); in setPasswordMinimumUpperCase() 57 int getPasswordMinimumUpperCase(in ComponentName who, int userHandle, boolean parent); in getPasswordMinimumUpperCase() 59 void setPasswordMinimumLowerCase(in ComponentName who, int length, boolean parent); in setPasswordMinimumLowerCase() 60 int getPasswordMinimumLowerCase(in ComponentName who, int userHandle, boolean parent); in getPasswordMinimumLowerCase() 62 void setPasswordMinimumLetters(in ComponentName who, int length, boolean parent); in setPasswordMinimumLetters() [all …]
|
D | DevicePolicyManager.java | 39 import android.content.ComponentName; 1812 public boolean isAdminActive(@NonNull ComponentName admin) { in isAdminActive() 1821 public boolean isAdminActiveAsUser(@NonNull ComponentName admin, int userId) { in isAdminActiveAsUser() 1837 public boolean isRemovingAdmin(@NonNull ComponentName admin, int userId) { in isRemovingAdmin() 1853 public @Nullable List<ComponentName> getActiveAdmins() { in getActiveAdmins() 1862 public @Nullable List<ComponentName> getActiveAdminsAsUser(int userId) { in getActiveAdminsAsUser() 1912 public void removeActiveAdmin(@NonNull ComponentName admin) { in removeActiveAdmin() 1933 public boolean hasGrantedPolicy(@NonNull ComponentName admin, int usesPolicy) { in hasGrantedPolicy() 2097 public void setPasswordQuality(@NonNull ComponentName admin, int quality) { in setPasswordQuality() 2119 public int getPasswordQuality(@Nullable ComponentName admin) { in getPasswordQuality() [all …]
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | BaseIDevicePolicyManager.java | 20 import android.content.ComponentName; 67 public void setSystemSetting(ComponentName who, String setting, String value){} in setSystemSetting() 69 …public void transferOwnership(ComponentName admin, ComponentName target, PersistableBundle bundle)… in transferOwnership() 75 public boolean generateKeyPair(ComponentName who, String callerPackage, String algorithm, in generateKeyPair() 81 public boolean isUsingUnifiedPassword(ComponentName who) { in isUsingUnifiedPassword() 85 public boolean setKeyPairCertificate(ComponentName who, String callerPackage, String alias, in setKeyPairCertificate() 92 ComponentName admin, CharSequence startUserSessionMessage) {} in setStartUserSessionMessage() 95 public void setEndUserSessionMessage(ComponentName admin, CharSequence endUserSessionMessage) {} in setEndUserSessionMessage() 98 public String getStartUserSessionMessage(ComponentName admin) { in getStartUserSessionMessage() 103 public String getEndUserSessionMessage(ComponentName admin) { in getEndUserSessionMessage() [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; 105 new ComponentName(mMyPackage, "ShortcutDisabled"), mMyUserId); in testGetActivityInfoWithMetadata() 110 new ComponentName("no.such.package", "ShortcutDisabled"), mMyUserId); in testGetActivityInfoWithMetadata() 115 new ComponentName(mMyPackage, "a.ShortcutEnabled"), mMyUserId); in testGetActivityInfoWithMetadata() 123 new ComponentName(mMyPackage, "a.Shortcut1"), mMyUserId); in testGetActivityInfoWithMetadata() 143 ComponentName cn = mShortcutService.injectGetDefaultMainActivity( in testGetDefaultMainActivity() 147 ComponentName.unflattenFromString("com.android.settings/.Settings"), in testGetDefaultMainActivity() 161 ComponentName.unflattenFromString("com.android.settings/.Settings"), mMyUserId)); in testIsMainActivity() 163 ComponentName.unflattenFromString("com.android.settings/.xxx"), mMyUserId)); in testIsMainActivity() 165 ComponentName.unflattenFromString("no.such.package/.xxx"), mMyUserId)); in testIsMainActivity() [all …]
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
D | InflatingListActivity.java | 18 import android.content.ComponentName; 28 private static final ComponentName LATIN_WORDS = 29 ComponentName.createRelative(PACKAGE_NAME, ".InflatingListActivity"); 30 private static final ComponentName EMOJI = 31 ComponentName.createRelative(PACKAGE_NAME, ".InflatingEmojiListActivity"); 32 private static final ComponentName HAN = 33 ComponentName.createRelative(PACKAGE_NAME, ".InflatingHanListActivity"); 34 private static final ComponentName LONG_STRING = 35 ComponentName.createRelative(PACKAGE_NAME, ".InflatingLongStringListActivity"); 38 final ComponentName targetComponent = getIntent().getComponent(); in createListAdapter()
|
/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/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/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/packages/SettingsLib/src/com/android/settingslib/accessibility/ |
D | AccessibilityUtils.java | 20 import android.content.ComponentName; 50 public static Set<ComponentName> getEnabledServicesFromSettings(Context context) { in getEnabledServicesFromSettings() 71 public static Set<ComponentName> getEnabledServicesFromSettings(Context context, int userId) { in getEnabledServicesFromSettings() 79 final Set<ComponentName> enabledServices = new HashSet<>(); in getEnabledServicesFromSettings() 85 final ComponentName enabledService = ComponentName.unflattenFromString( in getEnabledServicesFromSettings() 109 public static void setAccessibilityServiceState(Context context, ComponentName toggledService, in setAccessibilityServiceState() 117 public static void setAccessibilityServiceState(Context context, ComponentName toggledService, in setAccessibilityServiceState() 120 Set<ComponentName> enabledServices = AccessibilityUtils.getEnabledServicesFromSettings( in setAccessibilityServiceState() 136 Set<ComponentName> installedServices = getInstalledServices(context); in setAccessibilityServiceState() 137 for (ComponentName enabledService : enabledServices) { in setAccessibilityServiceState() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DpmTestBase.java | 28 import android.content.ComponentName; 48 public ComponentName admin1; 49 public ComponentName admin2; 50 public ComponentName admin3; 51 public ComponentName adminAnotherPackage; 52 public ComponentName adminNoPerm; 63 admin1 = new ComponentName(mRealTestContext, DummyDeviceAdmins.Admin1.class); in setUp() 64 admin2 = new ComponentName(mRealTestContext, DummyDeviceAdmins.Admin2.class); in setUp() 65 admin3 = new ComponentName(mRealTestContext, DummyDeviceAdmins.Admin3.class); in setUp() 66 adminAnotherPackage = new ComponentName(DpmMockContext.ANOTHER_PACKAGE_NAME, in setUp() [all …]
|
/frameworks/base/services/core/java/com/android/server/dreams/ |
D | DreamManagerService.java | 30 import android.content.ComponentName; 82 private ComponentName mCurrentDreamName; 202 private void testDreamInternal(ComponentName dream, int userId) { in testDreamInternal() 210 final ComponentName dream = chooseDreamForUser(doze, userId); in startDreamInternal() 261 private ComponentName chooseDreamForUser(boolean doze, int userId) { in chooseDreamForUser() 263 ComponentName dozeComponent = getDozeComponent(userId); in chooseDreamForUser() 266 ComponentName[] dreams = getDreamComponentsForUser(userId); in chooseDreamForUser() 270 private boolean validateDream(ComponentName component) { in validateDream() 286 private ComponentName[] getDreamComponentsForUser(int userId) { in getDreamComponentsForUser() 290 ComponentName[] components = componentsFromString(names); in getDreamComponentsForUser() [all …]
|
/frameworks/base/services/core/java/com/android/server/search/ |
D | Searchables.java | 22 import android.content.ComponentName; 65 private HashMap<ComponentName, SearchableInfo> mSearchablesMap = null; 71 private ComponentName mCurrentGlobalSearchActivity = null; 72 private ComponentName mWebSearchActivity = null; 121 public SearchableInfo getSearchableInfo(ComponentName activity) { in getSearchableInfo() 172 ComponentName referredActivity; in getSearchableInfo() 174 referredActivity = new ComponentName(pkg, pkg + refActivityName); in getSearchableInfo() 176 referredActivity = new ComponentName(pkg, refActivityName); in getSearchableInfo() 225 HashMap<ComponentName, SearchableInfo> newSearchablesMap in updateSearchableList() 226 = new HashMap<ComponentName, SearchableInfo>(); in updateSearchableList() [all …]
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | TransportManager.java | 23 import android.content.ComponentName; 66 private final Set<ComponentName> mTransportWhitelist; 82 private final Map<ComponentName, TransportDescription> mRegisteredTransportsDescriptionMap = 89 TransportManager(Context context, Set<ComponentName> whitelist, String selectedTransport) { in TransportManager() 101 Set<ComponentName> whitelist, in TransportManager() 132 Set<ComponentName> transportComponents = new ArraySet<>(components.length); in onPackageChanged() 134 transportComponents.add(new ComponentName(packageName, componentName)); in onPackageChanged() 149 ComponentName[] getRegisteredTransportComponents() { in getRegisteredTransportComponents() 153 .toArray(new ComponentName[mRegisteredTransportsDescriptionMap.size()]); in getRegisteredTransportComponents() 175 Set<ComponentName> getTransportWhitelist() { in getTransportWhitelist() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
D | RestrictedLockUtilsTest.java | 31 import android.content.ComponentName; 64 private final ComponentName mAdmin1 = new ComponentName("admin1", "admin1class"); 65 private final ComponentName mAdmin2 = new ComponentName("admin2", "admin2class"); 138 setUpManagedProfile(mUserId, new ComponentName[] {mAdmin1, mAdmin2}); in checkIfKeyguardFeaturesDisabled_noEnforcedAdminForManagedProfile() 148 setUpManagedProfile(mUserId, new ComponentName[] {mAdmin1, mAdmin2}); in checkIfKeyguardFeaturesDisabled_oneEnforcedAdminForManagedProfile() 161 setUpManagedProfile(mUserId, new ComponentName[] {mAdmin1, mAdmin2}); in checkIfKeyguardFeaturesDisabled_multipleEnforcedAdminForManagedProfile() 176 UserInfo userInfo = setUpUser(mUserId, new ComponentName[] {mAdmin1}); in checkIfKeyguardFeaturesAreDisabled_doesMatchAllowedFeature_unifiedManagedProfile() 177 UserInfo profileInfo = setUpManagedProfile(mProfileId, new ComponentName[] {mAdmin2}); in checkIfKeyguardFeaturesAreDisabled_doesMatchAllowedFeature_unifiedManagedProfile() 205 UserInfo userInfo = setUpUser(mUserId, new ComponentName[] {mAdmin1}); in checkIfKeyguardFeaturesAreDisabled_notMatchOtherFeatures_unifiedManagedProfile() 206 UserInfo profileInfo = setUpManagedProfile(mProfileId, new ComponentName[] {mAdmin2}); in checkIfKeyguardFeaturesAreDisabled_notMatchOtherFeatures_unifiedManagedProfile() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/drawer/ |
D | CategoryManagerTest.java | 21 import android.content.ComponentName; 128 new Intent().setComponent(new ComponentName(testPackage, "class1")); in sortCategories_singlePackage_shouldReorderBasedOnPriority() 132 new Intent().setComponent(new ComponentName(testPackage, "class2")); in sortCategories_singlePackage_shouldReorderBasedOnPriority() 136 new Intent().setComponent(new ComponentName(testPackage, "class3")); in sortCategories_singlePackage_shouldReorderBasedOnPriority() 161 new Intent().setComponent(new ComponentName(testPackage2, "class1")); in sortCategories_multiPackage_shouldReorderBasedOnPackageAndPriority() 165 new Intent().setComponent(new ComponentName(testPackage1, "class2")); in sortCategories_multiPackage_shouldReorderBasedOnPackageAndPriority() 169 new Intent().setComponent(new ComponentName(testPackage1, "class3")); in sortCategories_multiPackage_shouldReorderBasedOnPackageAndPriority() 194 new Intent().setComponent(new ComponentName(testPackage, "class1")); in sortCategories_internalPackageTiles_shouldSkipTileForInternalPackage() 198 new Intent().setComponent(new ComponentName(testPackage, "class2")); in sortCategories_internalPackageTiles_shouldSkipTileForInternalPackage() 202 new Intent().setComponent(new ComponentName(testPackage, "class3")); in sortCategories_internalPackageTiles_shouldSkipTileForInternalPackage() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ims/ |
D | ImsServiceFeatureQueryManager.java | 19 import android.content.ComponentName; 44 private final ComponentName mName; 47 ImsServiceFeatureQuery(ComponentName name, String intentFilter) { in ImsServiceFeatureQuery() 70 public void onServiceConnected(ComponentName name, IBinder service) { in onServiceConnected() 81 public void onServiceDisconnected(ComponentName name) { in onServiceDisconnected() 115 void onComplete(ComponentName name, Set<ImsFeatureConfiguration.FeatureSlotPair> features); in onComplete() 120 void onError(ComponentName name); in onError() 124 private final Map<ComponentName, ImsServiceFeatureQuery> mActiveQueries = new HashMap<>(); 140 public boolean startQuery(ComponentName name, String intentFilter) { in startQuery()
|
/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/compat/src/main/java/androidx/core/app/ |
D | NavUtils.java | 20 import android.content.ComponentName; 141 final ComponentName target = new ComponentName(sourceActivity, parentName); in getParentActivityIntent() 169 new ComponentName(context, sourceActivityClass)); in getParentActivityIntent() 173 final ComponentName target = new ComponentName(context, parentActivity); in getParentActivityIntent() 193 @NonNull ComponentName componentName) in getParentActivityIntent() 199 final ComponentName target = new ComponentName( in getParentActivityIntent() 238 @NonNull ComponentName componentName) in getParentActivityName()
|
/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 …]
|