Home
last modified time | relevance | path

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

12345678910>>...22

/frameworks/base/core/java/android/app/admin/
DIDevicePolicyManager.aidl21 import android.content.ComponentName;
39 void setPasswordQuality(in ComponentName who, int quality, boolean parent); in setPasswordQuality()
40 int getPasswordQuality(in ComponentName who, int userHandle, boolean parent); in getPasswordQuality()
42 void setPasswordMinimumLength(in ComponentName who, int length, boolean parent); in setPasswordMinimumLength()
43 int getPasswordMinimumLength(in ComponentName who, int userHandle, boolean parent); in getPasswordMinimumLength()
45 void setPasswordMinimumUpperCase(in ComponentName who, int length, boolean parent); in setPasswordMinimumUpperCase()
46 int getPasswordMinimumUpperCase(in ComponentName who, int userHandle, boolean parent); in getPasswordMinimumUpperCase()
48 void setPasswordMinimumLowerCase(in ComponentName who, int length, boolean parent); in setPasswordMinimumLowerCase()
49 int getPasswordMinimumLowerCase(in ComponentName who, int userHandle, boolean parent); in getPasswordMinimumLowerCase()
51 void setPasswordMinimumLetters(in ComponentName who, int length, boolean parent); in setPasswordMinimumLetters()
[all …]
DDevicePolicyManager.java29 import android.content.ComponentName;
1055 public boolean isAdminActive(@NonNull ComponentName admin) { in isAdminActive()
1063 public boolean isAdminActiveAsUser(@NonNull ComponentName admin, int userId) { in isAdminActiveAsUser()
1078 public boolean isRemovingAdmin(@NonNull ComponentName admin, int userId) { in isRemovingAdmin()
1095 public List<ComponentName> getActiveAdmins() { in getActiveAdmins()
1104 public List<ComponentName> getActiveAdminsAsUser(int userId) { in getActiveAdminsAsUser()
1152 public void removeActiveAdmin(@NonNull ComponentName admin) { in removeActiveAdmin()
1173 public boolean hasGrantedPolicy(@NonNull ComponentName admin, int usesPolicy) { in hasGrantedPolicy()
1306 public void setPasswordQuality(@NonNull ComponentName admin, int quality) { in setPasswordQuality()
1328 public int getPasswordQuality(@Nullable ComponentName admin) { in getPasswordQuality()
[all …]
/frameworks/base/core/java/android/content/
DComponentName.java36 public final class ComponentName implements Parcelable, Cloneable, Comparable<ComponentName> { class
55 public static ComponentName createRelative(String pkg, String cls) { in createRelative()
68 return new ComponentName(pkg, fullName); in createRelative()
86 public static ComponentName createRelative(Context pkg, String cls) { in createRelative()
98 public ComponentName(String pkg, String cls) { in ComponentName() method in ComponentName
113 public ComponentName(Context pkg, String cls) { in ComponentName() method in ComponentName
127 public ComponentName(Context pkg, Class<?> cls) { in ComponentName() method in ComponentName
132 public ComponentName clone() { in clone()
133 return new ComponentName(mPackage, mClass); in clone()
258 public static ComponentName unflattenFromString(String str) { in unflattenFromString()
[all …]
DIContentService.aidl20 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/packages/SettingsLib/src/com/android/settingslib/accessibility/
DAccessibilityUtils.java20 import android.content.ComponentName;
47 public static Set<ComponentName> getEnabledServicesFromSettings(Context context) { in getEnabledServicesFromSettings()
55 public static Set<ComponentName> getEnabledServicesFromSettings(Context context, int userId) { in getEnabledServicesFromSettings()
63 final Set<ComponentName> enabledServices = new HashSet<>(); in getEnabledServicesFromSettings()
69 final ComponentName enabledService = ComponentName.unflattenFromString( in getEnabledServicesFromSettings()
93 public static void setAccessibilityServiceState(Context context, ComponentName toggledService, in setAccessibilityServiceState()
101 public static void setAccessibilityServiceState(Context context, ComponentName toggledService, in setAccessibilityServiceState()
104 Set<ComponentName> enabledServices = AccessibilityUtils.getEnabledServicesFromSettings( in setAccessibilityServiceState()
120 Set<ComponentName> installedServices = getInstalledServices(context); in setAccessibilityServiceState()
121 for (ComponentName enabledService : enabledServices) { in setAccessibilityServiceState()
[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 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()
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/core/tests/coretests/src/android/app/activity/
DSubActivityTest.java20 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 …]
DMetaDataTest.java19 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()
DLaunchTest.java19 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()
/frameworks/base/services/core/java/com/android/server/search/
DSearchables.java22 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/tests/servicestests/src/com/android/server/devicepolicy/
DDpmTestBase.java19 import android.content.ComponentName;
45 public ComponentName admin1;
46 public ComponentName admin2;
47 public ComponentName admin3;
48 public ComponentName adminNoPerm;
59 admin1 = new ComponentName(mRealTestContext, DummyDeviceAdmins.Admin1.class); in setUp()
60 admin2 = new ComponentName(mRealTestContext, DummyDeviceAdmins.Admin2.class); in setUp()
61 admin3 = new ComponentName(mRealTestContext, DummyDeviceAdmins.Admin3.class); in setUp()
62 adminNoPerm = new ComponentName(mRealTestContext, DummyDeviceAdmins.AdminNoPerm.class); in setUp()
87 protected void setUpPackageManagerForAdmin(ComponentName admin, int packageUid) in setUpPackageManagerForAdmin()
[all …]
/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()
228 public ArraySet<ComponentName> getEnabled(int userId) { in getEnabled()
[all …]
DVrManagerInternal.java19 import android.content.ComponentName;
55 public abstract void setVrMode(boolean enabled, @NonNull ComponentName packageName, in setVrMode()
56 int userId, @NonNull ComponentName calling); in setVrMode()
66 public abstract void setVrModeImmediate(boolean enabled, @NonNull ComponentName packageName, in setVrModeImmediate()
67 int userId, @NonNull ComponentName calling); in setVrModeImmediate()
78 public abstract int hasVrPackage(@NonNull ComponentName packageName, int userId); in hasVrPackage()
DVrManagerService.java24 import android.content.ComponentName;
116 private ComponentName mCurrentVrModeComponent;
162 final ComponentName targetPackageName;
163 final ComponentName callingPackage;
167 VrState(boolean enabled, ComponentName targetPackageName, int userId, in VrState()
168 ComponentName callingPackage) { in VrState()
177 VrState(boolean enabled, ComponentName targetPackageName, int userId, in VrState()
178 ComponentName callingPackage, boolean defaultPermissionsGranted) { in VrState()
256 ArraySet<ComponentName> enabledListeners = mComponentObserver.getEnabled(currentUser); in onEnabledComponentChanged()
259 for (ComponentName n : enabledListeners) { in onEnabledComponentChanged()
[all …]
/frameworks/base/services/core/java/com/android/server/dreams/
DDreamManagerService.java28 import android.content.ComponentName;
79 private ComponentName mCurrentDreamName;
191 private void testDreamInternal(ComponentName dream, int userId) { in testDreamInternal()
199 final ComponentName dream = chooseDreamForUser(doze, userId); in startDreamInternal()
250 private ComponentName chooseDreamForUser(boolean doze, int userId) { in chooseDreamForUser()
252 ComponentName dozeComponent = getDozeComponent(userId); in chooseDreamForUser()
255 ComponentName[] dreams = getDreamComponentsForUser(userId); in chooseDreamForUser()
259 private boolean validateDream(ComponentName component) { in validateDream()
275 private ComponentName[] getDreamComponentsForUser(int userId) { in getDreamComponentsForUser()
279 ComponentName[] components = componentsFromString(names); in getDreamComponentsForUser()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DManagedServices.java27 import android.content.ComponentName;
95 private ArraySet<ComponentName> mEnabledServicesForCurrentProfiles
96 = new ArraySet<ComponentName>();
103 private ArraySet<ComponentName> mSnoozingForCurrentProfiles = new ArraySet<>();
156 ComponentName component, int userid, boolean isSystem, ServiceConnection connection, in newServiceInfo()
169 for (ComponentName cmpt : mEnabledServicesForCurrentProfiles) { in dump()
185 for (ComponentName name : mSnoozingForCurrentProfiles) { in dump()
292 public void registerService(IInterface service, ComponentName component, int userid) { in registerService()
314 public void setComponentState(ComponentName component, boolean enabled) { in setComponentState()
355 ArraySet<ComponentName> names = in rebuildRestoredPackages()
[all …]
/frameworks/support/v4/java/android/support/v4/content/
DIntentCompat.java19 import android.content.ComponentName;
31 Intent makeMainActivity(ComponentName componentName); in makeMainActivity()
33 Intent makeRestartActivityTask(ComponentName mainActivity); in makeRestartActivityTask()
38 public Intent makeMainActivity(ComponentName componentName) { in makeMainActivity()
57 public Intent makeRestartActivityTask(ComponentName mainActivity) { in makeRestartActivityTask()
67 public Intent makeMainActivity(ComponentName componentName) { in makeMainActivity()
71 public Intent makeRestartActivityTask(ComponentName componentName) { in makeRestartActivityTask()
226 public static Intent makeMainActivity(ComponentName mainActivity) { in makeMainActivity()
271 public static Intent makeRestartActivityTask(ComponentName mainActivity) { in makeRestartActivityTask()
/frameworks/base/services/core/java/com/android/server/trust/
DTrustArchive.java19 import android.content.ComponentName;
46 final ComponentName agent;
57 private Event(int type, int userId, ComponentName agent, String message, in Event()
72 public void logGrantTrust(int userId, ComponentName agent, String message, in logGrantTrust()
78 public void logRevokeTrust(int userId, ComponentName agent) { in logRevokeTrust()
82 public void logTrustTimeout(int userId, ComponentName agent) { in logTrustTimeout()
86 public void logAgentDied(int userId, ComponentName agent) { in logAgentDied()
90 public void logAgentConnected(int userId, ComponentName agent) { in logAgentConnected()
94 public void logAgentStopped(int userId, ComponentName agent) { in logAgentStopped()
98 public void logManagingTrust(int userId, ComponentName agent, boolean managing) { in logManagingTrust()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DProviderMap.java19 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/core/java/android/service/dreams/
DIDreamManager.aidl19 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/base/packages/SystemUI/src/com/android/systemui/qs/external/
DTileServices.java19 import android.content.ComponentName;
54 private final ArrayMap<ComponentName, CustomTile> mTiles = new ArrayMap<>();
80 ComponentName component = tile.getComponent(); in getTileWrapper()
89 protected TileServiceManager onCreateTileService(ComponentName component, Tile tile) { in onCreateTileService()
153 private void requestListening(ComponentName component) { in requestListening()
174 ComponentName componentName = tile.getComponentName(); in updateQsTile()
190 ComponentName componentName = tile.getComponentName(); in onStartSuccessful()
204 ComponentName componentName = tile.getComponentName(); in onShowDialog()
216 ComponentName componentName = tile.getComponentName(); in onDialogHidden()
227 ComponentName componentName = tile.getComponentName(); in onStartActivity()
[all …]
/frameworks/support/v4/java/android/support/v4/app/
DNotificationManagerCompat.java22 import android.content.ComponentName;
341 ComponentName componentName = ComponentName.unflattenFromString(component); in getEnabledListenerPackages()
388 private final Map<ComponentName, ListenerRecord> mRecordMap =
389 new HashMap<ComponentName, ListenerRecord>();
418 handleServiceDisconnected((ComponentName) msg.obj); in handleMessage()
421 handleRetryListenerQueue((ComponentName) msg.obj); in handleMessage()
435 private void handleServiceConnected(ComponentName componentName, IBinder iBinder) { in handleServiceConnected()
444 private void handleServiceDisconnected(ComponentName componentName) { in handleServiceDisconnected()
451 private void handleRetryListenerQueue(ComponentName componentName) { in handleRetryListenerQueue()
459 public void onServiceConnected(ComponentName componentName, IBinder iBinder) { in onServiceConnected()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/dream/
DDreamBackend.java19 import android.content.ComponentName;
55 public ComponentName componentName;
56 public ComponentName settingsComponentName;
93 ComponentName activeDream = getActiveDream(); in getDreamInfos()
114 public ComponentName getDefaultDream() { in getDefaultDream()
126 ComponentName cn = getActiveDream(); in getActiveDreamName()
178 public void setActiveDream(ComponentName dream) { in setActiveDream()
183 ComponentName[] dreams = { dream }; in setActiveDream()
190 public ComponentName getActiveDream() { in getActiveDream()
194 ComponentName[] dreams = mDreamManager.getDreamComponents(); in getActiveDream()
[all …]
/frameworks/base/services/core/java/com/android/server/firewall/
DStringFilter.java19 import android.content.ComponentName;
121 public boolean matches(IntentFirewall ifw, ComponentName resolvedComponent, Intent intent, in matches()
137 public abstract String getValue(ComponentName resolvedComponent, Intent intent, in getValue()
232 public String getValue(ComponentName resolvedComponent, Intent intent,
243 public String getValue(ComponentName resolvedComponent, Intent intent,
254 public String getValue(ComponentName resolvedComponent, Intent intent,
265 public String getValue(ComponentName resolvedComponent, Intent intent,
273 public String getValue(ComponentName resolvedComponent, Intent intent,
285 public String getValue(ComponentName resolvedComponent, Intent intent,
293 public String getValue(ComponentName resolvedComponent, Intent intent,
[all …]

12345678910>>...22