Home
last modified time | relevance | path

Searched refs:Control (Results 1 – 25 of 78) sorted by relevance

1234

/frameworks/base/core/tests/coretests/src/android/service/controls/
DControlProviderServiceTest.java123 Control control1 = new Control.StatelessBuilder("TEST_ID", mPendingIntent).build(); in testOnLoad_allStateless()
124 Control control2 = new Control.StatelessBuilder("TEST_ID_2", mPendingIntent) in testOnLoad_allStateless()
129 ArgumentCaptor<Control> controlCaptor = in testOnLoad_allStateless()
130 ArgumentCaptor.forClass(Control.class); in testOnLoad_allStateless()
132 ArrayList<Control> list = new ArrayList<>(); in testOnLoad_allStateless()
145 List<Control> values = controlCaptor.getAllValues(); in testOnLoad_allStateless()
154 Control control = new Control.StatefulBuilder("TEST_ID", mPendingIntent) in testOnLoad_statefulConvertedToStateless()
156 .setStatus(Control.STATUS_OK) in testOnLoad_statefulConvertedToStateless()
158 Control statelessControl = new Control.StatelessBuilder(control).build(); in testOnLoad_statefulConvertedToStateless()
162 ArgumentCaptor<Control> controlCaptor = in testOnLoad_statefulConvertedToStateless()
[all …]
/frameworks/base/services/incremental/
DServiceWrappers.h77 using Control = incfs::Control;
90 using FileCallback = android::base::function_ref<bool(const Control& control, FileId fileId)>;
97 virtual Control openMount(std::string_view path) const = 0;
98 virtual Control createControl(IncFsFd cmd, IncFsFd pendingReads, IncFsFd logs,
100 virtual ErrorCode makeFile(const Control& control, std::string_view path, int mode, FileId id,
102 virtual ErrorCode makeMappedFile(const Control& control, std::string_view path, int mode,
104 virtual ErrorCode makeDir(const Control& control, std::string_view path, int mode) const = 0;
105 virtual ErrorCode makeDirs(const Control& control, std::string_view path, int mode) const = 0;
106 virtual incfs::RawMetadata getMetadata(const Control& control, FileId fileid) const = 0;
107 virtual incfs::RawMetadata getMetadata(const Control& control, std::string_view path) const = 0;
[all …]
DServiceWrappers.cpp155 Control openMount(std::string_view path) const final { return incfs::open(path); } in openMount()
156 Control createControl(IncFsFd cmd, IncFsFd pendingReads, IncFsFd logs, in createControl()
160 ErrorCode makeFile(const Control& control, std::string_view path, int mode, FileId id, in makeFile()
164 ErrorCode makeMappedFile(const Control& control, std::string_view path, int mode, in makeMappedFile()
168 ErrorCode makeDir(const Control& control, std::string_view path, int mode) const final { in makeDir()
171 ErrorCode makeDirs(const Control& control, std::string_view path, int mode) const final { in makeDirs()
174 incfs::RawMetadata getMetadata(const Control& control, FileId fileid) const final { in getMetadata()
177 incfs::RawMetadata getMetadata(const Control& control, std::string_view path) const final { in getMetadata()
180 FileId getFileId(const Control& control, std::string_view path) const final { in getFileId()
184 const Control& control, std::string_view path) const final { in countFilledBlocks()
[all …]
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
DNekoControlsService.kt23 import android.service.controls.Control in <lambda>()
64 fun Control_toString(control: Control): String { in <lambda>()
74 private val controls = HashMap<String, Control>()
125 private fun makeToyControl(icon: Icon?, thrown: Boolean): Control { in makeToyControl()
126 return Control.StatefulBuilder(CONTROL_ID_TOY, getPendingIntent()) in makeToyControl()
136 .setStatus(Control.STATUS_OK) in makeToyControl()
142 private fun makeWaterBowlControl(fillLevel: Float): Control { in makeWaterBowlControl()
143 return Control.StatefulBuilder(CONTROL_ID_WATER, getPendingIntent()) in makeWaterBowlControl()
152 .setStatus(Control.STATUS_OK) in makeWaterBowlControl()
157 private fun makeFoodBowlControl(filled: Boolean): Control { in makeFoodBowlControl()
[all …]
/frameworks/native/libs/binderdebug/tests/
Dbinderdebug_test.cpp33 class Control : public BnControl { class
35 Control() {sem_init(&s, 1, 0);}; in Control() function in android::binderdebug::test::Control
40 ::android::binder::Status Control::Continue() { in Continue()
79 sp<Control> iface = new Control; in main()
/frameworks/base/core/java/android/service/controls/
DControlsProviderService.java125 public abstract Publisher<Control> createPublisherForAllAvailable(); in createPublisherForAllAvailable()
140 public Publisher<Control> createPublisherForSuggested() { in createPublisherForSuggested()
155 public abstract Publisher<Control> createPublisherFor(@NonNull List<String> controlIds); in createPublisherFor()
233 Publisher<Control> publisher =
280 private static boolean isStatelessControl(Control control) {
281 return (control.getStatus() == Control.STATUS_UNKNOWN
287 private static class SubscriberProxy implements Subscriber<Control> {
312 public void onNext(@NonNull Control control) {
318 control = new Control.StatelessBuilder(control).build();
357 @NonNull Control control) {
[all …]
DControl.java59 public final class Control implements Parcelable { class
144 Control(@NonNull String controlId, in Control() method in Control
194 Control(Parcel in) { in Control() method in Control
395 public static final @NonNull Creator<Control> CREATOR = new Creator<Control>() {
397 public Control createFromParcel(@NonNull Parcel source) {
398 return new Control(source);
402 public Control[] newArray(int size) {
403 return new Control[size];
459 public StatelessBuilder(@NonNull Control control) { in StatelessBuilder()
591 public Control build() { in build()
[all …]
DIControlsSubscriber.aidl19 import android.service.controls.Control;
27 void onNext(in IBinder token, in Control c); in onNext()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/
DControlViewHolderTest.kt24 import android.service.controls.Control
77 Control.StatelessBuilder(CONTROL_ID, mock(PendingIntent::class.java)).build() in setUp()
86 val control = Control.StatelessBuilder(DEFAULT_CONTROL) in updateStatusRow_customIconWithTint_iconTintRemains()
101 val control = Control.StatelessBuilder(CONTROL_ID, mock(PendingIntent::class.java)) in updateStatusRow_customIconWithTintList_iconTintListRemains()
115 val control = Control.StatefulBuilder(CONTROL_ID, mock(PendingIntent::class.java)) in chevronIcon()
116 .setStatus(Control.STATUS_OK) in chevronIcon()
139 private val DEFAULT_CONTROL = Control.StatelessBuilder(
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DStatusBehavior.kt24 import android.service.controls.Control in <lambda>()
38 val status = cws.control?.status ?: Control.STATUS_UNKNOWN in <lambda>()
40 Control.STATUS_ERROR -> R.string.controls_error_generic in <lambda>()
41 Control.STATUS_DISABLED -> R.string.controls_error_timeout in <lambda>()
42 Control.STATUS_NOT_FOUND -> { in <lambda>()
DControlWithState.kt20 import android.service.controls.Control
36 val control: Control?
DControlActionCoordinator.kt20 import android.service.controls.Control
52 fun touch(cvh: ControlViewHolder, templateId: String, control: Control)
DControlViewHolder.kt33 import android.service.controls.Control
95 status != Control.STATUS_OK -> Supplier { StatusBehavior() } in findBehaviorClass()
135 get() = cws.control?.let { it.status } ?: Control.STATUS_UNKNOWN in <lambda>()
160 if (controlStatus == Control.STATUS_UNKNOWN || controlStatus == Control.STATUS_NOT_FOUND) { in bindData()
279 val deviceTypeOrError = if (controlStatus == Control.STATUS_OK || in applyRenderInfo()
280 controlStatus == Control.STATUS_UNKNOWN) { in applyRenderInfo()
467 control: Control? in updateStatusRow()
DControlsUiController.kt21 import android.service.controls.Control
54 fun onRefreshState(componentName: ComponentName, controls: List<Control>) in show()
DToggleBehavior.kt21 import android.service.controls.Control
32 lateinit var control: Control
DTouchBehavior.kt22 import android.service.controls.Control
37 lateinit var control: Control
DTemperatureControlBehavior.kt21 import android.service.controls.Control in <lambda>()
31 lateinit var control: Control in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/
DControlsBindingControllerImplTest.kt23 import android.service.controls.Control
110 override fun accept(t: List<Control>) {} in testBindAndLoad()
122 override fun accept(t: List<Control>) {} in testBindAndLoad_cancel()
140 override fun accept(t: List<Control>) {} in testBindAndLoad_noCancelAfterOnComplete()
160 override fun accept(t: List<Control>) {} in testLoad_onCompleteRemovesTimeout()
179 override fun accept(t: List<Control>) {} in testLoad_onErrorRemovesTimeout()
198 override fun accept(t: List<Control>) {} in testBindAndLoad_noCancelAfterOnError()
218 override fun accept(t: List<Control>) {} in testBindAndLoadSuggested()
230 override fun accept(t: List<Control>) {} in testLoadSuggested_onCompleteRemovesTimeout()
249 override fun accept(t: List<Control>) {} in testLoadSuggested_onErrorRemovesTimeout()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/controller/
DControlInfo.kt19 import android.service.controls.Control
43 fun fromControl(control: Control): ControlInfo { in fromControl()
DControlsBindingControllerImpl.kt23 import android.service.controls.Control
55 override fun accept(controls: List<Control>) {} in accept()
237 val list: List<Control>, in doRun()
248 val list: List<Control>,
299 val loadedControls = ArrayList<Control>()
321 override fun onNext(token: IBinder, c: Control) { in onNext()
DControlsBindingController.kt20 import android.service.controls.Control
100 interface LoadCallback : Consumer<List<Control>> { in bindAndLoad()
DStatefulControlSubscriber.kt20 import android.service.controls.Control
58 override fun onNext(token: IBinder, control: Control) { in onNext()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/
DControlStatus.kt21 import android.service.controls.Control
37 val control: Control,
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/
DControlsRequestDialogTest.kt25 import android.service.controls.Control
98 private lateinit var control: Control
104 control = Control.StatelessBuilder(CONTROL_ID, PendingIntent(iIntentSender)) in setUp()
/frameworks/base/packages/SystemUI/docs/
Ddemo_mode.md29 | ```battery``` | | | Control the battery display
33 | ```network``` | | | Control the RSSI display
44 | ```bars``` | | | Control the visual style of …
46 | ```status``` | | | Control the system status ic…
56 | ```notifications``` | | | Control the notification ico…
58 | ```clock``` | | | Control the clock display

1234