/frameworks/base/core/tests/coretests/src/android/service/controls/ |
D | ControlProviderServiceTest.java | 126 Control control1 = new Control.StatelessBuilder("TEST_ID", mPendingIntent).build(); in testOnLoad_allStateless() 127 Control control2 = new Control.StatelessBuilder("TEST_ID_2", mPendingIntent) in testOnLoad_allStateless() 132 ArgumentCaptor<Control> controlCaptor = in testOnLoad_allStateless() 133 ArgumentCaptor.forClass(Control.class); in testOnLoad_allStateless() 135 ArrayList<Control> list = new ArrayList<>(); in testOnLoad_allStateless() 148 List<Control> values = controlCaptor.getAllValues(); in testOnLoad_allStateless() 157 Control control = new Control.StatefulBuilder("TEST_ID", mPendingIntent) in testOnLoad_statefulConvertedToStateless() 159 .setStatus(Control.STATUS_OK) in testOnLoad_statefulConvertedToStateless() 161 Control statelessControl = new Control.StatelessBuilder(control).build(); in testOnLoad_statefulConvertedToStateless() 165 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/packages/SystemUI/tests/src/com/android/systemui/controls/ui/ |
D | ControlViewHolderTest.kt | 24 import android.service.controls.Control 78 Control.StatelessBuilder(CONTROL_ID, mock(PendingIntent::class.java)).build() in setUp() 87 val control = Control.StatelessBuilder(DEFAULT_CONTROL) in updateStatusRow_customIconWithTint_iconTintRemains() 102 val control = Control.StatelessBuilder(CONTROL_ID, mock(PendingIntent::class.java)) in updateStatusRow_customIconWithTintList_iconTintListRemains() 116 val control = Control.StatefulBuilder(CONTROL_ID, mock(PendingIntent::class.java)) in chevronIcon() 117 .setStatus(Control.STATUS_OK) in chevronIcon() 140 private val DEFAULT_CONTROL = Control.StatelessBuilder(
|
D | TemperatureControlBehaviorTest.kt | 7 import android.service.controls.Control 67 Control.StatefulBuilder( in testBehaviourSupportsThumbnailSubBehaviour() 90 .setStatus(Control.STATUS_OK) in testBehaviourSupportsThumbnailSubBehaviour()
|
/frameworks/base/core/java/android/service/controls/ |
D | Control.java | 59 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 …]
|
D | ControlsProviderService.java | 161 public abstract Publisher<Control> createPublisherForAllAvailable(); in createPublisherForAllAvailable() 176 public Publisher<Control> createPublisherForSuggested() { in createPublisherForSuggested() 191 public abstract Publisher<Control> createPublisherFor(@NonNull List<String> controlIds); in createPublisherFor() 269 Publisher<Control> publisher = 316 private static boolean isStatelessControl(Control control) { 317 return (control.getStatus() == Control.STATUS_UNKNOWN 323 private static class SubscriberProxy implements Subscriber<Control> { 352 public void onNext(@NonNull Control control) { 358 control = new Control.StatelessBuilder(control).build(); 413 @NonNull Control control) { [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 | 25 import android.service.controls.Control in <lambda>() 39 val status = cws.control?.status ?: Control.STATUS_UNKNOWN in <lambda>() 41 Control.STATUS_ERROR -> R.string.controls_error_generic in <lambda>() 42 Control.STATUS_DISABLED -> R.string.controls_error_timeout in <lambda>() 43 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 54 fun onRefreshState(componentName: ComponentName, controls: List<Control>) in show()
|
D | ToggleBehavior.kt | 21 import android.service.controls.Control 32 lateinit var control: Control
|
D | ControlViewHolder.kt | 33 import android.service.controls.Control 116 get() = cws.control?.let { it.status } ?: Control.STATUS_UNKNOWN in <lambda>() 137 status != Control.STATUS_OK -> Supplier { StatusBehavior() } in findBehaviorClass() 162 if (controlStatus == Control.STATUS_UNKNOWN || controlStatus == Control.STATUS_NOT_FOUND) { in bindData() 281 val deviceTypeOrError = if (controlStatus == Control.STATUS_OK || in applyRenderInfo() 282 controlStatus == Control.STATUS_UNKNOWN) { in applyRenderInfo() 469 control: Control? in updateStatusRow()
|
D | TemperatureControlBehavior.kt | 21 import android.service.controls.Control in <lambda>() 31 lateinit var control: Control in <lambda>()
|
/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 56 override fun accept(controls: List<Control>) {} in accept() 239 val list: List<Control>, in doRun() 250 val list: List<Control>, 301 val loadedControls = ArrayList<Control>() 324 override fun onNext(token: IBinder, c: Control) { in onNext()
|
D | ControlsBindingController.kt | 20 import android.service.controls.Control 100 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/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() 137 override fun accept(t: List<Control>) {} in testBindAndLoad_noCancelAfterOnComplete() 157 override fun accept(t: List<Control>) {} in testLoad_onCompleteRemovesTimeout() 176 override fun accept(t: List<Control>) {} in testLoad_onErrorRemovesTimeout() 195 override fun accept(t: List<Control>) {} in testBindAndLoad_noCancelAfterOnError() 215 override fun accept(t: List<Control>) {} in testBindAndLoadSuggested() 227 override fun accept(t: List<Control>) {} in testLoadSuggested_onCompleteRemovesTimeout() 246 override fun accept(t: List<Control>) {} in testLoadSuggested_onErrorRemovesTimeout()
|
/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 97 private lateinit var control: Control 103 control = Control.StatelessBuilder(CONTROL_ID, PendingIntent(iIntentSender)) in setUp()
|
/frameworks/base/core/proto/android/companion/ |
D | telecom.proto | 52 repeated Control controls = 4; 75 Control control = 2; 95 enum Control { enum
|