/frameworks/base/core/java/android/app/admin/ |
D | IDevicePolicyManager.aidl | 27 import android.content.ComponentName; 51 void setPasswordQuality(in ComponentName who, int quality, boolean parent); in setPasswordQuality() 52 int getPasswordQuality(in ComponentName who, int userHandle, boolean parent); in getPasswordQuality() 54 void setPasswordMinimumLength(in ComponentName who, int length, boolean parent); in setPasswordMinimumLength() 55 int getPasswordMinimumLength(in ComponentName who, int userHandle, boolean parent); in getPasswordMinimumLength() 57 void setPasswordMinimumUpperCase(in ComponentName who, int length, boolean parent); in setPasswordMinimumUpperCase() 58 int getPasswordMinimumUpperCase(in ComponentName who, int userHandle, boolean parent); in getPasswordMinimumUpperCase() 60 void setPasswordMinimumLowerCase(in ComponentName who, int length, boolean parent); in setPasswordMinimumLowerCase() 61 int getPasswordMinimumLowerCase(in ComponentName who, int userHandle, boolean parent); in getPasswordMinimumLowerCase() 63 void setPasswordMinimumLetters(in ComponentName who, int length, boolean parent); in setPasswordMinimumLetters() [all …]
|
D | DevicePolicyManager.java | 43 import android.content.ComponentName; 2330 public boolean isAdminActive(@NonNull ComponentName admin) { in isAdminActive() 2339 public boolean isAdminActiveAsUser(@NonNull ComponentName admin, int userId) { in isAdminActiveAsUser() 2355 public boolean isRemovingAdmin(@NonNull ComponentName admin, int userId) { in isRemovingAdmin() 2371 public @Nullable List<ComponentName> getActiveAdmins() { in getActiveAdmins() 2381 public @Nullable List<ComponentName> getActiveAdminsAsUser(int userId) { in getActiveAdminsAsUser() 2432 public void removeActiveAdmin(@NonNull ComponentName admin) { in removeActiveAdmin() 2453 public boolean hasGrantedPolicy(@NonNull ComponentName admin, int usesPolicy) { in hasGrantedPolicy() 2621 public void setPasswordQuality(@NonNull ComponentName admin, int quality) { in setPasswordQuality() 2646 public int getPasswordQuality(@Nullable ComponentName admin) { in getPasswordQuality() [all …]
|
/frameworks/base/services/contentcapture/java/com/android/server/contentcapture/ |
D | ContentCaptureMetricsLogger.java | 20 import android.content.ComponentName; 43 public static void writeServiceEvent(int eventType, @NonNull ComponentName service, in writeServiceEvent() 44 @Nullable ComponentName target) { in writeServiceEvent() 45 writeServiceEvent(eventType, ComponentName.flattenToShortString(service), in writeServiceEvent() 46 ComponentName.flattenToShortString(target)); in writeServiceEvent() 50 public static void writeServiceEvent(int eventType, @NonNull ComponentName service, in writeServiceEvent() 52 writeServiceEvent(eventType, ComponentName.flattenToShortString(service), targetPackage); in writeServiceEvent() 56 public static void writeServiceEvent(int eventType, @NonNull ComponentName service) { in writeServiceEvent() 57 writeServiceEvent(eventType, ComponentName.flattenToShortString(service), null); in writeServiceEvent() 61 public static void writeSetWhitelistEvent(@Nullable ComponentName service, in writeSetWhitelistEvent() [all …]
|
/frameworks/base/libs/services/src/content/ |
D | ComponentName.cpp | 22 ComponentName::ComponentName() in ComponentName() function in android::content::ComponentName 27 ComponentName::ComponentName(const ComponentName& that) in ComponentName() function in android::content::ComponentName 32 ComponentName::ComponentName(const string& pkg, const string& cls) in ComponentName() function in android::content::ComponentName 37 ComponentName::~ComponentName() { in ~ComponentName() 40 bool ComponentName::operator<(const ComponentName& that) const { in operator <() 49 status_t ComponentName::readFromParcel(const Parcel* in) { in readFromParcel() 71 status_t ComponentName::writeToParcel(android::Parcel* out) const { in writeToParcel()
|
/frameworks/base/core/java/android/content/ |
D | ComponentName.java | 39 public final class ComponentName implements Parcelable, Cloneable, Comparable<ComponentName> { class 58 public static @NonNull ComponentName createRelative(@NonNull String pkg, @NonNull String cls) { in createRelative() 71 return new ComponentName(pkg, fullName); in createRelative() 89 public static @NonNull ComponentName createRelative(@NonNull Context pkg, @NonNull String cls) { in createRelative() 101 public ComponentName(@NonNull String pkg, @NonNull String cls) { in ComponentName() method in ComponentName 116 public ComponentName(@NonNull Context pkg, @NonNull String cls) { in ComponentName() method in ComponentName 130 public ComponentName(@NonNull Context pkg, @NonNull Class<?> cls) { in ComponentName() method in ComponentName 135 public ComponentName clone() { in clone() 136 return new ComponentName(mPackage, mClass); in clone() 201 public static String flattenToShortString(@Nullable ComponentName componentName) { in flattenToShortString() [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 …boolean setOffHostForService(int userHandle, in ComponentName service, in String offHostSecureElem… in setOffHostForService() 35 boolean unsetOffHostForService(int userHandle, in ComponentName service); in unsetOffHostForService() 36 AidGroup getAidGroupForService(int userHandle, in ComponentName service, String category); in getAidGroupForService() 37 boolean removeAidGroupForService(int userHandle, in ComponentName service, String category); in removeAidGroupForService() [all …]
|
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/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/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 | 19 import android.content.ComponentName; 27 mIntent.putExtra("component", new ComponentName(getContext(), SubActivityScreen.class)); in testPendingResult() 33 mIntent.putExtra("component", new ComponentName(getContext(), SubActivityScreen.class)); in testNoResult() 39 mIntent.putExtra("component", new ComponentName(getContext(), SubActivityScreen.class)); in testResult() 46 new ComponentName(getContext(), RemoteSubActivityScreen.class)); in testFinishSub() 53 new ComponentName(getContext(), RemoteSubActivityScreen.class)); in testRemoteNoResult() 60 new ComponentName(getContext(), RemoteSubActivityScreen.class)); in testRemoteResult() 66 mIntent.putExtra("component", new ComponentName(getContext(), SubActivityScreen.class)); in testRemoteFinishSub() 73 new ComponentName(getContext(), RemoteSubActivityScreen.class)); in testRemoteRestartNoResult() 81 new ComponentName(getContext(), RemoteSubActivityScreen.class)); in testRemoteRestartResult() [all …]
|
D | LaunchTest.java | 19 import android.content.ComponentName; 29 mIntent.putExtra("component", new ComponentName(getContext(), TestedActivity.class)); in testColdActivity() 35 mIntent.putExtra("component", new ComponentName(getContext(), LocalActivity.class)); in testLocalActivity() 41 mIntent.putExtra("component", new ComponentName(getContext(), TestedScreen.class)); in testColdScreen() 47 mIntent.putExtra("component", new ComponentName(getContext(), LocalScreen.class)); in testLocalScreen() 66 mIntent.putExtra("component", new ComponentName(getContext(), ClearTop.class)); in testClearTopInCreate() 72 mIntent.putExtra("component", new ComponentName(getContext(), ClearTop.class)); in testClearTopWhileResumed()
|
/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; 53 public ComponentName delegateCertInstaller; 64 admin1 = new ComponentName(mRealTestContext, DummyDeviceAdmins.Admin1.class); in setUp() 65 admin2 = new ComponentName(mRealTestContext, DummyDeviceAdmins.Admin2.class); in setUp() 66 admin3 = new ComponentName(mRealTestContext, DummyDeviceAdmins.Admin3.class); in setUp() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/accessibility/ |
D | AccessibilityUtils.java | 20 import android.content.ComponentName; 47 public static Set<ComponentName> getEnabledServicesFromSettings(Context context) { in getEnabledServicesFromSettings() 68 public static Set<ComponentName> getEnabledServicesFromSettings(Context context, int userId) { in getEnabledServicesFromSettings() 76 final Set<ComponentName> enabledServices = new HashSet<>(); in getEnabledServicesFromSettings() 82 final ComponentName enabledService = ComponentName.unflattenFromString( in getEnabledServicesFromSettings() 106 public static void setAccessibilityServiceState(Context context, ComponentName toggledService, in setAccessibilityServiceState() 114 public static void setAccessibilityServiceState(Context context, ComponentName toggledService, in setAccessibilityServiceState() 117 Set<ComponentName> enabledServices = AccessibilityUtils.getEnabledServicesFromSettings( in setAccessibilityServiceState() 133 Set<ComponentName> installedServices = getInstalledServices(context); in setAccessibilityServiceState() 134 for (ComponentName enabledService : enabledServices) { in setAccessibilityServiceState() [all …]
|
/frameworks/base/core/java/android/app/ |
D | TaskInfo.java | 22 import android.content.ComponentName; 71 public ComponentName baseActivity; 77 public ComponentName topActivity; 84 public ComponentName origActivity; 92 public ComponentName realActivity; 175 baseActivity = ComponentName.readFromParcel(source); in readFromParcel() 176 topActivity = ComponentName.readFromParcel(source); in readFromParcel() 177 origActivity = ComponentName.readFromParcel(source); in readFromParcel() 178 realActivity = ComponentName.readFromParcel(source); in readFromParcel() 207 ComponentName.writeToParcel(baseActivity, dest); in writeToParcel() [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/backup/java/com/android/server/backup/ |
D | TransportManager.java | 24 import android.content.ComponentName; 66 private final Set<ComponentName> mTransportWhitelist; 82 private final Map<ComponentName, TransportDescription> mRegisteredTransportsDescriptionMap = 89 TransportManager(@UserIdInt int userId, Context context, Set<ComponentName> whitelist, in TransportManager() 103 Set<ComponentName> whitelist, in TransportManager() 134 Set<ComponentName> transportComponents = new ArraySet<>(components.length); in onPackageChanged() 136 transportComponents.add(new ComponentName(packageName, componentName)); in onPackageChanged() 151 ComponentName[] getRegisteredTransportComponents() { in getRegisteredTransportComponents() 155 .toArray(new ComponentName[mRegisteredTransportsDescriptionMap.size()]); in getRegisteredTransportComponents() 177 Set<ComponentName> getTransportWhitelist() { in getTransportWhitelist() [all …]
|
/frameworks/base/libs/services/include/android/content/ |
D | ComponentName.h | 30 class ComponentName: public android::Parcelable { 32 ComponentName(); 33 ComponentName(const ComponentName& that); 34 ComponentName(const string& pkg, const string& cls); 35 virtual ~ComponentName(); 37 bool operator<(const ComponentName& that) const;
|
/frameworks/base/services/core/java/com/android/server/dreams/ |
D | DreamManagerService.java | 23 import android.content.ComponentName; 80 private ComponentName mCurrentDreamName; 202 private void testDreamInternal(ComponentName dream, int userId) { in testDreamInternal() 210 final ComponentName dream = chooseDreamForUser(doze, userId); in startDreamInternal() 271 private ComponentName chooseDreamForUser(boolean doze, int userId) { in chooseDreamForUser() 273 ComponentName dozeComponent = getDozeComponent(userId); in chooseDreamForUser() 276 ComponentName[] dreams = getDreamComponentsForUser(userId); in chooseDreamForUser() 280 private boolean validateDream(ComponentName component) { in validateDream() 296 private ComponentName[] getDreamComponentsForUser(int userId) { in getDreamComponentsForUser() 300 ComponentName[] components = componentsFromString(names); in getDreamComponentsForUser() [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() 82 public void onServiceDisconnected(ComponentName name) { in onServiceDisconnected() 87 public void onBindingDied(ComponentName name) { in onBindingDied() 95 public void onNullBinding(ComponentName name) { in onNullBinding() 139 void onComplete(ComponentName name, Set<ImsFeatureConfiguration.FeatureSlotPair> features); in onComplete() 144 void onError(ComponentName name); in onError() 149 void onPermanentError(ComponentName name); in onPermanentError() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/ |
D | ContentCaptureOptionsTest.java | 43 private final ComponentName mContextComponent = new ComponentName("marco", "polo"); 44 private final ComponentName mComp1 = new ComponentName("comp", "one"); 45 private final ComponentName mComp2 = new ComponentName("two", "comp"); 64 ContentCaptureOptions options = new ContentCaptureOptions(toSet((ComponentName) null)); in testIsWhitelisted_emptyWhitelistedComponents() 98 private ArraySet<ComponentName> toSet(@Nullable ComponentName... comps) { in toSet() 99 ArraySet<ComponentName> set = new ArraySet<>(); in toSet()
|
/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/core/tests/coretests/src/android/view/textclassifier/ |
D | FakeContextBuilder.java | 25 import android.content.ComponentName; 52 public static final ComponentName DEFAULT_COMPONENT = new ComponentName("pkg", "cls"); 56 private final Map<String, ComponentName> mComponents = new HashMap<>(); 58 private @Nullable ComponentName mAllIntentComponent; 77 String intentAction, @Nullable ComponentName component) { in setIntentComponent() 97 public FakeContextBuilder setAllIntentComponent(@Nullable ComponentName component) { in setAllIntentComponent() 109 final ComponentName component = mComponents.containsKey(action) in build() 125 public static ComponentName newComponent() { in newComponent() 126 return new ComponentName(UUID.randomUUID().toString(), UUID.randomUUID().toString()); in newComponent() 129 private static ResolveInfo getResolveInfo(ComponentName component) { in getResolveInfo()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/infra/ |
D | WhitelistHelperTest.java | 23 import android.content.ComponentName; 44 private ComponentName mComponent1 = new ComponentName(mPackage1, "class1"); 45 private ComponentName mComponent2 = new ComponentName(mPackage1, "class2"); 46 private ComponentName mComponentDifferentPkg = new ComponentName(mPackage2, "class3"); 63 () -> mWhitelistHelper.isWhitelisted((ComponentName) null)); in testWhitelistHelper_nullArguments() 84 final ArraySet<ComponentName> components = new ArraySet<>(); in testSetWhitelist_nullActivity() 98 final ArraySet<ComponentName> components = new ArraySet<>(); in testSetWhitelist_replaceWhitelist() 104 final ArraySet<ComponentName> components2 = new ArraySet<>(); in testSetWhitelist_replaceWhitelist() 127 final ArraySet<ComponentName> components = new ArraySet<>(); in testIsWhitelisted_activityWhitelisted()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | DumpUtils.java | 21 import android.content.ComponentName; 46 public static final ComponentName[] CRITICAL_SECTION_COMPONENTS = { 47 new ComponentName("com.android.systemui", "com.android.systemui.SystemUIService") 188 public static boolean isPlatformPackage(@Nullable ComponentName cname) { in isPlatformPackage() 196 public static boolean isPlatformPackage(@Nullable ComponentName.WithComponentName wcn) { in isPlatformPackage() 212 public static boolean isNonPlatformPackage(@Nullable ComponentName cname) { in isNonPlatformPackage() 220 public static boolean isNonPlatformPackage(@Nullable ComponentName.WithComponentName wcn) { in isNonPlatformPackage() 227 private static boolean isCriticalPackage(@Nullable ComponentName cname) { in isCriticalPackage() 246 public static boolean isPlatformCriticalPackage(@Nullable ComponentName.WithComponentName wcn) { in isPlatformCriticalPackage() 258 @Nullable ComponentName.WithComponentName wcn) { in isPlatformNonCriticalPackage() [all …]
|