/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/ |
D | SelectionItemTest.kt | 24 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/base/packages/SystemUI/src/com/android/systemui/controls/controller/ |
D | ControlsControllerImpl.kt | 177 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 …]
|
D | ControlsController.kt | 55 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/libs/systemui/iconloaderlib/src/com/android/launcher3/util/ |
D | ComponentKey.java | 29 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/tests/utils/src/com/android/systemui/qs/tiles/impl/custom/data/repository/ |
D | FakeCustomTileDefaultsRepository.kt | 49 .mapNotNull { defaults[DefaultsKey(it.user, it.componentName)] } in <lambda>() 53 componentName: ComponentName, in <lambda>() 56 val request = DefaultsRequest(user, componentName, force) in <lambda>() 63 componentName: ComponentName, in <lambda>() 66 defaults[DefaultsKey(user, componentName)] = customTileDefaults in <lambda>() 69 fun removeDefaults(user: UserHandle, componentName: ComponentName) { in <lambda>() 70 defaults.remove(DefaultsKey(user, componentName)) in <lambda>() 75 val componentName: ComponentName, in <lambda>() constant in com.android.systemui.qs.tiles.impl.custom.data.repository.FakeCustomTileDefaultsRepository.DefaultsRequest 79 private data class DefaultsKey(val user: UserHandle, val componentName: ComponentName) in <lambda>() constant in com.android.systemui.qs.tiles.impl.custom.data.repository.FakeCustomTileDefaultsRepository.DefaultsKey
|
/frameworks/base/telecomm/java/android/telecom/ |
D | RemoteConnectionManager.java | 40 ComponentName componentName, in addConnectionService() argument 43 componentName, in addConnectionService() 52 componentName, in addConnectionService() 68 ComponentName componentName = request.getAccountHandle().getComponentName(); in createRemoteConnection() local 69 RemoteConnectionService remoteService = mRemoteConnectionServices.get(componentName); in createRemoteConnection() 72 + componentName); in createRemoteConnection() 96 ComponentName componentName = request.getAccountHandle().getComponentName(); in createRemoteConference() local 97 RemoteConnectionService remoteService = mRemoteConnectionServices.get(componentName); in createRemoteConference() 100 + componentName); in createRemoteConference()
|
/frameworks/base/libs/WindowManager/Shell/multivalentTests/src/com/android/wm/shell/bubbles/ |
D | BubbleTaskViewTest.kt | 51 val componentName = ComponentName(context, "TestClass") in onTaskCreated_updatesState() constant 52 bubbleTaskView.listener.onTaskCreated(123, componentName) in onTaskCreated_updatesState() 55 assertThat(bubbleTaskView.componentName).isEqualTo(componentName) in onTaskCreated_updatesState() 71 val componentName = ComponentName(context, "TestClass") in onTaskCreated_callsDelegateListener() constant 72 bubbleTaskView.listener.onTaskCreated(123, componentName) in onTaskCreated_callsDelegateListener() 75 assertThat(actualComponentName).isEqualTo(componentName) in onTaskCreated_callsDelegateListener() 86 val componentName = ComponentName(context, "TestClass") in cleanup_validTaskId_removesTask() constant 87 bubbleTaskView.listener.onTaskCreated(123, componentName) in cleanup_validTaskId_removesTask()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
D | DefaultAppInfo.java | 40 public final ComponentName componentName; field in DefaultAppInfo 61 componentName = cn; in DefaultAppInfo() 72 componentName = null; in DefaultAppInfo() 78 if (componentName != null) { in loadLabel() 85 componentName.getPackageName(), 0, userId); in loadLabel() 106 if (componentName != null) { in loadIcon() 110 componentName.getPackageName(), 0, userId); in loadIcon() 135 if (componentName != null) { in getKey() 136 return componentName.flattenToString(); in getKey() 147 componentName, 0, userId); in getComponentInfo() [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | DataLoaderParams.java | 41 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()
|
D | ActivityPresentationInfo.java | 31 public final ComponentName componentName; field in ActivityPresentationInfo 34 @NonNull ComponentName componentName) { in ActivityPresentationInfo() argument 37 this.componentName = componentName; in ActivityPresentationInfo()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/ |
D | TileServiceRequestController.kt | 68 componentName: ComponentName, in requestAddTile() 74 requestTileAdd(callingUid, componentName, appName, label, icon) { in requestAddTile() 98 private fun addTile(componentName: ComponentName) { in addTile() 99 qsHost.addTile(componentName, true) in addTile() 105 componentName: ComponentName, in requestTileAdd() 112 val packageName = componentName.packageName in requestTileAdd() 113 if (isTileAlreadyAdded(componentName)) { in requestTileAdd() 120 addTile(componentName) in requestTileAdd() 131 componentName.packageName, in requestTileAdd() 169 private fun isTileAlreadyAdded(componentName: ComponentName): Boolean { in isTileAlreadyAdded() [all …]
|
/frameworks/base/services/credentials/java/com/android/server/credentials/ |
D | ClearRequestSession.java | 83 ComponentName componentName, ProviderSession.CredentialsSource source) { in onProviderStatusChanged() argument 87 onProviderTerminated(componentName); in onProviderStatusChanged() 90 onProviderResponseComplete(componentName); in onProviderStatusChanged() 96 ComponentName componentName, in onFinalResponseReceived() argument 99 mRequestSessionMetric.updateMetricsOnResponseReceived(mProviders, componentName, in onFinalResponseReceived() 100 isPrimaryProviderViaProviderInfo(componentName)); in onFinalResponseReceived() 104 protected void onProviderResponseComplete(ComponentName componentName) { in onProviderResponseComplete() argument 106 onFinalResponseReceived(componentName, null); in onProviderResponseComplete() 110 protected void onProviderTerminated(ComponentName componentName) { in onProviderTerminated() argument 133 public void onFinalErrorReceived(ComponentName componentName, String errorType, in onFinalErrorReceived() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/data/repository/ |
D | CustomTileAddedRepository.kt | 34 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/packages/SystemUI/tests/src/com/android/systemui/controls/management/ |
D | ControlsListingControllerImplTest.kt | 93 private var componentName = ComponentName("pkg", "class1") variable in com.android.systemui.controls.management.ControlsListingControllerImplTest 122 arrayOf(componentName.packageName) in setUp() 165 callback?.onServicesReloaded(listOf(ServiceInfo(componentName))) in testImmediateListingReload_doesNotCrash() 198 val list = listOf(ServiceInfo(componentName)) in testCallbackGetsList() 216 assertEquals(componentName.flattenToString(), captor.value[0].key) in testCallbackGetsList() 220 assertEquals(componentName.flattenToString(), captor.value[0].key) in testCallbackGetsList() 238 val serviceInfo = ServiceInfo(componentName) in testChangeUserSendsCorrectServiceUpdate() 278 val list = listOf(ServiceInfo(componentName)) in test_nullPanelActivity() 289 componentName, in testNoActivity_nullPanel() 304 componentName, in testActivityWithoutPermission_nullPanel() [all …]
|
/frameworks/base/services/core/java/com/android/server/statusbar/ |
D | TileRequestTracker.java | 103 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/media/controls/domain/resume/ |
D | ResumeMediaBrowserLogger.kt | 30 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/tests/utils/src/com/android/systemui/qs/pipeline/data/repository/ |
D | FakeCustomTileAddedRepository.kt | 25 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/packages/SystemUI/tests/src/com/android/systemui/controls/controller/ |
D | ControlsProviderLifecycleManagerTest.kt | 76 private val componentName = ComponentName("test.pkg", "test.cls") constant in com.android.systemui.controls.controller.ControlsProviderLifecycleManagerTest 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/ |
D | ControlsServiceInfo.kt | 45 serviceInfo.componentName 53 if (unflatenned != null && unflatenned.packageName == componentName.packageName) { 109 return when (mPm.getComponentEnabledSetting(activityInfo.componentName)) { in isComponentActuallyEnabled() 119 return componentName?.let { in loadLabel() 120 val appInfo = mPm.getApplicationInfoAsUser(componentName.packageName, 0, userId) in loadLabel() 130 componentName?.packageName in loadIcon() 141 componentName == other.componentName && in equals() 146 return Objects.hash(userId, componentName, panelActivity) in hashCode()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | PolicyWarningUIController.java | 229 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/packages/SystemUI/src/com/android/systemui/controls/ui/ |
D | ControlsUiController.kt | 54 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
|
D | ControlsUiControllerImpl.kt | 90 private data class ControlKey(val componentName: ComponentName, val controlId: String) in <lambda>() constant in com.android.systemui.controls.ui.ControlKey 186 it.componentName, in <lambda>() 188 if (it.componentName.packageName in authorizedPanels) { in <lambda>() 254 ControlWithState(selected.structure.componentName, it, null) in <lambda>() 256 ControlKey(selected.structure.componentName, it.ci.controlId) in <lambda>() 260 controlsController.get().bindComponentForPanel(selected.componentName) in <lambda>() 330 internal fun startRemovingApp(componentName: ComponentName, appName: CharSequence) { in <lambda>() 332 showAppRemovalDialog(componentName, appName) in <lambda>() 337 private fun showAppRemovalDialog(componentName: ComponentName, appName: CharSequence) { in <lambda>() 340 if (!shouldRemove || !controlsController.get().removeFavorites(componentName)) { in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/domain/autoaddable/ |
D | A11yShortcutAutoAddable.kt | 58 @Assisted private val componentName: ComponentName constant in com.android.systemui.qs.pipeline.domain.autoaddable.A11yShortcutAutoAddable 64 .map { it.contains(componentName.flattenToString()) } in autoAddSignal() 74 "A11yShortcutAutoAddableSetting: $spec:$componentName ($autoAddTracking)" 79 componentName == other.componentName in equals() 83 return Objects.hash(spec, componentName) in hashCode() 92 fun create(spec: TileSpec, componentName: ComponentName): A11yShortcutAutoAddable
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | TalkbackShortcutController.java | 61 ComponentName componentName = getTalkbackComponent(); in toggleTalkback() local 62 if (componentName == null) { in toggleTalkback() 66 boolean isTalkbackAlreadyEnabled = enabledServices.contains(componentName); in toggleTalkback() 70 AccessibilityUtils.setAccessibilityServiceState(mContext, componentName, in toggleTalkback() 75 logStemTriplePressAccessibilityTelemetry(componentName); in toggleTalkback() 107 private void logStemTriplePressAccessibilityTelemetry(ComponentName componentName) { in logStemTriplePressAccessibilityTelemetry() argument 114 componentName, in logStemTriplePressAccessibilityTelemetry()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | EnforcingAdmin.java | 86 @NonNull ComponentName componentName, int userId) { in createEnterpriseEnforcingAdmin() 87 Objects.requireNonNull(componentName); in createEnterpriseEnforcingAdmin() 89 componentName.getPackageName(), componentName, Set.of(DPC_AUTHORITY), userId, in createEnterpriseEnforcingAdmin() 94 @NonNull ComponentName componentName, int userId, ActiveAdmin activeAdmin) { in createEnterpriseEnforcingAdmin() 95 Objects.requireNonNull(componentName); in createEnterpriseEnforcingAdmin() 97 componentName.getPackageName(), componentName, Set.of(DPC_AUTHORITY), userId, in createEnterpriseEnforcingAdmin() 101 static EnforcingAdmin createDeviceAdminEnforcingAdmin(ComponentName componentName, int userId, in createDeviceAdminEnforcingAdmin() argument 103 Objects.requireNonNull(componentName); in createDeviceAdminEnforcingAdmin() 105 componentName.getPackageName(), componentName, Set.of(DEVICE_ADMIN_AUTHORITY), in createDeviceAdminEnforcingAdmin() 157 String packageName, @Nullable ComponentName componentName, Set<String> authorities, in EnforcingAdmin() argument [all …]
|