/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 | 208 static ProtoMessage parseFromIncfs(const IncFsWrapper* incfs, const Control& control, in parseFromIncfs() argument 210 auto md = incfs->getMetadata(control, path); in parseFromIncfs() 253 control.close(); in ~IncFsMount() 272 if (auto err = incrementalService.mIncFs->makeDir(control, fullName, 0755); !err) { in makeStorage() 491 const auto lastReadError = mIncFs->getLastReadError(ifs->control); in onDump() 532 return mIncFs->isEverythingFullyLoaded(ifs.control) == incfs::LoadingState::MissingBlocks; in needStartDataLoaderLocked() 633 IncFsMount::Control control; in createStorage() local 664 control = mIncFs->createControl(cmd, pendingReads, logs, blocksWritten); in createStorage() 673 std::move(control), *this); in createStorage() 702 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 | 271 val control = Control.StatefulBuilder(TEST_CONTROL_ID, pendingIntent).build() in <lambda>() constant 272 val list = listOf(control) in <lambda>() 273 controller.refreshStatus(TEST_COMPONENT, control) in <lambda>() 301 val control = statelessBuilderFromInfo(TEST_CONTROL_INFO).build() in <lambda>() constant 309 assertEquals(ControlStatus(control, TEST_COMPONENT, false), controlStatus) in <lambda>() 318 controlLoadCallbackCaptor.value.accept(listOf(control)) in <lambda>() 328 val control = statelessBuilderFromInfo(TEST_CONTROL_INFO).build() in <lambda>() constant 339 val controlStatus = controls.first { it.control.controlId == TEST_CONTROL_ID } in <lambda>() 340 assertEquals(ControlStatus(control, TEST_COMPONENT, true), controlStatus) in <lambda>() 342 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()
|
D | ControlActionCoordinatorImpl.kt | 105 cvh.cws.control?.isAuthRequired ?: true /* authIsRequired */ in <lambda>() 110 override fun touch(cvh: ControlViewHolder, templateId: String, control: Control) { in <lambda>() 119 showDetail(cvh, control.getAppIntent()) in <lambda>() 125 cvh.cws.control?.isAuthRequired ?: true /* authIsRequired */ in <lambda>() 145 cvh.cws.control?.isAuthRequired ?: true /* authIsRequired */ in <lambda>() 158 cvh.cws.control?.let { in <lambda>() 164 cvh.cws.control?.isAuthRequired ?: true /* authIsRequired */ in <lambda>()
|
/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 | 459 public StatelessBuilder(@NonNull Control control) { in StatelessBuilder() argument 460 Preconditions.checkNotNull(control); in StatelessBuilder() 461 mControlId = control.mControlId; in StatelessBuilder() 462 mDeviceType = control.mDeviceType; in StatelessBuilder() 463 mTitle = control.mTitle; in StatelessBuilder() 464 mSubtitle = control.mSubtitle; in StatelessBuilder() 465 mStructure = control.mStructure; in StatelessBuilder() 466 mZone = control.mZone; in StatelessBuilder() 467 mAppIntent = control.mAppIntent; in StatelessBuilder() 468 mCustomIcon = control.mCustomIcon; in StatelessBuilder() [all …]
|
D | ControlsProviderService.java | 280 private static boolean isStatelessControl(Control control) { 281 return (control.getStatus() == Control.STATUS_UNKNOWN 282 && control.getControlTemplate().getTemplateType() 284 && TextUtils.isEmpty(control.getStatusText())); 312 public void onNext(@NonNull Control control) { 313 Preconditions.checkNotNull(control); 315 if (mEnforceStateless && !isStatelessControl(control)) { 318 control = new Control.StatelessBuilder(control).build(); 321 control.getControlTemplate().prepareTemplateForBinder(mContext); 323 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 | 58 private lateinit var control: Control variable in com.android.systemui.controls.management.ControlsRequestDialog 95 control = intent.getParcelableExtra(ControlsProviderService.EXTRA_CONTROL) ?: run { in onCreate() 135 return favorites.any { it.controls.any { it.controlId == control.controlId } } in isCurrentFavorite() 139 val renderInfo = RenderInfo.lookup(this, controlComponent, control.deviceType) in createDialog() 146 requireViewById<TextView>(R.id.title).text = control.title in createDialog() 147 requireViewById<TextView>(R.id.subtitle).text = control.subtitle in createDialog() 148 requireViewById<View>(R.id.control).elevation = in createDialog() 174 control.structure ?: "", in onClick() 175 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 | 98 private lateinit var control: Control variable in com.android.systemui.controls.management.ControlsRequestDialogTest 104 control = Control.StatelessBuilder(CONTROL_ID, PendingIntent(iIntentSender)) in setUp() 114 intent.putExtra(ControlsProviderService.EXTRA_CONTROL, control) in setUp() 139 .addFavorite(eq(CONTROL_COMPONENT), eq(control.structure!!), capture(captor)) in testDialogAddsCorrectControl() 142 assertEquals(control.controlId, it.controlId) in testDialogAddsCorrectControl() 143 assertEquals(control.title, it.controlTitle) in testDialogAddsCorrectControl() 144 assertEquals(control.subtitle, it.controlSubtitle) in testDialogAddsCorrectControl() 145 assertEquals(control.deviceType, it.deviceType) in testDialogAddsCorrectControl()
|
/frameworks/base/core/java/android/view/ |
D | InsetsAnimationControlImpl.java | 215 final InsetsSourceControl control = controls.valueAt(i); in updateSurfacePosition() local 216 final InsetsSourceControl c = mControls.get(control.getType()); in updateSurfacePosition() 220 final Point position = control.getSurfacePosition(); in updateSurfacePosition() 384 final InsetsSourceControl control = controls.valueAt(i); in calculateInsets() local 385 if (control == null) { in calculateInsets() 389 state.getSource(control.getType()).setVisible(shown); in calculateInsets() 402 final InsetsSourceControl control = controls.valueAt(i); in calculateInsets() local 403 if (control == null) { in calculateInsets() 407 if (state == null || state.getSource(control.getType()).isVisible()) { in calculateInsets() 408 insets = Insets.max(insets, control.getInsetsHint()); in calculateInsets() [all …]
|
D | InsetsSourceConsumer.java | 119 public boolean setControl(@Nullable InsetsSourceControl control, in setControl() argument 125 if (Objects.equals(mSourceControl, control)) { in setControl() 126 if (mSourceControl != null && mSourceControl != control) { in setControl() 128 mSourceControl = control; in setControl() 134 mSourceControl = control; in setControl() 135 if (control != null) { in setControl() 137 InsetsState.typeToString(control.getType()), in setControl() 158 final SurfaceControl newLeash = control.getLeash(); in setControl() 160 && requestedVisible != control.isInitiallyVisible()) { in setControl() 179 if (mController.getAnimationType(control.getType()) == ANIMATION_TYPE_NONE) { in setControl()
|
/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 …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/ |
D | ControlViewHolderTest.kt | 86 val control = Control.StatelessBuilder(DEFAULT_CONTROL) in updateStatusRow_customIconWithTint_iconTintRemains() constant 93 cvh.updateStatusRow(enabled = true, CONTROL_TITLE, DRAWABLE, COLOR, control) in updateStatusRow_customIconWithTint_iconTintRemains() 101 val control = Control.StatelessBuilder(CONTROL_ID, mock(PendingIntent::class.java)) in updateStatusRow_customIconWithTintList_iconTintListRemains() constant 108 cvh.updateStatusRow(enabled = true, CONTROL_TITLE, DRAWABLE, COLOR, control) in updateStatusRow_customIconWithTintList_iconTintListRemains() 115 val control = Control.StatefulBuilder(CONTROL_ID, mock(PendingIntent::class.java)) in chevronIcon() constant 124 control in chevronIcon()
|