Home
last modified time | relevance | path

Searched refs:ComponentName (Results 1 – 25 of 936) sorted by relevance

12345678910>>...38

/frameworks/base/core/java/android/app/admin/
DIDevicePolicyManager.aidl28 import android.content.ComponentName;
52 void setPasswordQuality(in ComponentName who, int quality, boolean parent); in setPasswordQuality()
53 int getPasswordQuality(in ComponentName who, int userHandle, boolean parent); in getPasswordQuality()
55 void setPasswordMinimumLength(in ComponentName who, int length, boolean parent); in setPasswordMinimumLength()
56 int getPasswordMinimumLength(in ComponentName who, int userHandle, boolean parent); in getPasswordMinimumLength()
58 void setPasswordMinimumUpperCase(in ComponentName who, int length, boolean parent); in setPasswordMinimumUpperCase()
59 int getPasswordMinimumUpperCase(in ComponentName who, int userHandle, boolean parent); in getPasswordMinimumUpperCase()
61 void setPasswordMinimumLowerCase(in ComponentName who, int length, boolean parent); in setPasswordMinimumLowerCase()
62 int getPasswordMinimumLowerCase(in ComponentName who, int userHandle, boolean parent); in getPasswordMinimumLowerCase()
64 void setPasswordMinimumLetters(in ComponentName who, int length, boolean parent); in setPasswordMinimumLetters()
[all …]
DDevicePolicyManager.java44 import android.content.ComponentName;
2443 public boolean isAdminActive(@NonNull ComponentName admin) { in isAdminActive()
2452 public boolean isAdminActiveAsUser(@NonNull ComponentName admin, int userId) { in isAdminActiveAsUser()
2468 public boolean isRemovingAdmin(@NonNull ComponentName admin, int userId) { in isRemovingAdmin()
2484 public @Nullable List<ComponentName> getActiveAdmins() { in getActiveAdmins()
2494 public @Nullable List<ComponentName> getActiveAdminsAsUser(int userId) { in getActiveAdminsAsUser()
2545 public void removeActiveAdmin(@NonNull ComponentName admin) { in removeActiveAdmin()
2566 public boolean hasGrantedPolicy(@NonNull ComponentName admin, int usesPolicy) { in hasGrantedPolicy()
2733 public void setPasswordQuality(@NonNull ComponentName admin, int quality) { in setPasswordQuality()
2758 public int getPasswordQuality(@Nullable ComponentName admin) { in getPasswordQuality()
[all …]
/frameworks/base/services/contentcapture/java/com/android/server/contentcapture/
DContentCaptureMetricsLogger.java20 import android.content.ComponentName;
44 public static void writeServiceEvent(int eventType, @NonNull ComponentName service, in writeServiceEvent()
45 @Nullable ComponentName target) { in writeServiceEvent()
46 writeServiceEvent(eventType, ComponentName.flattenToShortString(service), in writeServiceEvent()
47 ComponentName.flattenToShortString(target)); in writeServiceEvent()
51 public static void writeServiceEvent(int eventType, @NonNull ComponentName service, in writeServiceEvent()
53 writeServiceEvent(eventType, ComponentName.flattenToShortString(service), targetPackage); in writeServiceEvent()
57 public static void writeServiceEvent(int eventType, @NonNull ComponentName service) { in writeServiceEvent()
58 writeServiceEvent(eventType, ComponentName.flattenToShortString(service), null); in writeServiceEvent()
62 public static void writeSetWhitelistEvent(@Nullable ComponentName service, in writeSetWhitelistEvent()
[all …]
/frameworks/base/libs/services/src/content/
DComponentName.cpp22 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/
DComponentName.java39 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/
DINfcCardEmulation.aidl19 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 …]
DINfcFCardEmulation.aidl19 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/
DShortcutManagerTest5.java21 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/
DInflatingListActivity.java18 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/
DEnabledComponentsObserver.java20 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/
DSubActivityTest.java19 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 …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/accessibility/
DAccessibilityUtils.java20 import android.content.ComponentName;
47 public static Set<ComponentName> getEnabledServicesFromSettings(Context context) { in getEnabledServicesFromSettings()
78 public static Set<ComponentName> getEnabledServicesFromSettings(Context context, int userId) { in getEnabledServicesFromSettings()
86 final Set<ComponentName> enabledServices = new HashSet<>(); in getEnabledServicesFromSettings()
92 final ComponentName enabledService = ComponentName.unflattenFromString( in getEnabledServicesFromSettings()
116 public static void setAccessibilityServiceState(Context context, ComponentName toggledService, in setAccessibilityServiceState()
124 public static void setAccessibilityServiceState(Context context, ComponentName toggledService, in setAccessibilityServiceState()
127 Set<ComponentName> enabledServices = AccessibilityUtils.getEnabledServicesFromSettings( in setAccessibilityServiceState()
143 Set<ComponentName> installedServices = getInstalledServices(context); in setAccessibilityServiceState()
144 for (ComponentName enabledService : enabledServices) { in setAccessibilityServiceState()
[all …]
/frameworks/base/core/java/android/net/
DNetworkScorerAppData.java4 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/SystemUI/src/com/android/systemui/controls/controller/
DControlsController.kt19 import android.content.ComponentName
59 componentName: ComponentName, in loadForComponent()
87 fun action(componentName: ComponentName, controlInfo: ControlInfo, action: ControlAction) in loadForComponent()
96 fun refreshStatus(componentName: ComponentName, control: Control) in loadForComponent()
107 componentName: ComponentName, in loadForComponent()
121 componentNames: List<ComponentName>, in loadForComponent()
146 fun getFavoritesForComponent(componentName: ComponentName): List<StructureInfo> in loadForComponent()
156 componentName: ComponentName, in loadForComponent()
167 componentName: ComponentName, in loadForComponent()
190 fun countFavoritesForComponent(componentName: ComponentName): Int in loadForComponent()
/frameworks/base/libs/services/include/android/content/
DComponentName.h30 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/devicepolicy/java/com/android/server/devicepolicy/
DBaseIDevicePolicyManager.java19 import android.content.ComponentName;
61 public boolean setKeyGrantForApp(ComponentName admin, String callerPackage, String alias, in setKeyGrantForApp()
66 public void setLocationEnabled(ComponentName who, boolean locationEnabled) {} in setLocationEnabled()
72 public int getPersonalAppsSuspendedReasons(ComponentName admin) { in getPersonalAppsSuspendedReasons()
76 public void setPersonalAppsSuspended(ComponentName admin, boolean suspended) { in setPersonalAppsSuspended()
79 public void setManagedProfileMaximumTimeOff(ComponentName admin, long timeoutMs) { in setManagedProfileMaximumTimeOff()
82 public long getManagedProfileMaximumTimeOff(ComponentName admin) { in getManagedProfileMaximumTimeOff()
/frameworks/base/services/core/java/com/android/server/dreams/
DDreamManagerService.java23 import android.content.ComponentName;
85 private final ComponentName mAmbientDisplayComponent;
88 private ComponentName mCurrentDreamName;
133 mAmbientDisplayComponent = ComponentName.unflattenFromString(adc.ambientDisplayComponent()); in DreamManagerService()
234 private void testDreamInternal(ComponentName dream, int userId) { in testDreamInternal()
242 final ComponentName dream = chooseDreamForUser(doze, userId); in startDreamInternal()
303 private ComponentName getActiveDreamComponentInternal(boolean doze) { in getActiveDreamComponentInternal()
307 private ComponentName chooseDreamForUser(boolean doze, int userId) { in chooseDreamForUser()
309 ComponentName dozeComponent = getDozeComponent(userId); in chooseDreamForUser()
312 ComponentName[] dreams = getDreamComponentsForUser(userId); in chooseDreamForUser()
[all …]
/frameworks/base/core/java/android/service/dreams/
DIDreamManager.aidl19 import android.content.ComponentName;
31 void setDreamComponents(in ComponentName[] componentNames); in setDreamComponents()
33 ComponentName[] getDreamComponents(); in getDreamComponents()
34 ComponentName getDefaultDreamComponentForUser(int userId); in getDefaultDreamComponentForUser()
35 void testDream(int userId, in ComponentName componentName); in testDream()
42 ComponentName[] getDreamComponentsForUser(int userId); in getDreamComponentsForUser()
43 void setDreamComponentsForUser(int userId, in ComponentName[] componentNames); in setDreamComponentsForUser()
/frameworks/base/services/backup/backuplib/java/com/android/server/backup/
DTransportManager.java24 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/opt/telephony/src/java/com/android/internal/telephony/ims/
DImsServiceFeatureQueryManager.java19 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/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmTestBase.java29 import android.content.ComponentName;
50 public ComponentName admin1;
51 public ComponentName admin2;
52 public ComponentName admin3;
53 public ComponentName adminAnotherPackage;
54 public ComponentName adminNoPerm;
55 public ComponentName delegateCertInstaller;
66 admin1 = new ComponentName(mRealTestContext, DummyDeviceAdmins.Admin1.class); in setUp()
67 admin2 = new ComponentName(mRealTestContext, DummyDeviceAdmins.Admin2.class); in setUp()
68 admin3 = new ComponentName(mRealTestContext, DummyDeviceAdmins.Admin3.class); in setUp()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/
DContentCaptureOptionsTest.java43 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/core/tests/coretests/src/android/view/textclassifier/
DFakeContextBuilder.java25 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/services/core/java/com/android/server/search/
DSearchables.java22 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/java/android/app/
DTaskInfo.java23 import android.content.ComponentName;
74 public ComponentName baseActivity;
80 public ComponentName topActivity;
87 public ComponentName origActivity;
95 public ComponentName realActivity;
227 baseActivity = ComponentName.readFromParcel(source); in readFromParcel()
228 topActivity = ComponentName.readFromParcel(source); in readFromParcel()
229 origActivity = ComponentName.readFromParcel(source); in readFromParcel()
230 realActivity = ComponentName.readFromParcel(source); in readFromParcel()
268 ComponentName.writeToParcel(baseActivity, dest); in writeToParcel()
[all …]

12345678910>>...38