Home
last modified time | relevance | path

Searched refs:controlId (Results 1 – 25 of 34) sorted by relevance

12

/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
H A DControlActionCoordinatorImpl.kt80 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 DControlActionCoordinator.kt74 fun runPendingAction(controlId: String)
81 fun enableActionOnTouch(controlId: String)
H A DControlsUiControllerImpl.kt71 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 DControlsUiController.kt44 controlId: String,
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/
H A DCustomIconCache.kt44 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 DControlStatus.kt27 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 DAllModel.kt55 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 DControlsModel.kt51 fun changeFavoriteStatus(controlId: String, favorite: Boolean) {}
139 override val controlId: String
140 get() = controlInfo.controlId
148 get() = customIconGetter(component, controlId)
H A DControlsRequestDialog.kt132 return favorites.any { it.controls.any { it.controlId == control.controlId } }
172 ControlInfo(control.controlId, control.title, control.subtitle, control.deviceType)
H A DFavoritesModel.kt96 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 DControl.java141 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 DControlsProviderService.java131 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 DIControlsActionCallback.aidl23 void accept(in IBinder token, in String controlId, int response); in accept() argument
H A DIControlsProvider.aidl34 void action(in String controlId, in ControlActionWrapper action, in action() argument
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/controller/
H A DControlsControllerImpl.kt298 .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 DControlsBindingControllerImpl.kt81 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 DControlInfo.kt35 val controlId: String,
45 control.controlId,
H A DServiceWrapper.kt78 controlId: String,
83 service.action(controlId, ControlActionWrapper(action), cb)
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/
H A DFavoritesModelTest.kt112 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 DAllModelTest.kt122 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 DControlsRequestDialogTest.kt138 assertEquals(control.controlId, it.controlId)
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/
H A DControlsProviderLifecycleManagerTest.kt203 val controlId = "TEST_ID" regex
205 manager.maybeBindAndSendAction(controlId, action)
209 verify(service).action(eq(controlId), capture(wrapperCaptor),
H A DControlsBindingControllerImplTest.kt286 listOf(controlInfo1.controlId, controlInfo2.controlId))
315 listOf(controlInfo1.controlId, controlInfo2.controlId))
H A DControlsControllerImplTest.kt184 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 DNekoControlsService.kt189 controlId: String,
193 when (controlId) {
239 return Control.StatelessBuilder(c.controlId, c.appIntent)

12