/frameworks/base/core/tests/coretests/src/android/service/controls/ |
D | ControlProviderServiceTest.java | 123 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/ |
D | ServiceWrappers.h | 77 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 …]
|
D | ServiceWrappers.cpp | 155 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/ |
D | NekoControlsService.kt | 23 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/ |
D | binderdebug_test.cpp | 33 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/ |
D | ControlsProviderService.java | 94 public abstract Publisher<Control> createPublisherForAllAvailable(); in createPublisherForAllAvailable() 109 public Publisher<Control> createPublisherForSuggested() { in createPublisherForSuggested() 121 public abstract Publisher<Control> createPublisherFor(@NonNull List<String> controlIds); in createPublisherFor() 196 Publisher<Control> publisher = 243 private static boolean isStatelessControl(Control control) { 244 return (control.getStatus() == Control.STATUS_UNKNOWN 250 private static class SubscriberProxy implements Subscriber<Control> { 275 public void onNext(@NonNull Control control) { 281 control = new Control.StatelessBuilder(control).build(); 320 @NonNull Control control) { [all …]
|
D | Control.java | 59 public final class Control implements Parcelable { class 141 Control(@NonNull String controlId, in Control() method in Control 189 Control(Parcel in) { in Control() method in Control 381 public static final @NonNull Creator<Control> CREATOR = new Creator<Control>() { 383 public Control createFromParcel(@NonNull Parcel source) { 384 return new Control(source); 388 public Control[] newArray(int size) { 389 return new Control[size]; 444 public StatelessBuilder(@NonNull Control control) { in StatelessBuilder() 576 public Control build() { in build() [all …]
|
D | IControlsSubscriber.aidl | 19 import android.service.controls.Control; 27 void onNext(in IBinder token, in Control c); in onNext()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/ |
D | StatusBehavior.kt | 24 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>()
|
D | ControlWithState.kt | 20 import android.service.controls.Control 36 val control: Control?
|
D | ControlActionCoordinator.kt | 20 import android.service.controls.Control 52 fun touch(cvh: ControlViewHolder, templateId: String, control: Control)
|
D | ControlsUiController.kt | 21 import android.service.controls.Control 41 fun onRefreshState(componentName: ComponentName, controls: List<Control>)
|
D | ControlViewHolder.kt | 33 import android.service.controls.Control 95 status != Control.STATUS_OK -> StatusBehavior::class in findBehaviorClass() 134 get() = cws.control?.let { it.status } ?: Control.STATUS_UNKNOWN in <lambda>() 159 if (controlStatus == Control.STATUS_UNKNOWN || controlStatus == Control.STATUS_NOT_FOUND) { in bindData() 276 val deviceTypeOrError = if (controlStatus == Control.STATUS_OK || in applyRenderInfo() 277 controlStatus == Control.STATUS_UNKNOWN) { in applyRenderInfo() 464 control: Control? in updateStatusRow()
|
D | ToggleBehavior.kt | 21 import android.service.controls.Control 32 lateinit var control: Control
|
D | TemperatureControlBehavior.kt | 21 import android.service.controls.Control in <lambda>() 31 lateinit var control: Control in <lambda>()
|
D | TouchBehavior.kt | 22 import android.service.controls.Control 37 lateinit var control: Control
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/ |
D | ControlViewHolderTest.kt | 24 import android.service.controls.Control 74 Control.StatelessBuilder(CONTROL_ID, mock(PendingIntent::class.java)).build() in setUp() 83 val control = Control.StatelessBuilder(DEFAULT_CONTROL) in updateStatusRow_customIconWithTint_iconTintRemains() 98 val control = Control.StatelessBuilder(CONTROL_ID, mock(PendingIntent::class.java)) in updateStatusRow_customIconWithTintList_iconTintListRemains() 117 private val DEFAULT_CONTROL = Control.StatelessBuilder(
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/ |
D | ControlsBindingControllerImplTest.kt | 23 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/ |
D | ControlInfo.kt | 19 import android.service.controls.Control 43 fun fromControl(control: Control): ControlInfo { in fromControl()
|
D | ControlsBindingControllerImpl.kt | 23 import android.service.controls.Control 55 override fun accept(controls: List<Control>) {} in accept() 233 val list: List<Control>, in doRun() 244 val list: List<Control>, 295 val loadedControls = ArrayList<Control>() 317 override fun onNext(token: IBinder, c: Control) { in onNext()
|
D | ControlsBindingController.kt | 20 import android.service.controls.Control 91 interface LoadCallback : Consumer<List<Control>> { in bindAndLoad()
|
D | StatefulControlSubscriber.kt | 20 import android.service.controls.Control 58 override fun onNext(token: IBinder, control: Control) { in onNext()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ |
D | ControlStatus.kt | 21 import android.service.controls.Control 37 val control: Control,
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/ |
D | ControlsRequestDialogTest.kt | 25 import android.service.controls.Control 94 private lateinit var control: Control 100 control = Control.StatelessBuilder(CONTROL_ID, PendingIntent(iIntentSender)) in setUp()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/ |
D | ControlsRequestReceiver.kt | 28 import android.service.controls.Control 74 putExtra(it, intent.getParcelableExtra<Control>(it)) in onReceive()
|