/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/binder/ |
D | SeekBarObserver.kt | 39 open class SeekBarObserver(private val holder: MediaViewHolder) : constant in com.android.systemui.media.controls.ui.binder.SeekBarObserver 52 holder.seekBar.context.resources.getDimensionPixelSize( 56 holder.seekBar.context.resources.getDimensionPixelSize( 60 holder.seekBar.context.resources.getDimensionPixelSize( 64 holder.seekBar.context.resources.getDimensionPixelSize( 72 holder.seekBar.context.resources 76 holder.seekBar.context.resources 80 holder.seekBar.context.resources 84 holder.seekBar.context.resources 87 val progressDrawable = holder.seekBar.progressDrawable as? SquigglyProgress [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/ |
D | TileAdapterDelegate.java | 60 TileAdapter.Holder holder = getHolder(host); in onInitializeAccessibilityNodeInfo() local 63 if (holder == null || !holder.canTakeAccessibleAction()) { in onInitializeAccessibilityNodeInfo() 69 addClickAction(host, info, holder); in onInitializeAccessibilityNodeInfo() 70 maybeAddActionAddToPosition(host, info, holder); in onInitializeAccessibilityNodeInfo() 71 maybeAddActionMoveToPosition(host, info, holder); in onInitializeAccessibilityNodeInfo() 73 if (holder.isCurrentTile()) { in onInitializeAccessibilityNodeInfo() 75 R.string.accessibility_qs_edit_position, holder.getLayoutPosition())); in onInitializeAccessibilityNodeInfo() 81 TileAdapter.Holder holder = getHolder(host); in performAccessibilityAction() local 83 if (holder == null || !holder.canTakeAccessibleAction()) { in performAccessibilityAction() 89 holder.toggleState(); in performAccessibilityAction() [all …]
|
D | TileAdapter.java | 344 public boolean onFailedToRecycleView(Holder holder) { in onFailedToRecycleView() argument 345 holder.stopDrag(); in onFailedToRecycleView() 346 holder.clearDrag(); in onFailedToRecycleView() 360 public void onBindViewHolder(final Holder holder, int position) { in onBindViewHolder() argument 361 if (holder.mTileView != null) { in onBindViewHolder() 362 holder.mTileView.setMinimumHeight(mMinTileViewHeight); in onBindViewHolder() 365 if (holder.getItemViewType() == TYPE_HEADER) { in onBindViewHolder() 366 setSelectableForHeaders(holder.itemView); in onBindViewHolder() 369 if (holder.getItemViewType() == TYPE_DIVIDER) { in onBindViewHolder() 370 holder.itemView.setVisibility(mTileDividerIndex < mTiles.size() - 1 ? View.VISIBLE in onBindViewHolder() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ui/ |
D | StatusBarIconControllerImpl.java | 145 for (StatusBarIconHolder holder : holders) { in addIconGroup() 146 int viewIndex = mStatusBarIconList.getViewIndex(slot.getName(), holder.getTag()); in addIconGroup() 147 group.onIconAdded(viewIndex, slot.getName(), hidden, holder); in addIconGroup() 199 for (StatusBarIconHolder holder : iconsForSlot) { in onTuningChanged() 200 setIcon(item.getName(), holder); in onTuningChanged() local 205 private void addSystemIcon(String slot, StatusBarIconHolder holder) { in addSystemIcon() argument 206 int viewIndex = mStatusBarIconList.getViewIndex(slot, holder.getTag()); in addSystemIcon() 209 mIconGroups.forEach(l -> l.onIconAdded(viewIndex, slot, hidden, holder)); in addSystemIcon() 227 StatusBarIconHolder holder = mStatusBarIconList.getIconHolder(slot, 0); in setIcon() local 228 if (holder == null) { in setIcon() [all …]
|
D | IconManager.java | 136 StatusBarIconHolder holder) { in onIconAdded() argument 137 addHolder(index, slot, blocked, holder); in onIconAdded() 141 StatusBarIconHolder holder) { in addHolder() argument 147 return switch (holder.getType()) { in addHolder() 148 case TYPE_ICON -> addIcon(index, slot, blocked, holder.getIcon()); in addHolder() 150 case TYPE_MOBILE_NEW -> addNewMobileIcon(index, slot, holder.getTag()); in addHolder() 153 addBindableIcon((BindableIconHolder) holder, index); in addHolder() 173 protected StatusIconDisplayable addBindableIcon(BindableIconHolder holder, in addBindableIcon() argument 175 mBindableIcons.put(holder.getSlot(), holder); in addBindableIcon() local 176 ModernStatusBarView view = holder.getInitializer().createAndBind(mContext); in addBindableIcon() [all …]
|
D | StatusBarIconList.java | 68 public void setIcon(String slotName, @NonNull StatusBarIconHolder holder) { in setIcon() argument 69 mSlots.get(findOrInsertSlot(slotName)).addHolder(holder); in setIcon() 168 for (StatusBarIconHolder holder : mSubSlots) { in getHolderForTag() 169 if (holder.getTag() == tag) { in getHolderForTag() 170 return holder; in getHolderForTag() 178 public void addHolder(StatusBarIconHolder holder) { in addHolder() argument 179 int tag = holder.getTag(); in addHolder() 181 mHolder = holder; in addHolder() 183 setSubSlot(holder, tag); in addHolder() 206 private void setSubSlot(StatusBarIconHolder holder, int tag) { in setSubSlot() argument [all …]
|
/frameworks/base/packages/SettingsLib/BarChartPreference/src/com/android/settingslib/widget/ |
D | BarChartPreference.java | 156 public void onBindViewHolder(PreferenceViewHolder holder) { in onBindViewHolder() argument 157 super.onBindViewHolder(holder); in onBindViewHolder() 158 holder.setDividerAllowedAbove(true); in onBindViewHolder() 159 holder.setDividerAllowedBelow(true); in onBindViewHolder() 163 bindChartTitleView(holder); in onBindViewHolder() 164 bindChartDetailsView(holder); in onBindViewHolder() 168 holder.itemView.setVisibility(View.INVISIBLE); in onBindViewHolder() 171 holder.itemView.setVisibility(View.VISIBLE); in onBindViewHolder() 176 setEmptyViewVisible(holder, true /* visible */); in onBindViewHolder() 179 setEmptyViewVisible(holder, false /* visible */); in onBindViewHolder() [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | DefaultItemAnimator.java | 59 public ViewHolder holder; field in DefaultItemAnimator.MoveInfo 62 MoveInfo(ViewHolder holder, int fromX, int fromY, int toX, int toY) { in MoveInfo() argument 63 this.holder = holder; in MoveInfo() 112 for (ViewHolder holder : mPendingRemovals) { in runPendingAnimations() 113 animateRemoveImpl(holder); in runPendingAnimations() 126 animateMoveImpl(moveInfo.holder, moveInfo.fromX, moveInfo.fromY, in runPendingAnimations() 134 View view = moves.get(0).holder.itemView; in runPendingAnimations() 157 ViewHolder holder = changes.get(0).oldHolder; in runPendingAnimations() local 158 holder.itemView.postOnAnimationDelayed(changer, getRemoveDuration()); in runPendingAnimations() 172 for (ViewHolder holder : additions) { in runPendingAnimations() [all …]
|
D | ViewInfoStore.java | 66 void addToPreLayout(ViewHolder holder, ItemHolderInfo info) { in addToPreLayout() argument 67 InfoRecord record = mLayoutHolderMap.get(holder); in addToPreLayout() 70 mLayoutHolderMap.put(holder, record); in addToPreLayout() 76 boolean isDisappearing(ViewHolder holder) { in isDisappearing() argument 77 final InfoRecord record = mLayoutHolderMap.get(holder); in isDisappearing() 134 void addToOldChangeHolders(long key, ViewHolder holder) { in addToOldChangeHolders() argument 135 mOldChangedHolders.put(key, holder); in addToOldChangeHolders() 147 void addToAppearedInPreLayoutHolders(ViewHolder holder, ItemHolderInfo info) { in addToAppearedInPreLayoutHolders() argument 148 InfoRecord record = mLayoutHolderMap.get(holder); in addToAppearedInPreLayoutHolders() 151 mLayoutHolderMap.put(holder, record); in addToAppearedInPreLayoutHolders() [all …]
|
D | RecyclerView.java | 1631 final ViewHolder holder = getChildViewHolderInt(mChildHelper.getChildAt(i)); in hasUpdatedView() local 1632 if (holder == null || holder.shouldIgnore()) { in hasUpdatedView() 1635 if (holder.isUpdated()) { in hasUpdatedView() 3568 final ViewHolder holder = getChildViewHolderInt(mChildHelper.getChildAt(i)); in dispatchLayoutStep1() local 3569 if (holder.shouldIgnore() || (holder.isInvalid() && !mAdapter.hasStableIds())) { in dispatchLayoutStep1() 3573 .recordPreLayoutInformation(mState, holder, in dispatchLayoutStep1() 3574 ItemAnimator.buildAdapterChangeFlagsForAnimations(holder), in dispatchLayoutStep1() 3575 holder.getUnmodifiedPayloads()); in dispatchLayoutStep1() 3576 mViewInfoStore.addToPreLayout(holder, animationInfo); in dispatchLayoutStep1() 3577 if (mState.mTrackOldChangeHolders && holder.isUpdated() && !holder.isRemoved() in dispatchLayoutStep1() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | SmsDispatchersControllerTest.java | 468 SmsDispatchersController.DomainSelectionConnectionHolder holder = in testSendTextForEmergencyWhenDomainPs() local 471 assertNotNull(holder); in testSendTextForEmergencyWhenDomainPs() 472 assertNotNull(holder.getConnection()); in testSendTextForEmergencyWhenDomainPs() 473 assertTrue(holder.isEmergency()); in testSendTextForEmergencyWhenDomainPs() 474 assertTrue(holder.isDomainSelectionRequested()); in testSendTextForEmergencyWhenDomainPs() 475 assertEquals(1, holder.getPendingRequests().size()); in testSendTextForEmergencyWhenDomainPs() 484 assertNull(holder.getConnection()); in testSendTextForEmergencyWhenDomainPs() 485 assertFalse(holder.isDomainSelectionRequested()); in testSendTextForEmergencyWhenDomainPs() 486 assertEquals(0, holder.getPendingRequests().size()); in testSendTextForEmergencyWhenDomainPs() 518 SmsDispatchersController.DomainSelectionConnectionHolder holder = in testSendMultipartTextForEmergencyWhenDomainPs() local [all …]
|
/frameworks/base/media/java/android/media/session/ |
D | MediaSessionLegacyHelper.java | 168 SessionHolder holder = mSessions.get(pi); in getSession() local 169 return holder == null ? null : holder.mSession; in getSession() 207 SessionHolder holder = getHolder(pi, true); in addRccListener() local 208 if (holder == null) { in addRccListener() 211 if (holder.mRccListener != null) { in addRccListener() 212 if (holder.mRccListener == listener) { in addRccListener() 220 holder.mRccListener = listener; in addRccListener() 221 holder.mFlags |= MediaSession.FLAG_HANDLES_TRANSPORT_CONTROLS; in addRccListener() 222 holder.mSession.setFlags(holder.mFlags); in addRccListener() 223 holder.update(); in addRccListener() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | StatusBarIconHolder.kt | 123 val holder = StatusBarIconHolder() in forNewWifiIcon() constant 124 holder.type = TYPE_WIFI_NEW in forNewWifiIcon() 125 return holder in forNewWifiIcon() 134 val holder = StatusBarIconHolder() in fromSubIdForModernMobileIcon() constant 135 holder.type = TYPE_MOBILE_NEW in fromSubIdForModernMobileIcon() 136 holder.tag = subId in fromSubIdForModernMobileIcon() 137 return holder in fromSubIdForModernMobileIcon() 146 val holder = StatusBarIconHolder() in fromCallIndicatorState() constant 150 holder.icon = in fromCallIndicatorState() 160 holder.tag = state.subId in fromCallIndicatorState() [all …]
|
/frameworks/base/core/java/com/android/internal/accessibility/dialog/ |
D | ShortcutTargetAdapter.java | 60 ViewHolder holder; in getView() local 65 holder = new ViewHolder(); in getView() 66 holder.mCheckBoxView = convertView.findViewById( in getView() 68 holder.mIconView = convertView.findViewById(R.id.accessibility_shortcut_target_icon); in getView() 69 holder.mLabelView = convertView.findViewById( in getView() 71 holder.mStatusView = convertView.findViewById( in getView() 73 convertView.setTag(holder); in getView() 75 holder = (ViewHolder) convertView.getTag(); in getView() 79 target.updateActionItem(holder, mShortcutMenuMode); in getView()
|
D | AccessibilityTarget.java | 83 public void updateActionItem(@NonNull ViewHolder holder, in updateActionItem() argument 86 holder.mCheckBoxView.setEnabled(true); in updateActionItem() 87 holder.mIconView.setEnabled(true); in updateActionItem() 88 holder.mLabelView.setEnabled(true); in updateActionItem() 89 holder.mStatusView.setEnabled(true); in updateActionItem() 93 holder.mCheckBoxView.setChecked(isEditMenuMode && isShortcutEnabled()); in updateActionItem() 94 holder.mCheckBoxView.setVisibility(isEditMenuMode ? View.VISIBLE : View.GONE); in updateActionItem() 95 holder.mIconView.setImageDrawable(getIcon()); in updateActionItem() 96 holder.mLabelView.setText(getLabel()); in updateActionItem() 97 holder.mStatusView.setVisibility(View.GONE); in updateActionItem()
|
/frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/ |
D | UsageLogActivity.java | 123 final ViewHolder holder; in getView() local 125 holder = new ViewHolder(); in getView() 130 holder.config = (TextView) convertView.findViewById(android.R.id.text1); in getView() 134 holder.packageName = (TextView) convertView.findViewById(android.R.id.text1); in getView() 135 holder.state = (TextView) convertView.findViewById(android.R.id.text2); in getView() 137 convertView.setTag(holder); in getView() 139 holder = (ViewHolder) convertView.getTag(); in getView() 142 if (holder.packageName != null) { in getView() 143 holder.packageName.setText(event.getPackageName()); in getView() 146 if (holder.state != null) { in getView() [all …]
|
/frameworks/base/core/java/android/hardware/camera2/impl/ |
D | CameraOfflineSessionImpl.java | 221 final CaptureCallbackHolder holder; in onCaptureStarted() local 231 holder = CameraOfflineSessionImpl.this.mCaptureCallbackMap.get(requestId); in onCaptureStarted() 233 if (holder == null) { in onCaptureStarted() 237 final Executor executor = holder.getCallback().getExecutor(); in onCaptureStarted() 248 holder.getCallback().getSessionCallback(); in onCaptureStarted() 252 final CaptureRequest request = holder.getRequest(subsequenceId); in onCaptureStarted() 254 if (holder.hasBatchedOutputs()) { in onCaptureStarted() 260 for (int i = 0; i < holder.getRequestCount(); i++) { in onCaptureStarted() 261 final CaptureRequest cbRequest = holder.getRequest(i); in onCaptureStarted() 272 holder.getRequest( in onCaptureStarted() [all …]
|
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/ |
D | DisplaySinkService.java | 70 final SurfaceHolder holder = oldSurfaceView.getHolder(); in setSurfaceView() 71 holder.removeCallback(DisplaySinkService.this); in setSurfaceView() 81 final SurfaceHolder holder = surfaceView.getHolder(); in setSurfaceView() 82 holder.addCallback(DisplaySinkService.this); in setSurfaceView() 83 updateSurfaceFromUi(holder); in setSurfaceView() 107 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() argument 112 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { in surfaceChanged() argument 113 updateSurfaceFromUi(holder); in surfaceChanged() 117 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed() argument 121 private void updateSurfaceFromUi(SurfaceHolder holder) { in updateSurfaceFromUi() argument [all …]
|
/frameworks/libs/native_bridge_support/android_api/libvulkan/proxy/ |
D | gen_vulkan.go | 1112 GuestType(%[1]s* const new_value, GuestHolder& holder, bool& out_of_memory); 1113 …GuestType(%[1]s* const new_value, GuestArrayHolder& holder, const std::uint32_t* size, bool& out_o… 1161 GuestType(const %[1]s* const new_value, GuestHolder& holder, bool& out_of_memory); 1275 holder := "" 1277 holder = "std::unique_ptr<GuestHolderBase> extensions_;\n " 1279 holder += "GuestType<" + name + "> data_;" 1298 … ConvertOptionalStructures(void* head, std::unique_ptr<GuestHolderBase>& holder, bool& out_of_memo… 1299 …rtOptionalStructures(const void* head, std::unique_ptr<GuestHolderBase>& holder, bool& out_of_memo… 1309 …]s*>::GuestHolder& holder, [[maybe_unused]] bool& out_of_memory) : value_(new_value == nullptr ? k… 1310 holder.origin_ = new_value; [all …]
|
/frameworks/base/rs/java/android/renderscript/ |
D | RSSurfaceView.java | 70 SurfaceHolder holder = getHolder(); in init() local 71 holder.addCallback(this); in init() 79 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() argument 80 mSurfaceHolder = holder; in surfaceCreated() 88 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed() argument 102 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { in surfaceChanged() argument 105 mRS.setSurface(holder, w, h); in surfaceChanged()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | KeyboardInterceptor.java | 110 final KeyEventHolder holder = KeyEventHolder.obtain(event, policyFlags, dispatchTime); in addEventToQueue() local 111 holder.next = mEventQueueStart; in addEventToQueue() 112 mEventQueueStart.previous = holder; in addEventToQueue() 113 mEventQueueStart = holder; in addEventToQueue() 168 KeyEventHolder holder = sPool.acquire(); in obtain() local 169 if (holder == null) { in obtain() 170 holder = new KeyEventHolder(); in obtain() 172 holder.event = KeyEvent.obtain(event); in obtain() 173 holder.policyFlags = policyFlags; in obtain() 174 holder.dispatchTime = dispatchTime; in obtain() [all …]
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | SurfaceHolderTarget.java | 48 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { 50 onSurfaceCreated(holder); 54 public void surfaceCreated (SurfaceHolder holder) { 55 onSurfaceCreated(holder); 59 public void surfaceDestroyed (SurfaceHolder holder) { 71 SurfaceHolder holder = ((SurfaceView)view).getHolder(); in onBindToView() local 72 if (holder == null) { in onBindToView() 76 setSurfaceHolder(holder); in onBindToView() 82 public void setSurfaceHolder(SurfaceHolder holder) { in setSurfaceHolder() argument 86 mSurfaceHolder = holder; in setSurfaceHolder() [all …]
|
/frameworks/base/apct-tests/perftests/surfaceflinger/src/android/surfaceflinger/ |
D | SurfaceFlingerTestActivity.java | 69 SurfaceHolder holder = getHolder(); in TestSurfaceView() local 70 holder.addCallback(new SurfaceHolder.Callback() { in TestSurfaceView() 72 public void surfaceCreated(SurfaceHolder holder) { in TestSurfaceView() 76 public void surfaceChanged(SurfaceHolder holder, int format, int width, in TestSurfaceView() 79 public void surfaceDestroyed(SurfaceHolder holder) { in TestSurfaceView() 89 SurfaceHolder holder = getHolder(); in getChildSurfaceControlHelper() local 92 if (holder.getSurface().isValid()) { in getChildSurfaceControlHelper()
|
/frameworks/base/core/java/android/view/ |
D | SurfaceHolder.java | 82 void surfaceCreated(@NonNull SurfaceHolder holder); in surfaceCreated() argument 95 void surfaceChanged(@NonNull SurfaceHolder holder, @PixelFormat.Format int format, in surfaceChanged() argument 107 void surfaceDestroyed(@NonNull SurfaceHolder holder); in surfaceDestroyed() argument 128 void surfaceRedrawNeeded(@NonNull SurfaceHolder holder); in surfaceRedrawNeeded() argument 146 default void surfaceRedrawNeededAsync(@NonNull SurfaceHolder holder, in surfaceRedrawNeededAsync() argument 148 surfaceRedrawNeeded(holder); in surfaceRedrawNeededAsync()
|
/frameworks/base/tests/SurfaceViewBufferTests/src/com/android/test/ |
D | MainActivity.kt | 101 surfaceView.holder.addCallback(object : SurfaceHolder.Callback { in createSurfaceView() 102 override fun surfaceCreated(holder: SurfaceHolder) { in createSurfaceView() 104 mSurfaceHolder = holder in createSurfaceView() 105 mSurfaceProxy.setSurface(holder.surface) in createSurfaceView() 111 holder: SurfaceHolder, in createSurfaceView() 119 override fun surfaceDestroyed(holder: SurfaceHolder) { in createSurfaceView() 130 val holder = mSurfaceHolder ?: return Rect() in drawFrame() constant 131 val canvas = holder.lockCanvas() in drawFrame() 137 holder.unlockCanvasAndPost(canvas) in drawFrame()
|