Home
last modified time | relevance | path

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

12345678910>>...16

/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/
H A DSelectionItemTest.kt24 componentName = ComponentName("pkg", "cls"),
43 val componentName = ComponentName("pkg", "cls") regex
50 componentName = componentName,
54 assertThat(selectionItem.matches(SelectedItem.PanelItem("name", componentName))).isTrue()
59 val componentName = ComponentName("pkg", "cls") regex
66 componentName = componentName,
75 val componentName = ComponentName("pkg", "cls") regex
79 SelectedItem.StructureItem(StructureInfo(componentName, structureName, emptyList()))
86 componentName = componentName,
95 val componentName = ComponentName("pkg", "cls") regex
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/controller/
H A DControlsControllerImpl.kt179 it.componentName
267 componentName: ComponentName,
288 componentName,
397 componentName,
446 componentName: ComponentName,
456 componentName.hashCode(),
489 componentName: ComponentName,
546 componentName: ComponentName,
563 componentName: ComponentName,
682 componentName: ComponentName,
[all …]
H A DControlsController.kt55 componentName: ComponentName,
83 fun action(componentName: ComponentName, controlInfo: ControlInfo, action: ControlAction)
92 fun refreshStatus(componentName: ComponentName, control: Control)
103 componentName: ComponentName,
142 fun getFavoritesForComponent(componentName: ComponentName): List<StructureInfo>
152 componentName: ComponentName,
163 componentName: ComponentName,
173 fun removeFavorites(componentName: ComponentName): Boolean
193 fun countFavoritesForComponent(componentName: ComponentName): Int
206 fun bindComponentForPanel(componentName: ComponentName)
/aosp14/frameworks/base/telecomm/java/android/telecom/
H A DRemoteConnectionManager.java40 ComponentName componentName, in addConnectionService() argument
42 if (!mRemoteConnectionServices.containsKey(componentName)) { in addConnectionService()
47 mRemoteConnectionServices.put(componentName, remoteConnectionService); in addConnectionService()
50 "error when addConnectionService of %s: %s", componentName, in addConnectionService()
65 ComponentName componentName = request.getAccountHandle().getComponentName(); in createRemoteConnection() local
66 if (!mRemoteConnectionServices.containsKey(componentName)) { in createRemoteConnection()
68 + componentName); in createRemoteConnection()
71 RemoteConnectionService remoteService = mRemoteConnectionServices.get(componentName); in createRemoteConnection()
96 ComponentName componentName = request.getAccountHandle().getComponentName(); in createRemoteConference() local
97 if (!mRemoteConnectionServices.containsKey(componentName)) { in createRemoteConference()
[all …]
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
H A DDefaultAppInfo.java39 public final ComponentName componentName; field in DefaultAppInfo
60 componentName = cn; in DefaultAppInfo()
71 componentName = null; in DefaultAppInfo()
77 if (componentName != null) { in loadLabel()
84 componentName.getPackageName(), 0, userId); in loadLabel()
105 if (componentName != null) { in loadIcon()
109 componentName.getPackageName(), 0, userId); in loadIcon()
134 if (componentName != null) { in getKey()
135 return componentName.flattenToString(); in getKey()
146 componentName, 0, userId); in getComponentInfo()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/
H A DControlsListingControllerImplTest.kt293 componentName,
308 componentName,
325 componentName,
344 componentName,
367 componentName,
393 componentName,
420 componentName,
447 componentName,
582 assertThat(services[0].serviceInfo.componentName).isEqualTo(componentName)
612 assertThat(services[0].serviceInfo.componentName).isEqualTo(componentName)
[all …]
/aosp14/frameworks/base/core/java/android/content/pm/
H A DDataLoaderParams.java41 public static final @NonNull DataLoaderParams forStreaming(@NonNull ComponentName componentName, in forStreaming() argument
43 return new DataLoaderParams(DataLoaderType.STREAMING, componentName, arguments); in forStreaming()
56 @NonNull ComponentName componentName, @NonNull String arguments) { in forIncremental()
57 return new DataLoaderParams(DataLoaderType.INCREMENTAL, componentName, arguments); in forIncremental()
61 public DataLoaderParams(@NonNull @DataLoaderType int type, @NonNull ComponentName componentName, in DataLoaderParams() argument
65 data.packageName = componentName.getPackageName(); in DataLoaderParams()
66 data.className = componentName.getClassName(); in DataLoaderParams()
H A DActivityPresentationInfo.java31 public final ComponentName componentName; field in ActivityPresentationInfo
34 @NonNull ComponentName componentName) { in ActivityPresentationInfo() argument
37 this.componentName = componentName; in ActivityPresentationInfo()
/aosp14/frameworks/base/services/credentials/java/com/android/server/credentials/
H A DClearRequestSession.java81 ComponentName componentName, ProviderSession.CredentialsSource source) { in onProviderStatusChanged() argument
85 onProviderTerminated(componentName); in onProviderStatusChanged()
88 onProviderResponseComplete(componentName); in onProviderStatusChanged()
94 ComponentName componentName, in onFinalResponseReceived() argument
97 mRequestSessionMetric.updateMetricsOnResponseReceived(mProviders, componentName, in onFinalResponseReceived()
98 isPrimaryProviderViaProviderInfo(componentName)); in onFinalResponseReceived()
102 protected void onProviderResponseComplete(ComponentName componentName) { in onProviderResponseComplete() argument
104 onFinalResponseReceived(componentName, null); in onProviderResponseComplete()
108 protected void onProviderTerminated(ComponentName componentName) { in onProviderTerminated() argument
131 public void onFinalErrorReceived(ComponentName componentName, String errorType, in onFinalErrorReceived() argument
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/
H A DControlsServiceInfo.kt45 serviceInfo.componentName
53 if (unflatenned != null && unflatenned.packageName == componentName.packageName) {
81 if (componentName.packageName !in validPackages && !allowAllApps) return
114 return when (mPm.getComponentEnabledSetting(activityInfo.componentName)) {
124 return componentName?.let {
125 val appInfo = mPm.getApplicationInfoAsUser(componentName.packageName, 0, userId)
135 componentName?.packageName
146 componentName == other.componentName &&
151 return Objects.hash(userId, componentName, panelActivity)
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
H A DTileServiceRequestController.kt65 componentName: ComponentName,
71 requestTileAdd(componentName, appName, label, icon) {
95 private fun addTile(componentName: ComponentName) {
96 qsHost.addTile(componentName, true)
101 componentName: ComponentName,
108 val packageName = componentName.packageName
109 if (isTileAlreadyAdded(componentName)) {
116 addTile(componentName)
159 private fun isTileAlreadyAdded(componentName: ComponentName): Boolean {
160 val spec = CustomTile.toSpec(componentName)
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/data/repository/
H A DCustomTileAddedRepository.kt34 fun isTileAdded(componentName: ComponentName, userId: Int): Boolean
40 fun setTileAdded(componentName: ComponentName, userId: Int, added: Boolean)
48 override fun isTileAdded(componentName: ComponentName, userId: Int): Boolean {
51 .getBoolean(componentName.flattenToString(), false)
54 override fun setTileAdded(componentName: ComponentName, userId: Int, added: Boolean) {
58 .putBoolean(componentName.flattenToString(), added)
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/
H A DControlsProviderLifecycleManagerTest.kt103 componentName,
117 assertTrue(context.isBound(componentName))
124 assertTrue(context.isBound(componentName))
142 if (component == componentName) {
156 componentName,
184 assertTrue(context.isBound(componentName))
253 componentName,
292 componentName,
319 componentName,
347 componentName,
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/statusbar/
H A DTileRequestTracker.java103 boolean shouldBeDenied(int userId, ComponentName componentName) { in shouldBeDenied() argument
105 return mTrackingMap.getOrDefault(userId, componentName, 0) >= MAX_NUM_DENIALS; in shouldBeDenied()
112 void addDenial(int userId, ComponentName componentName) { in addDenial() argument
114 int current = mTrackingMap.getOrDefault(userId, componentName, 0); in addDenial()
115 mTrackingMap.add(userId, componentName, current + 1); in addDenial()
122 void resetRequests(int userId, ComponentName componentName) { in resetRequests() argument
124 mTrackingMap.delete(userId, componentName); in resetRequests()
132 mTrackingMap.forEach((user, componentName, value) -> { in dump()
133 pw.println("user=" + user + ", " + componentName.toShortString() + ": " + value); in dump()
/aosp14/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DPolicyWarningUIController.java231 if (TextUtils.isEmpty(action) || componentName == null) { in onReceive()
239 if (trySendNotification(userId, componentName)) { in onReceive()
241 componentName.getPackageName(), in onReceive()
246 if (tryLaunchSettings(userId, componentName)) { in onReceive()
248 componentName.getPackageName(), in onReceive()
254 mSentA11yServiceNotification.remove(componentName); in onReceive()
255 onNotificationCanceled(userId, componentName); in onReceive()
257 mSentA11yServiceNotification.remove(componentName); in onReceive()
258 onNotificationCanceled(userId, componentName); in onReceive()
288 if (componentName.flattenToShortString().equals( in trySendNotification()
[all …]
H A DAccessibilityUserState.java573 ComponentName componentName = it.next(); in dump() local
574 pw.append(componentName.toShortString()); in dump()
576 componentName = it.next(); in dump()
585 ComponentName componentName = it.next(); in dump() local
588 componentName = it.next(); in dump()
597 ComponentName componentName = it.next(); in dump() local
600 componentName = it.next(); in dump()
771 if (componentName == null) { in isShortcutTargetInstalledLocked()
775 .containsKey(componentName)) { in isShortcutTargetInstalledLocked()
799 ComponentName componentName; in removeShortcutTargetLocked()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/resume/
H A DResumeMediaBrowserLogger.kt30 fun logConnection(componentName: ComponentName, reason: String) =
35 str1 = componentName.toShortString()
42 fun logDisconnect(componentName: ComponentName) =
46 { str1 = componentName.toShortString() },
63 fun logSessionDestroyed(isBrowserConnected: Boolean, componentName: ComponentName) =
69 str1 = componentName.toShortString()
/aosp14/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/pipeline/data/repository/
H A DFakeCustomTileAddedRepository.kt25 override fun isTileAdded(componentName: ComponentName, userId: Int): Boolean {
26 return (userId to componentName) in tileAddedRegistry
29 override fun setTileAdded(componentName: ComponentName, userId: Int, added: Boolean) {
31 tileAddedRegistry.add(userId to componentName)
33 tileAddedRegistry.remove(userId to componentName)
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/util/
H A DDumpUtilsTest.java45 private static ComponentName cn(String componentName) { in cn() argument
46 if (componentName == null) { in cn()
49 return ComponentName.unflattenFromString(componentName); in cn()
52 private static ComponentName.WithComponentName wcn(String componentName) { in wcn() argument
53 if (componentName == null) { in wcn()
56 return () -> cn(componentName); in wcn()
106 for (final ComponentName componentName : CRITICAL_SECTION_COMPONENTS) { in testIsPlatformCriticalPackage()
107 assertTrue(isPlatformCriticalPackage(() -> componentName)); in testIsPlatformCriticalPackage()
108 assertTrue(isPlatformPackage(componentName)); in testIsPlatformCriticalPackage()
119 for (final ComponentName componentName : CRITICAL_SECTION_COMPONENTS) { in testIsPlatformNonCriticalPackage()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
H A DControlsUiControllerImpl.kt185 it.componentName,
331 showAppRemovalDialog(componentName, appName)
344 componentName) {
371 putExtra(Intent.EXTRA_COMPONENT_NAME, si.componentName)
468 private fun createPanelView(componentName: ComponentName) {
475 .setComponent(componentName)
727 it.structure == item.structure && it.componentName == item.componentName
789 val cws = ControlWithState(componentName, it.ci, c)
801 val key = ControlKey(componentName, controlId)
842 val componentName: ComponentName,
[all …]
H A DControlsUiController.kt54 fun onRefreshState(componentName: ComponentName, controls: List<Control>)
56 componentName: ComponentName,
75 abstract val componentName: ComponentName
83 override val componentName: ComponentName = structure.componentName
94 override val componentName:
/aosp14/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
H A DEnforcingAdmin.java85 @NonNull ComponentName componentName, int userId) { in createEnterpriseEnforcingAdmin()
86 Objects.requireNonNull(componentName); in createEnterpriseEnforcingAdmin()
88 componentName.getPackageName(), componentName, Set.of(DPC_AUTHORITY), userId, in createEnterpriseEnforcingAdmin()
93 @NonNull ComponentName componentName, int userId, ActiveAdmin activeAdmin) { in createEnterpriseEnforcingAdmin()
94 Objects.requireNonNull(componentName); in createEnterpriseEnforcingAdmin()
96 componentName.getPackageName(), componentName, Set.of(DPC_AUTHORITY), userId, in createEnterpriseEnforcingAdmin()
102 Objects.requireNonNull(componentName); in createDeviceAdminEnforcingAdmin()
104 componentName.getPackageName(), componentName, Set.of(DEVICE_ADMIN_AUTHORITY), in createDeviceAdminEnforcingAdmin()
130 String packageName, @Nullable ComponentName componentName, Set<String> authorities, in EnforcingAdmin() argument
138 mComponentName = componentName; in EnforcingAdmin()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/media/
H A DMediaButtonReceiverHolder.java94 ComponentName componentName = ComponentName.unflattenFromString(tokens[0]); in unflattenFromString() local
95 if (componentName == null) { in unflattenFromString()
102 : getComponentType(context, componentName); in unflattenFromString()
124 ComponentName componentName = getComponentName(pendingIntent, componentType); in create() local
125 if (componentName != null) { in create()
143 ComponentName componentName, @ComponentType int componentType) { in MediaButtonReceiverHolder() argument
146 mComponentName = componentName; in MediaButtonReceiverHolder()
147 mPackageName = componentName.getPackageName(); in MediaButtonReceiverHolder()
303 if (componentName == null) { in getComponentType()
308 ActivityInfo activityInfo = pm.getActivityInfo(componentName, in getComponentType()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/app/
H A DGameTaskInfoProvider.java74 GameTaskInfo get(int taskId, @NonNull ComponentName componentName) { in get() argument
78 if (cachedTaskInfo.mComponentName.equals(componentName)) { in get()
81 + " does not match " + componentName); in get()
88 return generateGameInfo(taskId, componentName); in get()
114 private GameTaskInfo generateGameInfo(int taskId, @NonNull ComponentName componentName) { in generateGameInfo() argument
116 mGameClassifier.isGame(componentName.getPackageName(), mUserHandle), componentName); in generateGameInfo()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/pipeline/shared/
H A DTileSpecTest.kt43 val componentName = ComponentName("test_pkg", "test_cls") regex
44 val spec = CUSTOM_TILE_PREFIX + componentName.flattenToString() + ")"
50 assertThat((tileSpec as TileSpec.CustomTileSpec).componentName).isEqualTo(componentName)
73 val componentName = ComponentName("test_pkg", "test_cls") regex
74 val spec = CUSTOM_TILE_PREFIX + componentName.flattenToString()

12345678910>>...16