/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/ |
H A D | ControlActionCoordinatorImpl.kt | 80 bouncerOrRun(createAction(cvh.cws.ci.controlId, { 89 bouncerOrRun(createAction(cvh.cws.ci.controlId, { 109 bouncerOrRun(createAction(cvh.cws.ci.controlId, { 116 bouncerOrRun(createAction(cvh.cws.ci.controlId, { 125 override fun runPendingAction(controlId: String) { 127 if (pendingAction?.controlId == controlId) { 135 actionsInProgress.remove(controlId) 138 private fun shouldRunAction(controlId: String) = 139 if (actionsInProgress.add(controlId)) { 141 actionsInProgress.remove(controlId) [all …]
|
H A D | ControlActionCoordinator.kt | 74 fun runPendingAction(controlId: String) 81 fun enableActionOnTouch(controlId: String)
|
H A D | ControlsUiControllerImpl.kt | 71 private data class ControlKey(val componentName: ComponentName, val controlId: String) 179 ControlKey(selectedStructure.componentName, it.ci.controlId) 394 val key = ControlKey(selectedStructure.componentName, it.controlId) 528 iconCache.store(componentName, c.controlId, c.customIcon) 540 override fun onActionResponse(componentName: ComponentName, controlId: String, response: Int) { 541 val key = ControlKey(componentName, controlId)
|
H A D | ControlsUiController.kt | 44 controlId: String,
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ |
H A D | CustomIconCache.kt | 44 fun store(component: ComponentName, controlId: String, icon: Icon?) { 51 cache.put(controlId, icon) 53 cache.remove(controlId) 64 fun retrieve(component: ComponentName, controlId: String): Icon? { 67 cache.get(controlId)
|
H A D | ControlStatus.kt | 27 val controlId: String 42 override val controlId: String 43 get() = control.controlId
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/ |
H A D | AllModel.kt | 55 val control = controls.firstOrNull { it.control.controlId == id }?.control 62 val ids = controls.mapTo(HashSet()) { it.control.controlId } 68 override fun changeFavoriteStatus(controlId: String, favorite: Boolean) { 70 it is ControlStatusWrapper && it.controlStatus.control.controlId == controlId 74 favoriteIds.add(controlId) 76 favoriteIds.remove(controlId)
|
H A D | ControlsModel.kt | 51 fun changeFavoriteStatus(controlId: String, favorite: Boolean) {} 139 override val controlId: String 140 get() = controlInfo.controlId 148 get() = customIconGetter(component, controlId)
|
H A D | ControlsRequestDialog.kt | 132 return favorites.any { it.controls.any { it.controlId == control.controlId } } 172 ControlInfo(control.controlId, control.title, control.subtitle, control.deviceType)
|
H A D | FavoritesModel.kt | 96 override fun changeFavoriteStatus(controlId: String, favorite: Boolean) { 97 val position = elements.indexOfFirst { it is ControlInterface && it.controlId == controlId }
|
/aosp12/frameworks/base/core/java/android/service/controls/ |
H A D | Control.java | 141 Control(@NonNull String controlId, in Control() argument 153 Preconditions.checkNotNull(controlId); in Control() 159 mControlId = controlId; in Control() 433 Preconditions.checkNotNull(controlId); in StatelessBuilder() 435 mControlId = controlId; in StatelessBuilder() 463 Preconditions.checkNotNull(controlId); in setControlId() 464 mControlId = controlId; in setControlId() 633 Preconditions.checkNotNull(controlId); in StatefulBuilder() 635 mControlId = controlId; in StatefulBuilder() 666 Preconditions.checkNotNull(controlId); in setControlId() [all …]
|
H A D | ControlsProviderService.java | 131 public abstract void performControlAction(@NonNull String controlId, in performControlAction() argument 158 public void action(String controlId, ControlActionWrapper action, in onBind() argument 160 ActionMessage msg = new ActionMessage(controlId, action.getWrappedAction(), cb); in onBind() 226 private Consumer<Integer> consumerFor(final String controlId, 235 cb.accept(mToken, controlId, response); 358 ActionMessage(String controlId, ControlAction action, IControlsActionCallback cb) { 359 this.mControlId = controlId;
|
H A D | IControlsActionCallback.aidl | 23 void accept(in IBinder token, in String controlId, int response); in accept() argument
|
H A D | IControlsProvider.aidl | 34 void action(in String controlId, in ControlActionWrapper action, in action() argument
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/controller/ |
H A D | ControlsControllerImpl.kt | 298 .getControlsForComponent(componentName).map { it.controlId } 309 it.controlId in favoritesForComponentKeys 315 if (it.controlId in removed) { 339 val keys = controls.map { it.control.controlId } 464 val control = Control.StatelessBuilder(controlInfo.controlId, pendingIntent) 474 val controlsKeys = list.map { it.controlId } 528 override fun onActionResponse(componentName: ComponentName, controlId: String, response: Int) { 530 uiController.onActionResponse(componentName, controlId, response) 619 val controlsById = controls.associateBy { it.controlId } 628 val (sName, ci) = controlsById.get(c.controlId)?.let { updatedControl -> [all …]
|
H A D | ControlsBindingControllerImpl.kt | 81 controlId: String, 84 backgroundExecutor.execute(OnActionResponseRunnable(token, controlId, response)) 148 provider.maybeBindAndSubscribe(structureInfo.controls.map { it.controlId }, scs) 165 .maybeBindAndSendAction(controlInfo.controlId, action) 268 val controlId: String, 273 lazyController.get().onActionResponse(it.componentName, controlId, response)
|
H A D | ControlInfo.kt | 35 val controlId: String, 45 control.controlId,
|
H A D | ServiceWrapper.kt | 78 controlId: String, 83 service.action(controlId, ControlActionWrapper(action), cb)
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/ |
H A D | FavoritesModelTest.kt | 112 assertTrue(model.favorites.none { it.controlId == id }) 198 model.changeFavoriteStatus(it.controlId, false) 215 assertEquals(id, model.favorites.last().controlId) 264 model.changeFavoriteStatus(it.controlId, false) 285 model.favorites.map(ControlInfo::controlId) 298 verify(customIconCache).retrieve(TEST_COMPONENT, wrapper.controlId)
|
H A D | AllModelTest.kt | 122 return controlInfo.controlId == control.controlId && 173 it is ControlStatusWrapper && it.controlStatus.control.controlId == id 219 it is ControlStatusWrapper && it.controlStatus.control.controlId == id
|
H A D | ControlsRequestDialogTest.kt | 138 assertEquals(control.controlId, it.controlId)
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/ |
H A D | ControlsProviderLifecycleManagerTest.kt | 203 val controlId = "TEST_ID" regex 205 manager.maybeBindAndSendAction(controlId, action) 209 verify(service).action(eq(controlId), capture(wrapperCaptor),
|
H A D | ControlsBindingControllerImplTest.kt | 286 listOf(controlInfo1.controlId, controlInfo2.controlId)) 315 listOf(controlInfo1.controlId, controlInfo2.controlId))
|
H A D | ControlsControllerImplTest.kt | 184 return Control.StatelessBuilder(controlInfo.controlId, pendingIntent) 193 return Control.StatefulBuilder(controlInfo.controlId, pendingIntent) 303 val controlStatus = controls.first { it.control.controlId == TEST_CONTROL_ID } 306 val controlStatus2 = controls.first { it.control.controlId == TEST_CONTROL_ID_2 } 335 assertEquals(TEST_CONTROL_ID, controlStatus.control.controlId) 366 assertEquals(TEST_CONTROL_ID, controlStatus.control.controlId) 785 assertEquals(it.controlId, "id1:$i") 796 assertEquals(it.controlId, "id2:$i")
|
/aosp12/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/ |
H A D | NekoControlsService.kt | 189 controlId: String, 193 when (controlId) { 239 return Control.StatelessBuilder(c.controlId, c.appIntent)
|