Home
last modified time | relevance | path

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

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DControlActionCoordinatorImpl.kt92 cvh.cws.ci.controlId, in <lambda>()
108 cvh.cws.ci.controlId, in <lambda>()
136 cvh.cws.ci.controlId, in <lambda>()
148 cvh.cws.ci.controlId, in <lambda>()
163 override fun runPendingAction(controlId: String) { in <lambda>()
165 if (pendingAction?.controlId == controlId) { in <lambda>()
172 override fun enableActionOnTouch(controlId: String) { in <lambda>()
173 actionsInProgress.remove(controlId) in <lambda>()
176 private fun shouldRunAction(controlId: String) = in <lambda>()
177 if (actionsInProgress.add(controlId)) { in <lambda>()
[all …]
DControlActionCoordinator.kt75 fun runPendingAction(controlId: String)
82 fun enableActionOnTouch(controlId: String)
DControlsUiController.kt57 controlId: String, in show()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/
DCustomIconCache.kt44 fun store(component: ComponentName, controlId: String, icon: Icon?) { in store()
51 cache.put(controlId, icon) in store()
53 cache.remove(controlId) in store()
64 fun retrieve(component: ComponentName, controlId: String): Icon? { in retrieve()
67 cache.get(controlId) in retrieve()
DControlStatus.kt27 val controlId: String constant
42 override val controlId: String constant in com.android.systemui.controls.ControlStatus
43 get() = control.controlId
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
DAllModel.kt55 val control = controls.firstOrNull { it.control.controlId == id }?.control in <lambda>()
62 val ids = controls.mapTo(HashSet()) { it.control.controlId } in <lambda>()
68 override fun changeFavoriteStatus(controlId: String, favorite: Boolean) { in <lambda>()
70 it is ControlStatusWrapper && it.controlStatus.control.controlId == controlId in <lambda>()
74 favoriteIds.add(controlId) in <lambda>()
76 favoriteIds.remove(controlId) in <lambda>()
DControlsModel.kt51 fun changeFavoriteStatus(controlId: String, favorite: Boolean) {} in changeFavoriteStatus()
144 override val controlId: String in nullIconGetter() constant in com.android.systemui.controls.management.ControlInfoWrapper
145 get() = controlInfo.controlId in nullIconGetter()
153 get() = customIconGetter(component, controlId) in nullIconGetter()
DControlsRequestDialog.kt135 return favorites.any { it.controls.any { it.controlId == control.controlId } } in isCurrentFavorite()
175 ControlInfo(control.controlId, control.title, control.subtitle, control.deviceType) in onClick()
DFavoritesModel.kt96 override fun changeFavoriteStatus(controlId: String, favorite: Boolean) { in changeFavoriteStatus()
97 val position = elements.indexOfFirst { it is ControlInterface && it.controlId == controlId } in changeFavoriteStatus()
/frameworks/base/core/java/android/service/controls/
DControl.java144 Control(@NonNull String controlId, in Control() argument
157 Preconditions.checkNotNull(controlId); in Control()
163 mControlId = controlId; in Control()
446 public StatelessBuilder(@NonNull String controlId, in StatelessBuilder() argument
448 Preconditions.checkNotNull(controlId); in StatelessBuilder()
450 mControlId = controlId; in StatelessBuilder()
477 public StatelessBuilder setControlId(@NonNull String controlId) { in setControlId() argument
478 Preconditions.checkNotNull(controlId); in setControlId()
479 mControlId = controlId; in setControlId()
649 public StatefulBuilder(@NonNull String controlId, in StatefulBuilder() argument
[all …]
DControlsProviderService.java204 public abstract void performControlAction(@NonNull String controlId, in performControlAction() argument
231 public void action(String controlId, ControlActionWrapper action, in onBind() argument
233 ActionMessage msg = new ActionMessage(controlId, action.getWrappedAction(), cb); in onBind()
299 private Consumer<Integer> consumerFor(final String controlId,
308 cb.accept(mToken, controlId, response);
451 ActionMessage(String controlId, ControlAction action, IControlsActionCallback cb) {
452 this.mControlId = controlId;
DIControlsActionCallback.aidl23 void accept(in IBinder token, in String controlId, int response); in accept() argument
DIControlsProvider.aidl34 void action(in String controlId, in ControlActionWrapper action, in action() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/controller/
DControlInfo.kt35 val controlId: String, constant in com.android.systemui.controls.controller.ControlInfo
45 control.controlId, in fromControl()
DControlsBindingControllerImpl.kt82 controlId: String, in accept()
85 backgroundExecutor.execute(OnActionResponseRunnable(token, controlId, response)) in accept()
150 provider.maybeBindAndSubscribe(structureInfo.controls.map { it.controlId }, scs) in subscribe()
167 .maybeBindAndSendAction(controlInfo.controlId, action) in action()
274 val controlId: String, constant
279 lazyController.get().onActionResponse(it.componentName, controlId, response) in doRun()
DControlsControllerImpl.kt293 .getControlsForComponent(componentName).map { it.controlId } in <lambda>()
304 it.controlId in favoritesForComponentKeys in <lambda>()
310 if (it.controlId in removed) { in <lambda>()
334 val keys = controls.map { it.control.controlId } in <lambda>()
410 ControlInfo(it.controlId, it.title, it.subtitle, it.deviceType)) in <lambda>()
459 val control = Control.StatelessBuilder(controlInfo.controlId, pendingIntent) in <lambda>()
469 val controlsKeys = list.map { it.controlId } in <lambda>()
540 override fun onActionResponse(componentName: ComponentName, controlId: String, response: Int) { in <lambda>()
542 uiController.onActionResponse(componentName, controlId, response) in <lambda>()
631 val controlsById = controls.associateBy { it.controlId } in updateControls()
[all …]
DServiceWrapper.kt78 controlId: String, in action()
83 service.action(controlId, ControlActionWrapper(action), cb) in action()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/
DFavoritesModelTest.kt112 assertTrue(model.favorites.none { it.controlId == id }) in <lambda>()
198 model.changeFavoriteStatus(it.controlId, false) in <lambda>()
215 assertEquals(id, model.favorites.last().controlId) in <lambda>()
264 model.changeFavoriteStatus(it.controlId, false) in <lambda>()
285 model.favorites.map(ControlInfo::controlId) in <lambda>()
298 verify(customIconCache).retrieve(TEST_COMPONENT, wrapper.controlId) in <lambda>()
DAllModelTest.kt123 return controlInfo.controlId == control.controlId && in <lambda>()
175 it is ControlStatusWrapper && it.controlStatus.control.controlId == id in <lambda>()
224 it is ControlStatusWrapper && it.controlStatus.control.controlId == id in <lambda>()
DControlsRequestDialogTest.kt141 assertEquals(control.controlId, it.controlId) in testDialogAddsCorrectControl()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/
DControlsControllerImplTest.kt197 return Control.StatelessBuilder(controlInfo.controlId, pendingIntent) in <lambda>()
206 return Control.StatefulBuilder(controlInfo.controlId, pendingIntent) in <lambda>()
339 val controlStatus = controls.first { it.control.controlId == TEST_CONTROL_ID } in <lambda>()
342 val controlStatus2 = controls.first { it.control.controlId == TEST_CONTROL_ID_2 } in <lambda>()
371 assertEquals(TEST_CONTROL_ID, controlStatus.control.controlId) in <lambda>()
402 assertEquals(TEST_CONTROL_ID, controlStatus.control.controlId) in <lambda>()
815 assertEquals(it.controlId, "id1:$i") in <lambda>()
826 assertEquals(it.controlId, "id2:$i") in <lambda>()
964 controlId = "testId", in <lambda>()
DControlsBindingControllerImplTest.kt291 listOf(controlInfo1.controlId, controlInfo2.controlId)) in testSubscribe()
320 listOf(controlInfo1.controlId, controlInfo2.controlId)) in testUnsubscribe_refreshing()
DControlsProviderLifecycleManagerTest.kt233 val controlId = "TEST_ID" in testMaybeBindAndAction() constant
235 manager.maybeBindAndSendAction(controlId, action) in testMaybeBindAndAction()
239 verify(service).action(eq(controlId), capture(wrapperCaptor), in testMaybeBindAndAction()
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
DNekoControlsService.kt189 controlId: String, in performControlAction()
193 when (controlId) { in performControlAction()
239 return Control.StatelessBuilder(c.controlId, c.appIntent) in makeStateless()
/frameworks/base/media/java/android/media/session/
DISession.aidl54 void setPlaybackToRemote(int control, int max, @nullable String controlId); in setPlaybackToRemote() argument

12