Home
last modified time | relevance | path

Searched refs:componentName (Results 1 – 25 of 231) sorted by relevance

12345678910

/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DDumpUtilsTest.java36 private static ComponentName cn(String componentName) { in cn() argument
37 if (componentName == null) { in cn()
40 return ComponentName.unflattenFromString(componentName); in cn()
43 private static ComponentName.WithComponentName wcn(String componentName) { in wcn() argument
44 if (componentName == null) { in wcn()
47 return () -> cn(componentName); in wcn()
97 for (final ComponentName componentName : CRITICAL_SECTION_COMPONENTS) { in testIsPlatformCriticalPackage()
98 assertTrue(isPlatformCriticalPackage(() -> componentName)); in testIsPlatformCriticalPackage()
99 assertTrue(isPlatformPackage(componentName)); in testIsPlatformCriticalPackage()
110 for (final ComponentName componentName : CRITICAL_SECTION_COMPONENTS) { in testIsPlatformNonCriticalPackage()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DDefaultAppInfo.java38 public final ComponentName componentName; field in DefaultAppInfo
59 componentName = cn; in DefaultAppInfo()
70 componentName = null; in DefaultAppInfo()
76 if (componentName != null) { in loadLabel()
83 componentName.getPackageName(), 0, userId); in loadLabel()
100 if (componentName != null) { in loadIcon()
104 componentName.getPackageName(), 0, userId); in loadIcon()
129 if (componentName != null) { in getKey()
130 return componentName.flattenToString(); in getKey()
141 componentName, 0, userId); in getComponentInfo()
[all …]
/frameworks/base/telecomm/java/android/telecom/
DRemoteConnectionManager.java40 ComponentName componentName, in addConnectionService() argument
42 if (!mRemoteConnectionServices.containsKey(componentName)) { in addConnectionService()
47 mRemoteConnectionServices.put(componentName, remoteConnectionService); in addConnectionService()
62 ComponentName componentName = request.getAccountHandle().getComponentName(); in createRemoteConnection() local
63 if (!mRemoteConnectionServices.containsKey(componentName)) { in createRemoteConnection()
65 + componentName); in createRemoteConnection()
68 RemoteConnectionService remoteService = mRemoteConnectionServices.get(componentName); in createRemoteConnection()
DPhoneAccountHandle.java53 @NonNull ComponentName componentName, in PhoneAccountHandle()
55 this(componentName, id, Process.myUserHandle()); in PhoneAccountHandle()
59 @NonNull ComponentName componentName, in PhoneAccountHandle()
62 checkParameters(componentName, userHandle); in PhoneAccountHandle()
63 mComponentName = componentName; in PhoneAccountHandle()
149 private void checkParameters(ComponentName componentName, UserHandle userHandle) { in checkParameters() argument
150 if(componentName == null) { in checkParameters()
/frameworks/av/media/codec2/sfplugin/
DCCodecBuffers.h41 CCodecBuffers(const char *componentName, const char *name = "Buffers")
42 : mComponentName(componentName), in mComponentName() argument
43 mChannelName(std::string(componentName) + ":" + name), in mComponentName()
92 InputBuffers(const char *componentName, const char *name = "Input[]")
93 : CCodecBuffers(componentName, name) { } in CCodecBuffers() argument
158 OutputBuffers(const char *componentName, const char *name = "Output")
159 : CCodecBuffers(componentName, name) { } in CCodecBuffers() argument
500 InputBuffersArray(const char *componentName, const char *name = "Input[N]")
501 : InputBuffers(componentName, name) { } in InputBuffers() argument
551 LinearInputBuffers(const char *componentName, const char *name = "1D-Input")
[all …]
/frameworks/base/core/java/android/content/pm/
DActivityPresentationInfo.java31 public final ComponentName componentName; field in ActivityPresentationInfo
34 @NonNull ComponentName componentName) { in ActivityPresentationInfo() argument
37 this.componentName = componentName; in ActivityPresentationInfo()
/frameworks/av/media/libstagefright/
DMediaCodecList.cpp316 bool MediaCodecList::isSoftwareCodec(const AString &componentName) { in isSoftwareCodec() argument
317 return componentName.startsWithIgnoreCase("OMX.google.") in isSoftwareCodec()
318 || componentName.startsWithIgnoreCase("c2.android.") in isSoftwareCodec()
319 || (!componentName.startsWithIgnoreCase("OMX.") in isSoftwareCodec()
320 && !componentName.startsWithIgnoreCase("c2.")); in isSoftwareCodec()
368 AString componentName = info->getCodecName(); in findMatchingCodecs() local
370 if ((flags & kHardwareCodecsOnly) && isSoftwareCodec(componentName)) { in findMatchingCodecs()
371 ALOGV("skipping SW codec '%s'", componentName.c_str()); in findMatchingCodecs()
373 matches->push(componentName); in findMatchingCodecs()
374 ALOGV("matching '%s'", componentName.c_str()); in findMatchingCodecs()
DSimpleDecodingSource.cpp71 auto configure = [=](const sp<MediaCodec> &codec, const AString &componentName) in Create()
74 ALOGI("Successfully allocated codec '%s'", componentName.c_str()); in Create()
88 ALOGD("Failed to configure codec '%s'", componentName.c_str()); in Create()
100 const AString &componentName = matchingCodecs[i]; in Create() local
101 if (desiredCodec != NULL && componentName.compare(desiredCodec)) { in Create()
105 ALOGV("Attempting to allocate codec '%s'", componentName.c_str()); in Create()
107 codec = MediaCodec::CreateByComponentName(looper, componentName); in Create()
108 sp<SimpleDecodingSource> res = configure(codec, componentName); in Create()
/frameworks/base/services/autofill/java/com/android/server/autofill/
DAutofillManagerServiceImpl.java233 int addClientLocked(IAutoFillManagerClient client, ComponentName componentName) { in addClientLocked() argument
243 && isWhitelistedForAugmentedAutofillLocked(componentName)) { in addClientLocked()
292 @NonNull ComponentName componentName, boolean compatMode, in startSessionLocked() argument
302 if (!forAugmentedAutofillOnly && isAutofillDisabledLocked(componentName)) { in startSessionLocked()
305 if (isWhitelistedForAugmentedAutofillLocked(componentName)) { in startSessionLocked()
307 Slog.d(TAG, "startSession(" + componentName + "): disabled by service but " in startSessionLocked()
314 Slog.d(TAG, "startSession(" + componentName + "): ignored because " in startSessionLocked()
324 "Could not notify " + componentName + " that it's disabled: " + e); in startSessionLocked()
340 appCallbackToken, hasCallback, componentName, compatMode, in startSessionLocked()
349 "id=" + newSession.id + " uid=" + uid + " a=" + componentName.toShortString() in startSessionLocked()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DPreviewInflater.java61 public View inflatePreviewFromService(ComponentName componentName) { in inflatePreviewFromService() argument
62 WidgetInfo info = getWidgetInfoFromService(componentName); in inflatePreviewFromService()
94 private WidgetInfo getWidgetInfoFromService(ComponentName componentName) { in getWidgetInfoFromService() argument
99 componentName, PackageManager.GET_META_DATA).metaData; in getWidgetInfoFromService()
100 return getWidgetInfoFromMetaData(componentName.getPackageName(), metaData); in getWidgetInfoFromService()
102 Log.w(TAG, "Failed to load preview; " + componentName.flattenToShortString() in getWidgetInfoFromService()
/frameworks/base/services/core/java/com/android/server/policy/role/
DLegacyRoleResolutionPolicy.java74 ComponentName componentName = ComponentName.unflattenFromString(setting); in getRoleHolders() local
75 packageName = componentName != null ? componentName.getPackageName() : null; in getRoleHolders()
129 ComponentName componentName = packageManager.getHomeActivities(resolveInfos); in getRoleHolders() local
130 String packageName = componentName != null ? componentName.getPackageName() : null; in getRoleHolders()
/frameworks/base/core/java/com/android/internal/app/
DResolverRankerServiceResolverComparator.java257 public void updateModel(ComponentName componentName) { in updateModel() argument
262 .indexOf(componentName); in updateModel()
264 final float selectedProbability = getScore(componentName); in updateModel()
275 Log.d(TAG, "Selected a unknown component: " + componentName); in updateModel()
348 ComponentName componentName = new ComponentName( in resolveRankerService() local
352 final String perm = mPm.getServiceInfo(componentName, 0).permission; in resolveRankerService()
354 Log.w(TAG, "ResolverRankerService " + componentName + " does not require" in resolveRankerService()
359 + " to the <service> tag for " + componentName in resolveRankerService()
366 Log.w(TAG, "ResolverRankerService " + componentName + " does not hold" in resolveRankerService()
373 Log.e(TAG, "Could not look up service " + componentName in resolveRankerService()
[all …]
DAppPredictionServiceResolverComparator.java163 void updateModel(ComponentName componentName) { in updateModel() argument
165 mResolverRankerService.updateModel(componentName); in updateModel()
171 new AppTargetId(componentName.toString()), in updateModel()
172 componentName.getPackageName(), mUser) in updateModel()
173 .setClassName(componentName.getClassName()).build(), in updateModel()
/frameworks/base/services/core/java/com/android/server/utils/
DManagedApplicationService.java244 public boolean disconnectIfNotMatching(final ComponentName componentName, final int userId) { in disconnectIfNotMatching() argument
245 if (matches(componentName, userId)) { in disconnectIfNotMatching()
312 public void onBindingDied(ComponentName componentName) { in connect()
314 Slog.w(TAG, "Service binding died: " + componentName); in connect()
330 public void onServiceConnected(ComponentName componentName, IBinder iBinder) { in connect()
332 Slog.i(TAG, "Service connected: " + componentName); in connect()
353 Slog.w(TAG, "Invalid binder from " + componentName); in connect()
373 public void onServiceDisconnected(ComponentName componentName) { in connect()
375 Slog.w(TAG, "Service disconnected: " + componentName); in connect()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DAppInfo.java29 public AppInfo(ComponentName componentName, UserHandle user) { in AppInfo() argument
30 if (componentName == null || user == null) throw new IllegalArgumentException(); in AppInfo()
31 mComponentName = componentName; in AppInfo()
/frameworks/base/services/core/java/com/android/server/infra/
DAbstractPerUserSystemService.java168 final String componentName = getComponentNameLocked(); in updateServiceInfoLocked() local
169 if (!TextUtils.isEmpty(componentName)) { in updateServiceInfoLocked()
171 serviceComponent = ComponentName.unflattenFromString(componentName); in updateServiceInfoLocked()
175 Slog.e(mTag, "Bad service name: " + componentName); in updateServiceInfoLocked()
178 Slog.e(mTag, "Error getting service info for '" + componentName + "': " + e); in updateServiceInfoLocked()
192 Slog.d(mTag, "Reset component for user " + mUserId + ":" + componentName); in updateServiceInfoLocked()
196 Slog.e(mTag, "Bad ServiceInfo for '" + componentName + "': " + e); in updateServiceInfoLocked()
/frameworks/base/core/java/android/service/contentcapture/
DActivityEvent.java74 public ActivityEvent(@NonNull ComponentName componentName, @ActivityEventType int type) { in ActivityEvent() argument
75 mComponentName = componentName; in ActivityEvent()
138 final ComponentName componentName = parcel.readParcelable(null);
140 return new ActivityEvent(componentName, eventType);
/frameworks/base/core/tests/coretests/src/android/view/contentcapture/
DContentCaptureContextTest.java37 final ComponentName componentName = new ComponentName("component", "name"); in testConstructorAdditionalFlags() local
39 componentName, /* taskId= */ 666, /* displayId= */ 42, /* flags= */ 1); in testConstructorAdditionalFlags()
43 assertThat(newCtx.getActivityComponent()).isEqualTo(componentName); in testConstructorAdditionalFlags()
/frameworks/base/services/contentcapture/java/com/android/server/contentcapture/
DContentCapturePerUserService.java252 final ComponentName componentName = activityPresentationInfo.componentName; in startSessionLocked() local
254 componentName) || mMaster.mGlobalContentCaptureOptions.isWhitelisted(mUserId, in startSessionLocked()
255 componentName.getPackageName()); in startSessionLocked()
261 + " a=" + ComponentName.flattenToShortString(componentName) in startSessionLocked()
278 componentName, /* isChildSession= */ false); in startSessionLocked()
293 Slog.d(TAG, "startSession(" + componentName + "): package or component " in startSessionLocked()
302 componentName, /* isChildSession= */ false); in startSessionLocked()
316 serviceComponentName, componentName, /* isChildSession= */ false); in startSessionLocked()
333 componentName, /* isChildSession= */ false); in startSessionLocked()
341 activityToken, this, componentName, clientReceiver, taskId, displayId, sessionId, in startSessionLocked()
[all …]
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/plugins/
DPluginManagerImpl.java228 ComponentName componentName = ComponentName.unflattenFromString(pkg); in onReceive() local
266 && componentName != null) { in onReceive()
268 getPluginEnabler().getDisableReason(componentName); in onReceive()
273 + "updated: " + componentName.flattenToShortString()); in onReceive()
274 getPluginEnabler().setEnabled(componentName); in onReceive()
357 ComponentName componentName = ComponentName.unflattenFromString(componentNameOrPackage); in isPluginPackageWhitelisted() local
358 if (componentName != null) { in isPluginPackageWhitelisted()
359 if (componentName.getPackageName().equals(packageName)) { in isPluginPackageWhitelisted()
371 ComponentName componentName = ComponentName.unflattenFromString(componentNameOrPackage); in isPluginWhitelisted() local
372 if (componentName != null) { in isPluginWhitelisted()
[all …]
/frameworks/base/services/core/java/com/android/server/policy/
DShortcutManager.java140 ComponentName componentName = new ComponentName(packageName, className); in loadShortcuts() local
142 info = packageManager.getActivityInfo(componentName, in loadShortcuts()
149 componentName = new ComponentName(packages[0], className); in loadShortcuts()
151 info = packageManager.getActivityInfo(componentName, in loadShortcuts()
164 intent.setComponent(componentName); in loadShortcuts()
/frameworks/base/packages/SystemUI/src/com/android/systemui/plugins/
DPluginEnablerImpl.java66 public @DisableReason int getDisableReason(ComponentName componentName) { in getDisableReason() argument
67 if (isEnabled(componentName)) { in getDisableReason()
70 return mAutoDisabledPrefs.getInt(componentName.flattenToString(), DISABLED_MANUALLY); in getDisableReason()
/frameworks/av/media/libstagefright/omx/1.0/
DOmx.cpp56 char componentName[256]; in listNodes() local
59 componentName, sizeof(componentName), index) == OMX_ErrorNone; in listNodes()
63 info.mName = componentName; in listNodes()
66 mStore->getRolesOfComponent(componentName, &roles); in listNodes()
/frameworks/av/media/libstagefright/omx/tests/
DOMXHarness.h68 const char *componentName, const char *componentRole);
71 const char *componentName, const char *componentRole);
74 const char *componentName, const char *componentRole);
DOMXHarness.cpp291 const char *componentName, const char *componentRole) { in testStateTransitions() argument
292 if (strncmp(componentName, "OMX.", 4)) { in testStateTransitions()
306 status_t err = mOMX->allocateNode(componentName, observer, &mOMXNode); in testStateTransitions()
577 const char *componentName, const char *componentRole) { in testSeek() argument
616 source, 0 /* flags */, NULL /* nativeWindow */, componentName); in testSeek()
759 const char *componentName, const char *componentRole) { in test() argument
760 printf("testing %s [%s] ... ", componentName, componentRole); in test()
761 ALOGI("testing %s [%s].", componentName, componentRole); in test()
763 status_t err1 = testStateTransitions(componentName, componentRole); in test()
764 status_t err2 = testSeek(componentName, componentRole); in test()
[all …]

12345678910