Home
last modified time | relevance | path

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

12345678910>>...19

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/
DSelectionItemTest.kt24 componentName = ComponentName("pkg", "cls"), in testMatchBadComponentName_false()
43 val componentName = ComponentName("pkg", "cls") in testMatchSameComponentName_panelSelected_true() constant
50 componentName = componentName, in testMatchSameComponentName_panelSelected_true()
54 assertThat(selectionItem.matches(SelectedItem.PanelItem("name", componentName))).isTrue() in testMatchSameComponentName_panelSelected_true()
59 val componentName = ComponentName("pkg", "cls") in testMatchSameComponentName_panelSelection_true() constant
66 componentName = componentName, in testMatchSameComponentName_panelSelection_true()
70 assertThat(selectionItem.matches(SelectedItem.PanelItem("name", componentName))).isTrue() in testMatchSameComponentName_panelSelection_true()
75 val componentName = ComponentName("pkg", "cls") in testMatchSameComponentSameStructure_true() constant
79 SelectedItem.StructureItem(StructureInfo(componentName, structureName, emptyList())) in testMatchSameComponentSameStructure_true()
86 componentName = componentName, in testMatchSameComponentSameStructure_true()
[all …]
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/util/
DComponentKey.java29 public final ComponentName componentName; field in ComponentKey
34 public ComponentKey(ComponentName componentName, UserHandle user) { in ComponentKey() argument
35 if (componentName == null || user == null) { in ComponentKey()
38 this.componentName = componentName; in ComponentKey()
40 mHashCode = Arrays.hashCode(new Object[] {componentName, user}); in ComponentKey()
52 return other.componentName.equals(componentName) && other.user.equals(user); in equals()
60 return componentName.flattenToString() + "#" + user.hashCode(); in toString()
73 ComponentName componentName = ComponentName.unflattenFromString(str.substring(0, sep)); in fromString() local
74 if (componentName == null) { in fromString()
78 return new ComponentKey(componentName, in fromString()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/controller/
DControlsControllerImpl.kt177 val serviceInfoSet = serviceInfos.map(ControlsServiceInfo::componentName).toSet() in <lambda>()
179 it.componentName in <lambda>()
255 Favorites.getAllStructures().map { it.componentName.packageName }.toSet()) in <lambda>()
267 componentName: ComponentName, in <lambda>()
277 { loadForComponent(componentName, dataCallback, cancelWrapper) }, in <lambda>()
288 componentName, in <lambda>()
293 .getControlsForComponent(componentName).map { it.controlId } in <lambda>()
295 val changed = Favorites.updateControls(componentName, controls) in <lambda>()
303 componentName, in <lambda>()
308 Favorites.getStructuresForComponent(componentName).forEach { st -> in <lambda>()
[all …]
DControlsController.kt55 componentName: ComponentName, in loadForComponent()
83 fun action(componentName: ComponentName, controlInfo: ControlInfo, action: ControlAction) in loadForComponent()
92 fun refreshStatus(componentName: ComponentName, control: Control) in loadForComponent()
103 componentName: ComponentName, in loadForComponent()
142 fun getFavoritesForComponent(componentName: ComponentName): List<StructureInfo> in loadForComponent()
152 componentName: ComponentName, in loadForComponent()
163 componentName: ComponentName, in loadForComponent()
173 fun removeFavorites(componentName: ComponentName): Boolean in loadForComponent()
193 fun countFavoritesForComponent(componentName: ComponentName): Int in loadForComponent()
206 fun bindComponentForPanel(componentName: ComponentName) in loadForComponent()
/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()
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 …]
/frameworks/base/core/java/android/content/pm/
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()
DActivityPresentationInfo.java31 public final ComponentName componentName; field in ActivityPresentationInfo
34 @NonNull ComponentName componentName) { in ActivityPresentationInfo() argument
37 this.componentName = componentName; in ActivityPresentationInfo()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
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 …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/data/repository/
DCustomTileAddedRepository.kt34 fun isTileAdded(componentName: ComponentName, userId: Int): Boolean in isTileAdded()
40 fun setTileAdded(componentName: ComponentName, userId: Int, added: Boolean) in isTileAdded()
48 override fun isTileAdded(componentName: ComponentName, userId: Int): Boolean { in isTileAdded()
51 .getBoolean(componentName.flattenToString(), false) in isTileAdded()
54 override fun setTileAdded(componentName: ComponentName, userId: Int, added: Boolean) { in isTileAdded()
58 .putBoolean(componentName.flattenToString(), added) in isTileAdded()
/frameworks/base/services/credentials/java/com/android/server/credentials/
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
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/
DControlsListingControllerImplTest.kt94 private var componentName = ComponentName("pkg", "class1") variable
123 arrayOf(componentName.packageName) in setUp()
169 callback?.onServicesReloaded(listOf(ServiceInfo(componentName))) in testImmediateListingReload_doesNotCrash()
202 val list = listOf(ServiceInfo(componentName)) in testCallbackGetsList()
220 assertEquals(componentName.flattenToString(), captor.value[0].key) in testCallbackGetsList()
224 assertEquals(componentName.flattenToString(), captor.value[0].key) in testCallbackGetsList()
242 val serviceInfo = ServiceInfo(componentName) in testChangeUserSendsCorrectServiceUpdate()
282 val list = listOf(ServiceInfo(componentName)) in test_nullPanelActivity()
293 componentName, in testNoActivity_nullPanel()
308 componentName, in testActivityWithoutPermission_nullPanel()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/resume/
DResumeMediaBrowserLogger.kt30 fun logConnection(componentName: ComponentName, reason: String) = in logConnection()
35 str1 = componentName.toShortString() in logConnection()
42 fun logDisconnect(componentName: ComponentName) = in logDisconnect()
46 { str1 = componentName.toShortString() }, in logDisconnect()
63 fun logSessionDestroyed(isBrowserConnected: Boolean, componentName: ComponentName) = in logSessionDestroyed()
69 str1 = componentName.toShortString() in logSessionDestroyed()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/
DControlsServiceInfo.kt45 serviceInfo.componentName
53 if (unflatenned != null && unflatenned.packageName == componentName.packageName) {
81 if (componentName.packageName !in validPackages && !allowAllApps) return in resolvePanelActivity()
114 return when (mPm.getComponentEnabledSetting(activityInfo.componentName)) { in isComponentActuallyEnabled()
124 return componentName?.let { in loadLabel()
125 val appInfo = mPm.getApplicationInfoAsUser(componentName.packageName, 0, userId) in loadLabel()
135 componentName?.packageName in loadIcon()
146 componentName == other.componentName && in equals()
151 return Objects.hash(userId, componentName, panelActivity) in hashCode()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/pipeline/data/repository/
DFakeCustomTileAddedRepository.kt25 override fun isTileAdded(componentName: ComponentName, userId: Int): Boolean { in isTileAdded()
26 return (userId to componentName) in tileAddedRegistry in isTileAdded()
29 override fun setTileAdded(componentName: ComponentName, userId: Int, added: Boolean) { in setTileAdded()
31 tileAddedRegistry.add(userId to componentName) in setTileAdded()
33 tileAddedRegistry.remove(userId to componentName) in setTileAdded()
/frameworks/base/services/core/java/com/android/server/statusbar/
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() argument
133 pw.println("user=" + user + ", " + componentName.toShortString() + ": " + value); in dump()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DTileServiceRequestController.kt65 componentName: ComponentName, in requestAddTile()
71 requestTileAdd(componentName, appName, label, icon) { in requestAddTile()
95 private fun addTile(componentName: ComponentName) { in addTile()
96 qsHost.addTile(componentName, true) in addTile()
101 componentName: ComponentName, in requestTileAdd()
108 val packageName = componentName.packageName in requestTileAdd()
109 if (isTileAlreadyAdded(componentName)) { in requestTileAdd()
116 addTile(componentName) in requestTileAdd()
159 private fun isTileAlreadyAdded(componentName: ComponentName): Boolean { in isTileAlreadyAdded()
160 val spec = CustomTile.toSpec(componentName) in isTileAlreadyAdded()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/
DControlsProviderLifecycleManagerTest.kt76 private val componentName = ComponentName("test.pkg", "test.cls") constant
90 context.addMockService(componentName, service) in capture()
103 componentName, in capture()
117 assertTrue(context.isBound(componentName)) in testBindService()
124 assertTrue(context.isBound(componentName)) in testBindForPanel()
133 assertFalse(context.isBound(componentName)) in testUnbindPanelIsUnbound()
142 if (component == componentName) { in testNullBinding()
156 componentName, in testNullBinding()
174 assertFalse(context.isBound(componentName)) in testUnbindService()
184 assertTrue(context.isBound(componentName)) in testMaybeBindAndLoad()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DControlsUiController.kt54 fun onRefreshState(componentName: ComponentName, controls: List<Control>) in show()
56 componentName: ComponentName, in show()
75 abstract val componentName: ComponentName in show() constant in com.android.systemui.controls.ui.SelectedItem
83 override val componentName: ComponentName = structure.componentName in show() constant in com.android.systemui.controls.ui.SelectedItem.StructureItem
94 override val componentName: in show() constant in com.android.systemui.controls.ui.SelectedItem.PanelItem
DControlsUiControllerImpl.kt89 private data class ControlKey(val componentName: ComponentName, val controlId: String) in <lambda>() constant in com.android.systemui.controls.ui.ControlKey
185 it.componentName, in <lambda>()
187 if (it.componentName.packageName in authorizedPanels) { in <lambda>()
253 ControlWithState(selected.structure.componentName, it, null) in <lambda>()
255 ControlKey(selected.structure.componentName, it.ci.controlId) in <lambda>()
259 controlsController.get().bindComponentForPanel(selected.componentName) in <lambda>()
329 internal fun startRemovingApp(componentName: ComponentName, appName: CharSequence) { in <lambda>()
331 showAppRemovalDialog(componentName, appName) in <lambda>()
336 private fun showAppRemovalDialog(componentName: ComponentName, appName: CharSequence) { in <lambda>()
339 if (!shouldRemove || !controlsController.get().removeFavorites(componentName)) { in <lambda>()
[all …]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DPolicyWarningUIController.java229 final ComponentName componentName = intent.getParcelableExtra( in onReceive() local
231 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()
252 mNotificationManager.cancel(componentName.flattenToShortString(), in onReceive()
254 mSentA11yServiceNotification.remove(componentName); in onReceive()
255 onNotificationCanceled(userId, componentName); in onReceive()
257 mSentA11yServiceNotification.remove(componentName); in onReceive()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
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 …]
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
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()
100 static EnforcingAdmin createDeviceAdminEnforcingAdmin(ComponentName componentName, int userId, in createDeviceAdminEnforcingAdmin() argument
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
[all …]
/frameworks/base/services/core/java/com/android/server/app/
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()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/pipeline/shared/
DTileSpecTest.kt43 val componentName = ComponentName("test_pkg", "test_cls") in customTile() constant
44 val spec = CUSTOM_TILE_PREFIX + componentName.flattenToString() + ")" in customTile()
50 assertThat((tileSpec as TileSpec.CustomTileSpec).componentName).isEqualTo(componentName) in customTile()
73 val componentName = ComponentName("test_pkg", "test_cls") in customTileNotEndsWithParenthesis_invalid() constant
74 val spec = CUSTOM_TILE_PREFIX + componentName.flattenToString() in customTileNotEndsWithParenthesis_invalid()
/frameworks/base/services/core/java/com/android/server/media/
DMediaButtonReceiverHolder.java94 ComponentName componentName = ComponentName.unflattenFromString(tokens[0]); in unflattenFromString() local
95 if (componentName == null) { in unflattenFromString()
102 : getComponentType(context, componentName); in unflattenFromString()
103 return new MediaButtonReceiverHolder(userId, null, componentName, componentType); in unflattenFromString()
124 ComponentName componentName = getComponentName(pendingIntent, componentType); in create() local
125 if (componentName != null) { in create()
126 return new MediaButtonReceiverHolder(userId, pendingIntent, componentName, in create()
143 ComponentName componentName, @ComponentType int componentType) { in MediaButtonReceiverHolder() argument
146 mComponentName = componentName; in MediaButtonReceiverHolder()
147 mPackageName = componentName.getPackageName(); in MediaButtonReceiverHolder()
[all …]

12345678910>>...19