/development/samples/browseable/BasicManagedProfile/src/com.example.android.basicmanagedprofile/ |
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);
|
/packages/apps/QuickSearchBox/benchmarks/src/com/android/quicksearchbox/benchmarks/ |
SourceLatency.java | 22 import android.content.ComponentName; 59 private SearchableInfo getSearchable(ComponentName componentName) { 60 SearchableInfo searchable = mSearchManager.getSearchableInfo(componentName); 63 + componentName.flattenToShortString()); 89 public void checkSourceConcurrent(final String src, final ComponentName componentName, 92 final SearchableInfo searchable = getSearchable(componentName); 122 public void checkSource(String src, ComponentName componentName, String[] queries) [all...] |
/frameworks/base/services/core/java/com/android/server/am/ |
ProviderMap.java | 19 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) { 84 ContentProviderRecord getProviderByClass(ComponentName name, int userId) { 111 void putProviderByClass(ComponentName name, ContentProviderRecord record) { 143 void removeProviderByClass(ComponentName name, int userId) { 153 HashMap<ComponentName, ContentProviderRecord> map = getProvidersByClass(userId) [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/ |
BaseEmulatorActivity.java | 8 import android.content.ComponentName; 32 ComponentName mMakingDefault; 34 final ArrayList<ComponentName> SERVICES = new ArrayList<ComponentName>( 62 abstract void onApduSequenceComplete(ComponentName component, long duration); 81 final void setupServices(Context context, ComponentName... components) { 86 final boolean makePaymentDefault(final ComponentName defaultComponent, int stringId) { 115 ComponentName component = intent.getParcelableExtra(HceUtils.EXTRA_COMPONENT); 126 private class SetupServicesTask extends AsyncTask<ComponentName, Void, Boolean> { 144 protected Boolean doInBackground(ComponentName... components) [all...] |
/frameworks/base/services/core/java/com/android/server/utils/ |
ManagedApplicationService.java | 20 import android.content.ComponentName; 43 private final ComponentName mComponent; 65 private ManagedApplicationService(final Context context, final ComponentName component, 95 * @param component the {@link ComponentName} of the application service to bind. 105 @NonNull final ComponentName component, final int userId, @NonNull int clientLabel, 121 public ComponentName getComponent() { 129 * @param componentName the component that must match. 133 public boolean disconnectIfNotMatching(final ComponentName componentName, final int userId) { 134 if (matches(componentName, userId)) [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
DpmTestBase.java | 19 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); 60 admin2 = new ComponentName(mRealTestContext, DummyDeviceAdmins.Admin2.class); 61 admin3 = new ComponentName(mRealTestContext, DummyDeviceAdmins.Admin3.class); 62 adminNoPerm = new ComponentName(mRealTestContext, DummyDeviceAdmins.AdminNoPerm.class); 87 protected void setUpPackageManagerForAdmin(ComponentName admin, int packageUid [all...] |
/packages/apps/Nfc/src/com/android/nfc/cardemulation/ |
RegisteredServicesCache.java | 25 import android.content.ComponentName; 101 final HashMap<ComponentName, ApduServiceInfo> services = 103 final HashMap<ComponentName, DynamicAids> dynamicAids = 178 boolean containsServiceLocked(ArrayList<ApduServiceInfo> services, ComponentName serviceName) { 185 public boolean hasService(int userId, ComponentName service) { 189 public ApduServiceInfo getService(int userId, ComponentName service) { 241 ComponentName componentName = new ComponentName(si.packageName, si.name); 245 Log.e(TAG, "Skipping application component " + componentName [all...] |
/frameworks/base/docs/html/sdk/api_diff/21/changes/ |
android.app.admin.DevicePolicyManager.html | 86 <A NAME="android.app.admin.DevicePolicyManager.addCrossProfileIntentFilter_added(android.content.ComponentName, android.content.IntentFilter, int)"></A> 87 <nobr><code>void</code> <A HREF="../../../../reference/android/app/admin/DevicePolicyManager.html#addCrossProfileIntentFilter(android.content.ComponentName, android.content.IntentFilter, int)" target="_top"><code>addCrossProfileIntentFilter</code></A>(<code>ComponentName,</nobr> IntentFilter<nobr>,</nobr> int<nobr><nobr></code>)</nobr> 93 <A NAME="android.app.admin.DevicePolicyManager.addCrossProfileWidgetProvider_added(android.content.ComponentName, java.lang.String)"></A> 94 <nobr><code>boolean</code> <A HREF="../../../../reference/android/app/admin/DevicePolicyManager.html#addCrossProfileWidgetProvider(android.content.ComponentName, java.lang.String)" target="_top"><code>addCrossProfileWidgetProvider</code></A>(<code>ComponentName,</nobr> String<nobr><nobr></code>)</nobr> 100 <A NAME="android.app.admin.DevicePolicyManager.addPersistentPreferredActivity_added(android.content.ComponentName, android.content.IntentFilter, android.content.ComponentName)"></A> 101 <nobr><code>void</code> <A HREF="../../../../reference/android/app/admin/DevicePolicyManager.html#addPersistentPreferredActivity(android.content.ComponentName, android.content.IntentFilter, android.content.ComponentName)" target="_top"><code>addPersistentPreferredActivity</code></A>(<code>ComponentName,</nobr> Intent (…) [all...] |
/frameworks/base/docs/html/sdk/api_diff/23/changes/ |
android.app.admin.DevicePolicyManager.html | 86 <A NAME="android.app.admin.DevicePolicyManager.getBluetoothContactSharingDisabled_added(android.content.ComponentName)"></A> 87 <nobr><code>boolean</code> <A HREF="../../../../reference/android/app/admin/DevicePolicyManager.html#getBluetoothContactSharingDisabled(android.content.ComponentName)" target="_top"><code>getBluetoothContactSharingDisabled</code></A>(<code>ComponentName</code>)</nobr> 93 <A NAME="android.app.admin.DevicePolicyManager.getCertInstallerPackage_added(android.content.ComponentName)"></A> 94 <nobr><code>String</code> <A HREF="../../../../reference/android/app/admin/DevicePolicyManager.html#getCertInstallerPackage(android.content.ComponentName)" target="_top"><code>getCertInstallerPackage</code></A>(<code>ComponentName</code>)</nobr> 100 <A NAME="android.app.admin.DevicePolicyManager.getPermissionGrantState_added(android.content.ComponentName, java.lang.String, java.lang.String)"></A> 101 <nobr><code>int</code> <A HREF="../../../../reference/android/app/admin/DevicePolicyManager.html#getPermissionGrantState(android.content.ComponentName, java.lang.String, java.lang.String)" target="_top"><code>getPermissionGrantState</code></A>(<code>ComponentName,</nobr> String<nobr>,</nobr> String<nobr><nobr></code>)</nobr> 107 <A NAME="android.app.admin.DevicePolicyManager.getPermissionPolicy_added(android.content.ComponentName)"></A [all...] |
/cts/tests/tests/content/src/android/content/pm/cts/ |
PackageManagerTest.java | 22 import android.content.ComponentName; 74 new ComponentName(PACKAGE_NAME, cmpActivityName), null, activityIntent, 0); 79 new ComponentName(PACKAGE_NAME, ACTIVITY_NAME), null, activityIntent, 0); 195 ComponentName activityName = new ComponentName(PACKAGE_NAME, ACTIVITY_NAME); 196 ComponentName serviceName = new ComponentName(PACKAGE_NAME, SERVICE_NAME); 197 ComponentName receiverName = new ComponentName(PACKAGE_NAME, RECEIVER_NAME); 198 ComponentName instrName = new ComponentName(PACKAGE_NAME, INSTRUMENT_NAME) [all...] |
/frameworks/base/services/core/java/com/android/server/dreams/ |
DreamManagerService.java | 29 import android.content.ComponentName; 82 private ComponentName mCurrentDreamName; 199 private void testDreamInternal(ComponentName dream, int userId) { 207 final ComponentName dream = chooseDreamForUser(doze, userId); 258 private ComponentName chooseDreamForUser(boolean doze, int userId) { 260 ComponentName dozeComponent = getDozeComponent(userId); 263 ComponentName[] dreams = getDreamComponentsForUser(userId); 267 private boolean validateDream(ComponentName component) { 283 private ComponentName[] getDreamComponentsForUser(int userId) { 287 ComponentName[] components = componentsFromString(names) [all...] |
/developers/build/prebuilts/gradle/DirectShare/Application/src/main/java/com/example/android/directshare/ |
SampleChooserTargetService.java | 19 import android.content.ComponentName; 35 public List<ChooserTarget> onGetChooserTargets(ComponentName targetActivityName, 37 ComponentName componentName = new ComponentName(getPackageName(), 55 componentName,
|
/developers/samples/android/content/DirectShare/Application/src/main/java/com/example/android/directshare/ |
SampleChooserTargetService.java | 19 import android.content.ComponentName; 35 public List<ChooserTarget> onGetChooserTargets(ComponentName targetActivityName, 37 ComponentName componentName = new ComponentName(getPackageName(), 55 componentName,
|
/development/samples/browseable/DirectShare/src/com.example.android.directshare/ |
SampleChooserTargetService.java | 19 import android.content.ComponentName; 35 public List<ChooserTarget> onGetChooserTargets(ComponentName targetActivityName, 37 ComponentName componentName = new ComponentName(getPackageName(), 55 componentName,
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/dream/ |
DreamBackend.java | 19 import android.content.ComponentName; 55 public ComponentName componentName; 56 public ComponentName settingsComponentName; 64 sb.append(',').append(componentName); 93 ComponentName activeDream = getActiveDream(); 105 dreamInfo.componentName = getDreamComponentName(resolveInfo); 106 dreamInfo.isActive = dreamInfo.componentName.equals(activeDream); 114 public ComponentName getDefaultDream() { 126 ComponentName cn = getActiveDream() [all...] |
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowIntent.java | 3 import android.content.ComponentName; 31 private ComponentName componentName; 40 componentName = new ComponentName(packageContext, cls); 57 componentName = other.componentName; 151 componentName = new ComponentName(packageName, className); 162 componentName = new ComponentName(packageContext.getPackageName(), className) [all...] |
/frameworks/base/core/java/android/app/ |
IServiceConnection.aidl | 20 import android.content.ComponentName; 24 void connected(in ComponentName name, IBinder service);
|
/frameworks/base/core/java/android/print/ |
IPrintSpoolerClient.aidl | 19 import android.content.ComponentName; 30 void onAllPrintJobsForServiceHandled(in ComponentName printService);
|
/frameworks/base/core/java/android/service/chooser/ |
IChooserTargetService.aidl | 19 import android.content.ComponentName; 28 void getChooserTargets(in ComponentName targetComponentName,
|
/frameworks/base/core/java/android/service/vr/ |
IVrListener.aidl | 19 import android.content.ComponentName; 23 void focusedActivityChanged(in ComponentName component);
|
/frameworks/base/docs/html-intl/intl/ja/training/monitoring-device-state/ |
manifest-receivers.jd | 40 <pre>ComponentName receiver = new ComponentName(context, myReceiver.class);
|
/frameworks/base/docs/html-intl/intl/zh-cn/training/monitoring-device-state/ |
manifest-receivers.jd | 40 <pre>ComponentName receiver = new ComponentName(context, myReceiver.class);
|
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
ServiceIntentSender.java | 19 import android.content.ComponentName; 35 intent.setComponent(new ComponentName(mContext, MtpDocumentsService.class));
|
/frameworks/base/telecomm/java/com/android/internal/telecom/ |
RemoteServiceCallback.aidl | 19 import android.content.ComponentName; 28 void onResult(in List<ComponentName> components, in List<IBinder> callServices);
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/ |
ThirdPartyWallpaperPickerListAdapter.java | 19 import android.content.ComponentName; 54 final ComponentName itemComponentName = new ComponentName( 80 final ComponentName[] imageActivities = new ComponentName[imagePickerActivities.size()]; 83 imageActivities[i] = new ComponentName(activityInfo.packageName, activityInfo.name); 88 final ComponentName itemComponentName = 89 new ComponentName(info.activityInfo.packageName, info.activityInfo.name);
|