/frameworks/base/services/incremental/ |
D | ServiceWrappers.cpp | 58 const ::android::os::incremental::IncrementalFileSystemControlParcel& control, in setIncFsMountOptions() 61 return mInterface->setIncFsMountOptions(control, enableReadLogs, enableReadTimeouts, in setIncFsMountOptions() 160 ErrorCode makeFile(const Control& control, std::string_view path, int mode, FileId id, in makeFile() argument 162 return incfs::makeFile(control, path, mode, id, params); in makeFile() 164 ErrorCode makeMappedFile(const Control& control, std::string_view path, int mode, in makeMappedFile() argument 166 return incfs::makeMappedFile(control, path, mode, params); in makeMappedFile() 168 ErrorCode makeDir(const Control& control, std::string_view path, int mode) const final { in makeDir() argument 169 return incfs::makeDir(control, path, mode); in makeDir() 171 ErrorCode makeDirs(const Control& control, std::string_view path, int mode) const final { in makeDirs() argument 172 return incfs::makeDirs(control, path, mode); in makeDirs() [all …]
|
D | ServiceWrappers.h | 60 const os::incremental::IncrementalFileSystemControlParcel& control, bool enableReadLogs, 90 using FileCallback = android::base::function_ref<bool(const Control& control, FileId fileId)>; 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; 108 virtual FileId getFileId(const Control& control, std::string_view path) const = 0; 110 const Control& control, std::string_view path) const = 0; [all …]
|
D | IncrementalService.cpp | 203 static ProtoMessage parseFromIncfs(const IncFsWrapper* incfs, const Control& control, in parseFromIncfs() argument 205 auto md = incfs->getMetadata(control, path); in parseFromIncfs() 248 control.close(); in ~IncFsMount() 267 if (auto err = incrementalService.mIncFs->makeDir(control, fullName, 0755); !err) { in makeStorage() 486 const auto lastReadError = mIncFs->getLastReadError(ifs->control); in onDump() 527 return mIncFs->isEverythingFullyLoaded(ifs.control) == incfs::LoadingState::MissingBlocks; in needStartDataLoaderLocked() 628 IncFsMount::Control control; in createStorage() local 659 control = mIncFs->createControl(cmd, pendingReads, logs, blocksWritten); in createStorage() 668 std::move(control), *this); in createStorage() 697 mIncFs->makeFile(ifs->control, in createStorage() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/ |
D | StatefulControlSubscriberTest.kt | 52 private lateinit var control: Control variable in com.android.systemui.controls.controller.StatefulControlSubscriberTest 92 scs.onNext(token, control) in testOnNext() 95 verify(controller).refreshStatus(TEST_COMPONENT, control) in testOnNext() 101 scs.onNext(token, control) in testOnNext_multiple() 102 scs.onNext(token, control) in testOnNext_multiple() 103 scs.onNext(token, control) in testOnNext_multiple() 106 verify(controller, times(3)).refreshStatus(TEST_COMPONENT, control) in testOnNext_multiple() 111 scs.onNext(token, control) in testOnNext_noRefreshBeforeSubscribe() 114 verify(controller, never()).refreshStatus(TEST_COMPONENT, control) in testOnNext_noRefreshBeforeSubscribe() 123 scs.onNext(token, control) in testOnNext_noRefreshAfterCancel() [all …]
|
D | ControlsControllerImplTest.kt | 235 val control = Control.StatefulBuilder(TEST_CONTROL_ID, pendingIntent).build() in <lambda>() constant 236 val list = listOf(control) in <lambda>() 237 controller.refreshStatus(TEST_COMPONENT, control) in <lambda>() 265 val control = statelessBuilderFromInfo(TEST_CONTROL_INFO).build() in <lambda>() constant 273 assertEquals(ControlStatus(control, TEST_COMPONENT, false), controlStatus) in <lambda>() 282 controlLoadCallbackCaptor.value.accept(listOf(control)) in <lambda>() 292 val control = statelessBuilderFromInfo(TEST_CONTROL_INFO).build() in <lambda>() constant 303 val controlStatus = controls.first { it.control.controlId == TEST_CONTROL_ID } in <lambda>() 304 assertEquals(ControlStatus(control, TEST_COMPONENT, true), controlStatus) in <lambda>() 306 val controlStatus2 = controls.first { it.control.controlId == TEST_CONTROL_ID_2 } in <lambda>() [all …]
|
/frameworks/wilhelm/tests/sandbox/ |
D | nativewindow.cpp | 52 sp<SurfaceControl> control = in getNativeWindow_() local 60 CHECK(control != NULL); in getNativeWindow_() 61 CHECK(control->isValid()); in getNativeWindow_() 64 .setLayer(control, 30000) in getNativeWindow_() 65 .show(control) in getNativeWindow_() 68 sp<Surface> surface = control->getSurface(); in getNativeWindow_() 73 gControl = control; in getNativeWindow_()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/ |
D | TemperatureControlBehavior.kt | 31 lateinit var control: Control in <lambda>() variable in com.android.systemui.controls.ui.TemperatureControlBehavior 40 this.control = cws.control!! in <lambda>() 42 cvh.setStatusText(control.getStatusText()) in <lambda>() 47 val template = control.getControlTemplate() as TemperatureControlTemplate in <lambda>() 59 cvh.controlActionCoordinator.touch(cvh, template.getTemplateId(), control) in <lambda>() 67 control.status, in <lambda>() 69 control.deviceType in <lambda>()
|
D | TouchBehavior.kt | 37 lateinit var control: Control variable in com.android.systemui.controls.ui.TouchBehavior 52 cvh.controlActionCoordinator.touch(cvh, template.getTemplateId(), control) in initialize() 69 this.control = cws.control!! in bind() 71 cvh.setStatusText(control.getStatusText()) in bind() 72 template = control.getControlTemplate() in bind()
|
D | ToggleBehavior.kt | 32 lateinit var control: Control variable in com.android.systemui.controls.ui.ToggleBehavior 44 this.control = cws.control!! in bind() 46 cvh.setStatusText(control.getStatusText()) in bind() 47 val controlTemplate = control.getControlTemplate() in bind()
|
D | ThumbnailBehavior.kt | 38 lateinit var control: Control variable in com.android.systemui.controls.ui.ThumbnailBehavior 63 cvh.controlActionCoordinator.touch(cvh, template.getTemplateId(), control) in initialize() 68 this.control = cws.control!! in bind() 69 cvh.setStatusText(control.getStatusText()) in bind() 70 template = control.getControlTemplate() as ThumbnailTemplate in bind()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ |
D | ControlStatus.kt | 37 val control: Control, constant in com.android.systemui.controls.ControlStatus 43 get() = control.controlId 46 get() = control.title 49 get() = control.subtitle 52 get() = control.customIcon 55 get() = control.deviceType
|
/frameworks/base/core/java/android/service/controls/ |
D | Control.java | 444 public StatelessBuilder(@NonNull Control control) { in StatelessBuilder() argument 445 Preconditions.checkNotNull(control); in StatelessBuilder() 446 mControlId = control.mControlId; in StatelessBuilder() 447 mDeviceType = control.mDeviceType; in StatelessBuilder() 448 mTitle = control.mTitle; in StatelessBuilder() 449 mSubtitle = control.mSubtitle; in StatelessBuilder() 450 mStructure = control.mStructure; in StatelessBuilder() 451 mZone = control.mZone; in StatelessBuilder() 452 mAppIntent = control.mAppIntent; in StatelessBuilder() 453 mCustomIcon = control.mCustomIcon; in StatelessBuilder() [all …]
|
D | ControlsProviderService.java | 243 private static boolean isStatelessControl(Control control) { 244 return (control.getStatus() == Control.STATUS_UNKNOWN 245 && control.getControlTemplate().getTemplateType() 247 && TextUtils.isEmpty(control.getStatusText())); 275 public void onNext(@NonNull Control control) { 276 Preconditions.checkNotNull(control); 278 if (mEnforceStateless && !isStatelessControl(control)) { 281 control = new Control.StatelessBuilder(control).build(); 284 control.getControlTemplate().prepareTemplateForBinder(mContext); 286 mCs.onNext(mToken, control); [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/controller/ |
D | ControlInfo.kt | 43 fun fromControl(control: Control): ControlInfo { in fromControl() 45 control.controlId, in fromControl() 46 control.title, in fromControl() 47 control.subtitle, in fromControl() 48 control.deviceType in fromControl()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/ |
D | ControlsRequestDialog.kt | 55 private lateinit var control: Control variable in com.android.systemui.controls.management.ControlsRequestDialog 92 control = intent.getParcelableExtra(ControlsProviderService.EXTRA_CONTROL) ?: run { in onCreate() 132 return favorites.any { it.controls.any { it.controlId == control.controlId } } in isCurrentFavorite() 136 val renderInfo = RenderInfo.lookup(this, controlComponent, control.deviceType) in createDialog() 143 requireViewById<TextView>(R.id.title).text = control.title in createDialog() 144 requireViewById<TextView>(R.id.subtitle).text = control.subtitle in createDialog() 145 requireViewById<View>(R.id.control).elevation = in createDialog() 171 control.structure ?: "", in onClick() 172 ControlInfo(control.controlId, control.title, control.subtitle, control.deviceType) in onClick()
|
D | AllModel.kt | 55 val control = controls.firstOrNull { it.control.controlId == id }?.control in <lambda>() constant 56 control?.let { in <lambda>() 62 val ids = controls.mapTo(HashSet()) { it.control.controlId } in <lambda>() 70 it is ControlStatusWrapper && it.controlStatus.control.controlId == controlId in <lambda>() 89 it.control.zone ?: "" in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/ |
D | AllModelTest.kt | 121 private fun sameControl(controlInfo: ControlInfo, control: Control): Boolean { in <lambda>() 122 return controlInfo.controlId == control.controlId && in <lambda>() 123 controlInfo.controlTitle == control.title && in <lambda>() 124 controlInfo.controlSubtitle == control.subtitle && in <lambda>() 125 controlInfo.deviceType == control.deviceType in <lambda>() 145 val expectedFavorites = favoritesIndices.map(controls::get).map(ControlStatus::control) in <lambda>() 156 val expectedFavorites = favoritesIndices.map(controls::get).map(ControlStatus::control) + in <lambda>() 157 controls[indexToAdd].control in <lambda>() 173 it is ControlStatusWrapper && it.controlStatus.control.controlId == id in <lambda>() 186 val expectedFavorites = favoritesIndices.map(controls::get).map(ControlStatus::control) in <lambda>() [all …]
|
D | ControlsRequestDialogTest.kt | 94 private lateinit var control: Control variable in com.android.systemui.controls.management.ControlsRequestDialogTest 100 control = Control.StatelessBuilder(CONTROL_ID, PendingIntent(iIntentSender)) in setUp() 110 intent.putExtra(ControlsProviderService.EXTRA_CONTROL, control) in setUp() 135 .addFavorite(eq(CONTROL_COMPONENT), eq(control.structure!!), capture(captor)) in testDialogAddsCorrectControl() 138 assertEquals(control.controlId, it.controlId) in testDialogAddsCorrectControl() 139 assertEquals(control.title, it.controlTitle) in testDialogAddsCorrectControl() 140 assertEquals(control.subtitle, it.controlSubtitle) in testDialogAddsCorrectControl() 141 assertEquals(control.deviceType, it.deviceType) in testDialogAddsCorrectControl()
|
/frameworks/base/core/java/android/view/ |
D | InsetsAnimationControlImpl.java | 210 final InsetsSourceControl control = controls.valueAt(i); in updateSurfacePosition() local 211 final InsetsSourceControl c = mControls.get(control.getType()); in updateSurfacePosition() 215 final Point position = control.getSurfacePosition(); in updateSurfacePosition() 379 final InsetsSourceControl control = controls.valueAt(i); in calculateInsets() local 380 if (control == null) { in calculateInsets() 384 state.getSource(control.getType()).setVisible(shown); in calculateInsets() 397 final InsetsSourceControl control = controls.valueAt(i); in calculateInsets() local 398 if (control == null) { in calculateInsets() 402 if (state == null || state.getSource(control.getType()).isVisible()) { in calculateInsets() 403 insets = Insets.max(insets, control.getInsetsHint()); in calculateInsets() [all …]
|
D | ImeInsetsSourceConsumer.java | 124 public void setControl(@Nullable InsetsSourceControl control, int[] showTypes, in setControl() argument 126 super.setControl(control, showTypes, hideTypes); in setControl() 127 if (control == null && !mIsRequestedVisibleAwaitingControl) { in setControl() 131 if (control != null) { in setControl()
|
D | InsetsSourceConsumer.java | 118 public void setControl(@Nullable InsetsSourceControl control, in setControl() argument 124 if (Objects.equals(mSourceControl, control)) { in setControl() 125 if (mSourceControl != null && mSourceControl != control) { in setControl() 127 mSourceControl = control; in setControl() 134 mSourceControl = control; in setControl() 135 if (control != null) { in setControl() 137 InsetsState.typeToString(control.getType()), in setControl() 160 if (control.getLeash() != null && (needAnimation || mIsAnimationPending)) { in setControl()
|
D | InsetsController.java | 616 InsetsAnimationControlImpl control = (InsetsAnimationControlImpl) runner; in InsetsController() 622 runningAnimations.add(control.getAnimation()); in InsetsController() 625 if (control.applyChangeInsets(state)) { in InsetsController() 626 mTmpFinishedControls.add(control); in InsetsController() 811 final InsetsSourceControl control = mTmpControlArray.get(consumer.getType()); in onControlsChanged() local 815 consumer.setControl(control, showTypes, hideTypes); in onControlsChanged() 820 final InsetsSourceControl control = mTmpControlArray.valueAt(i); in onControlsChanged() local 821 final @InternalInsetsType int type = control.getType(); in onControlsChanged() 823 consumer.setControl(control, showTypes, hideTypes); in onControlsChanged() 1147 final InsetsSourceControl control = consumer.getControl(); in collectSourceControls() local [all …]
|
/frameworks/base/core/java/android/service/dataloader/ |
D | DataLoaderService.java | 138 @NonNull FileSystemControlParcel control, in create() argument 142 nativeCreateDataLoader(id, control, params, listener); in create() 148 if (control.incremental != null) { in create() 149 IoUtils.closeQuietly(control.incremental.cmd); in create() 150 IoUtils.closeQuietly(control.incremental.pendingReads); in create() 151 IoUtils.closeQuietly(control.incremental.log); in create() 152 IoUtils.closeQuietly(control.incremental.blocksWritten); in create() 233 @NonNull FileSystemControlParcel control, in nativeCreateDataLoader() argument
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | ImeInsetsSourceConsumerTest.java | 123 InsetsSourceControl control = in testImeRequestedVisibleAwaitingControl() local 125 mController.onControlsChanged(new InsetsSourceControl[] { control }); in testImeRequestedVisibleAwaitingControl() 160 InsetsSourceControl control = Mockito.spy( in verifyImeGetAndClearSkipAnimationOnce() local 163 control.setSkipAnimationOnce(true); in verifyImeGetAndClearSkipAnimationOnce() 168 mController.onControlsChanged(new InsetsSourceControl[]{ control }); in verifyImeGetAndClearSkipAnimationOnce() 169 verify(control).getAndClearSkipAnimationOnce(); in verifyImeGetAndClearSkipAnimationOnce() 179 mController.onControlsChanged(new InsetsSourceControl[]{ control }); in verifyImeGetAndClearSkipAnimationOnce() 182 verify(control).getAndClearSkipAnimationOnce(); in verifyImeGetAndClearSkipAnimationOnce()
|
/frameworks/base/core/tests/coretests/src/android/service/controls/ |
D | ControlProviderServiceTest.java | 154 Control control = new Control.StatefulBuilder("TEST_ID", mPendingIntent) in testOnLoad_statefulConvertedToStateless() local 158 Control statelessControl = new Control.StatelessBuilder(control).build(); in testOnLoad_statefulConvertedToStateless() 166 list.add(control); in testOnLoad_statefulConvertedToStateless() 177 assertFalse(equals(control, c)); in testOnLoad_statefulConvertedToStateless() 215 Control control = new Control.StatefulBuilder("TEST_ID", mPendingIntent) in testSubscribe() local 220 Control c = sendControlGetControl(control); in testSubscribe() 221 assertTrue(equals(c, control)); in testSubscribe() 239 Control control = new Control.StatefulBuilder("TEST_ID", mPendingIntent) in testThumbnailRescaled_bigger() local 245 Control c = sendControlGetControl(control); in testThumbnailRescaled_bigger() 270 Control control = new Control.StatefulBuilder("TEST_ID", mPendingIntent) in testThumbnailRescaled_smaller() local [all …]
|