/frameworks/base/telecomm/java/android/telecom/ |
PhoneAccountHandle.java | 20 import android.content.ComponentName; 37 * Note: This Class requires a non-null {@link ComponentName} and {@link UserHandle} to operate 43 private final ComponentName mComponentName; 48 @NonNull ComponentName componentName, 50 this(componentName, id, Process.myUserHandle()); 54 @NonNull ComponentName componentName, 57 checkParameters(componentName, userHandle); 58 mComponentName = componentName; [all...] |
/packages/apps/Nfc/src/com/android/nfc/cardemulation/ |
RegisteredNfcFServicesCache.java | 25 import android.content.ComponentName; 105 final HashMap<ComponentName, NfcFServiceInfo> services = 107 final HashMap<ComponentName, DynamicSystemCode> dynamicSystemCode = 109 final HashMap<ComponentName, DynamicNfcid2> dynamicNfcid2 = 187 ComponentName componentName) { 189 if (service.getComponent().equals(componentName)) return true; 194 public boolean hasService(int userId, ComponentName componentName) { 195 return getService(userId, componentName) != null [all...] |
/frameworks/base/core/java/android/content/ |
ComponentName.java | 36 public final class ComponentName implements Parcelable, Cloneable, Comparable<ComponentName> { 46 * will return a ComponentName with the package <code>"com.example"</code>and class name 53 * @return the new ComponentName 55 public static ComponentName createRelative(String pkg, String cls) { 68 return new ComponentName(pkg, fullName); 77 * will return a ComponentName with the package <code>"com.example"</code>and class name 84 * @return the new ComponentName 86 public static ComponentName createRelative(Context pkg, String cls) { 98 public ComponentName(String pkg, String cls) [all...] |
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/res/ |
RobolectricPackageManager.java | 9 import android.content.ComponentName; 24 private Map<ComponentName, ComponentState> componentList = new HashMap<ComponentName,ComponentState>(); 25 private Map<ComponentName, Drawable> drawableList = new HashMap<ComponentName, Drawable>(); 120 public Drawable getActivityIcon(ComponentName componentName) { 121 return drawableList.get(componentName); 124 public void addActivityIcon( ComponentName component, Drawable d ) { 135 i.setComponent( new ComponentName(packageName, "") ) [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/ |
ThroughputService.java | 3 import android.content.ComponentName; 8 static final ComponentName COMPONENT = 9 new ComponentName("com.android.cts.verifier", 55 public ComponentName getComponent() {
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/ |
SensorDeviceAdminReceiver.java | 20 import android.content.ComponentName; 29 * Gets the associated {@link ComponentName} of the current receiver. 31 public static ComponentName getComponentName(Context context) { 32 return new ComponentName(context, SensorDeviceAdminReceiver.class);
|
/frameworks/base/core/java/android/app/ |
ISearchManager.aidl | 21 import android.content.ComponentName; 28 SearchableInfo getSearchableInfo(in ComponentName launchActivity); 31 ComponentName getGlobalSearchActivity(); 32 ComponentName getWebSearchActivity();
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/accessibility/ |
AccessibilityUtils.java | 20 import android.content.ComponentName; 47 public static Set<ComponentName> getEnabledServicesFromSettings(Context context) { 55 public static Set<ComponentName> getEnabledServicesFromSettings(Context context, int userId) { 63 final Set<ComponentName> enabledServices = new HashSet<>(); 69 final ComponentName enabledService = ComponentName.unflattenFromString( 93 public static void setAccessibilityServiceState(Context context, ComponentName toggledService, 101 public static void setAccessibilityServiceState(Context context, ComponentName toggledService, 104 Set<ComponentName> enabledServices = AccessibilityUtils.getEnabledServicesFromSettings( 120 Set<ComponentName> installedServices = getInstalledServices(context) [all...] |
/packages/apps/Settings/src/com/android/settings/voice/ |
VoiceInputHelper.java | 19 import android.content.ComponentName; 54 public final ComponentName componentName; 56 public final ComponentName settings; 63 componentName = new ComponentName(_service.packageName, _service.name); 64 key = componentName.flattenToShortString(); 66 ? new ComponentName(_service.packageName, _settings) : null; 96 ComponentName mCurrentVoiceInteraction; 97 ComponentName mCurrentRecognizer [all...] |
/frameworks/support/compat/java/android/support/v4/app/ |
NotificationManagerCompat.java | 22 import android.content.ComponentName; 324 ComponentName componentName = ComponentName.unflattenFromString(component); 325 if (componentName != null) { 326 packageNames.add(componentName.getPackageName()); 371 private final Map<ComponentName, ListenerRecord> mRecordMap = 372 new HashMap<ComponentName, ListenerRecord>(); 398 handleServiceConnected(event.componentName, event.iBinder); 401 handleServiceDisconnected((ComponentName) msg.obj) [all...] |
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowComponentName.java | 3 import android.content.ComponentName; 13 * Shadows the {@code android.content.ComponentName} class. 18 @Implements(ComponentName.class) 52 public static ComponentName readFromParcel(Parcel in) { 58 return new ComponentName(pkg, cls); 69 public static void writeToParcel(ComponentName c, Parcel out) { 102 return "ComponentName{" +
|
/frameworks/base/core/java/android/content/pm/ |
ILauncherApps.aidl | 19 import android.content.ComponentName; 41 ActivityInfo resolveActivity(in ComponentName component, in UserHandle user); 42 void startActivityAsUser(in ComponentName component, in Rect sourceBounds, 44 void showAppDetailsAsUser(in ComponentName component, in Rect sourceBounds, 47 boolean isActivityEnabled(in ComponentName component, in UserHandle user); 51 in List shortcutIds, in ComponentName componentName, int flags, in UserHandle user);
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
PendingAddItemInfo.java | 21 import android.content.ComponentName; 33 ComponentName componentName; 63 componentName = i.provider; 76 componentName = copy.componentName; 87 return "Widget: " + componentName.toShortString();
|
InfoDropTarget.java | 19 import android.content.ComponentName; 77 ComponentName componentName = null; 79 componentName = ((ApplicationInfo) d.dragInfo).componentName; 81 componentName = ((ShortcutInfo) d.dragInfo).intent.getComponent(); 83 componentName = ((PendingAddItemInfo) d.dragInfo).componentName; 91 if (componentName != null) { 92 mLauncher.startApplicationDetailsActivity(componentName, user) [all...] |
/cts/tests/tests/content/src/android/content/pm/cts/ |
InstrumentationInfoTest.java | 20 import android.content.ComponentName; 34 ComponentName componentName = new ComponentName(PACKAGE_NAME, INSTRUMENTATION_NAME); 39 InstrumentationInfo instrInfo = pm.getInstrumentationInfo(componentName, 0);
|
ServiceInfoTest.java | 20 import android.content.ComponentName; 33 ComponentName componentName = new ComponentName(PACKAGE_NAME, SERVICE_NAME); 39 ServiceInfo serviceInfo = pm.getServiceInfo(componentName, 0);
|
/developers/build/prebuilts/gradle/AppRestrictionEnforcer/Application/src/main/java/com/example/android/apprestrictionenforcer/ |
EnforcerDeviceAdminReceiver.java | 20 import android.content.ComponentName; 44 * Generates a {@link ComponentName} that is used throughout the app. 45 * @return a {@link ComponentName} 47 public static ComponentName getComponentName(Context context) { 48 return new ComponentName(context.getApplicationContext(),
|
/developers/build/prebuilts/gradle/BasicManagedProfile/Application/src/main/java/com/example/android/basicmanagedprofile/ |
BasicDeviceAdminReceiver.java | 20 import android.content.ComponentName; 44 * Generates a {@link ComponentName} that is used throughout the app. 45 * @return a {@link ComponentName} 47 public static ComponentName getComponentName(Context context) { 48 return new ComponentName(context.getApplicationContext(), BasicDeviceAdminReceiver.class);
|
EnableProfileActivity.java | 21 import android.content.ComponentName; 49 ComponentName componentName = BasicDeviceAdminReceiver.getComponentName(this); 51 manager.setProfileName(componentName, getString(R.string.profile_name)); 53 manager.setProfileEnabled(componentName);
|
/developers/samples/android/admin/AppRestrictionEnforcer/Application/src/main/java/com/example/android/apprestrictionenforcer/ |
EnforcerDeviceAdminReceiver.java | 20 import android.content.ComponentName; 44 * Generates a {@link ComponentName} that is used throughout the app. 45 * @return a {@link ComponentName} 47 public static ComponentName getComponentName(Context context) { 48 return new ComponentName(context.getApplicationContext(),
|
/developers/samples/android/admin/BasicManagedProfile/Application/src/main/java/com/example/android/basicmanagedprofile/ |
BasicDeviceAdminReceiver.java | 20 import android.content.ComponentName; 44 * Generates a {@link ComponentName} that is used throughout the app. 45 * @return a {@link ComponentName} 47 public static ComponentName getComponentName(Context context) { 48 return new ComponentName(context.getApplicationContext(), BasicDeviceAdminReceiver.class);
|
EnableProfileActivity.java | 21 import android.content.ComponentName; 49 ComponentName componentName = BasicDeviceAdminReceiver.getComponentName(this); 51 manager.setProfileName(componentName, getString(R.string.profile_name)); 53 manager.setProfileEnabled(componentName);
|
/development/samples/RandomMusicPlayer/src/com/example/android/musicplayer/ |
MediaButtonHelper.java | 3 import android.content.ComponentName; 28 new Class[] { ComponentName.class }); 31 new Class[] { ComponentName.class }); 38 ComponentName receiver) { 63 ComponentName receiver) {
|
/development/samples/browseable/AppRestrictionEnforcer/src/com.example.android.apprestrictionenforcer/ |
EnforcerDeviceAdminReceiver.java | 20 import android.content.ComponentName; 44 * Generates a {@link ComponentName} that is used throughout the app. 45 * @return a {@link ComponentName} 47 public static ComponentName getComponentName(Context context) { 48 return new ComponentName(context.getApplicationContext(),
|
/development/samples/browseable/BasicManagedProfile/src/com.example.android.basicmanagedprofile/ |
BasicDeviceAdminReceiver.java | 20 import android.content.ComponentName; 44 * Generates a {@link ComponentName} that is used throughout the app. 45 * @return a {@link ComponentName} 47 public static ComponentName getComponentName(Context context) { 48 return new ComponentName(context.getApplicationContext(), BasicDeviceAdminReceiver.class);
|