Home
last modified time | relevance | path

Searched refs:position (Results 1 – 25 of 573) sorted by relevance

12345678910>>...23

/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
H A DNotificationSectionsLogger.kt39 fun logIncomingHeader(position: Int) = logPosition(position, "INCOMING HEADER")
40 fun logMediaControls(position: Int) = logPosition(position, "MEDIA CONTROLS")
41 fun logConversationsHeader(position: Int) = logPosition(position, "CONVERSATIONS HEADER")
42 fun logAlertingHeader(position: Int) = logPosition(position, "ALERTING HEADER")
43 fun logSilentHeader(position: Int) = logPosition(position, "SILENT HEADER")
49 int1 = position
55 fun logHeadsUp(position: Int, isHeadsUp: Boolean) =
61 fun logSilent(position: Int, isHeadsUp: Boolean) =
62 logPosition(position, "Silent", isHeadsUp)
74 int1 = position
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/
H A DDividerSnapAlgorithm.java199 if (position < mFirstSplitTarget.position) { in calculateDismissingFraction()
202 } else if (position > mLastSplitTarget.position) { in calculateDismissingFraction()
203 return (float) (position - mLastSplitTarget.position) in calculateDismissingFraction()
210 if (position < mFirstSplitTarget.position) { in getClosestDismissTarget()
212 } else if (position > mLastSplitTarget.position) { in getClosestDismissTarget()
214 } else if (position - mDismissStartTarget.position in getClosestDismissTarget()
215 < mDismissEndTarget.position - position) { in getClosestDismissTarget()
261 return mFirstSplitTarget.position < position && position < mLastSplitTarget.position; in shouldApplyFreeSnapMode()
266 return new SnapTarget(position, position, SnapTarget.FLAG_NONE); in snap()
273 float distance = Math.abs(position - target.position); in snap()
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/listview/
H A DListHeterogeneous.java40 switch (position % 3) { in createView()
43 position, parent.getContext(), getValueAtPosition(position), desiredHeight); in createView()
46 position, parent.getContext(), getValueAtPosition(position), desiredHeight); in createView()
49 position, parent.getContext(), getValueAtPosition(position), desiredHeight); in createView()
56 public View convertView(int position, View convertView, ViewGroup parent) { in convertView() argument
57 switch (position % 3) { in convertView()
59 return ListItemFactory.convertText(convertView, getValueAtPosition(position), position); in convertView()
62 position); in convertView()
65 position); in convertView()
72 public int getItemViewType(int position) { in getItemViewType() argument
[all …]
H A DListThrasher.java79 public Object getItem(int position) { in getItem() argument
80 return position; in getItem()
83 public long getItemId(int position) { in getItemId() argument
84 return position; in getItemId()
87 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
95 view.setText(mTitles[position] + " " + mVersion[position]); in getView()
101 int position = mRandomizer.nextInt(getCount()); in bumpVersion() local
102 mVersion[position]++; in bumpVersion()
124 public void onItemSelected(AdapterView parent, View v, int position, long id) { in onItemSelected() argument
125 mText.setText("Position " + position); in onItemSelected()
/aosp14/frameworks/base/core/tests/coretests/src/android/util/
H A DListScenario.java174 mUnselectableItems.add(position); in setPositionUnselectable()
289 setClickedPosition(position); in positionClicked()
298 setLongClickedPosition(position); in positionLongClicked()
351 positionSelected(position); in onCreate()
361 positionClicked(position); in onCreate()
496 "position " + position: in getValueAtPosition()
497 "------- " + position; in getValueAtPosition()
544 return ListItemFactory.text(position, parent.getContext(), getValueAtPosition(position), in createView()
552 return ListItemFactory.convertText(convertView, getValueAtPosition(position), position); in convertView()
621 return position; in getItemId()
[all …]
H A DGridScenario.java139 int position, double itemScreenSizeFactor) { in setPositionScreenSizeFactorOverride() argument
267 positionSelected(position); in onCreate()
315 public final String getValueAtPosition(int position) { in getValueAtPosition() argument
316 return "postion " + position; in getValueAtPosition()
331 result.setText(getValueAtPosition(position)); in createView()
336 result.setId(position); in createView()
348 public Object getItem(int position) { in getItem() argument
349 return getValueAtPosition(position); in getItem()
352 public long getItemId(int position) { in getItemId() argument
353 return position; in getItemId()
[all …]
/aosp14/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
H A DAddPrinterActivity.java396 return position; in getItemId()
454 if (position == 0) { in getItemViewType()
472 if (position == 0) { in getItem()
486 return position; in getItemId()
536 if (position == 0) { in getView()
584 if (position == 0) { in getView()
660 if (position == 0) { in getItemViewType()
671 if (position == 0 || position == getAllServicesPos()) { in getItem()
680 return position; in getItemId()
685 if (position == 0) { in getView()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/complication/
H A DComplicationLayoutParams.java114 public ComplicationLayoutParams(int width, int height, @Position int position, in ComplicationLayoutParams() argument
132 public ComplicationLayoutParams(int width, int height, @Position int position, in ComplicationLayoutParams() argument
205 if (!validatePosition(position)) { in ComplicationLayoutParams()
206 throw new IllegalArgumentException("invalid position:" + position); in ComplicationLayoutParams()
208 mPosition = position; in ComplicationLayoutParams()
210 if (!validateDirection(position, direction)) { in ComplicationLayoutParams()
241 if ((position & currentPosition) == currentPosition in validateDirection()
266 if ((position & currentPosition) == currentPosition) { in iteratePositions()
272 private static boolean validatePosition(@Position int position) { in validatePosition() argument
273 if (position == 0) { in validatePosition()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
H A DFavoritesModel.kt54 return position > 0 && position < dividerPosition
58 return position >= 0 && position < dividerPosition - 1
61 override fun moveBefore(position: Int) {
62 if (!canMoveBefore(position)) {
65 onMoveItem(position, position - 1)
69 override fun moveAfter(position: Int) {
70 if (!canMoveAfter(position)) {
73 onMoveItem(position, position + 1)
98 if (position == -1) {
101 if (position < dividerPosition && favorite || position > dividerPosition && !favorite) {
[all …]
/aosp14/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/
H A DDeviceListAdapter.java53 public DeviceFilterPair<?> getItem(int position) { in getItem() argument
54 return mDevices.get(position); in getItem()
77 public void onBindViewHolder(ViewHolder holder, int position) { in onBindViewHolder() argument
84 public int getItemViewType(int position) { in getItemViewType() argument
85 return isWifiDevice(position) ? TYPE_WIFI : TYPE_BT; in getItemViewType()
89 public long getItemId(int position) { in getItemId() argument
90 return position; in getItemId()
98 public void setSelectedPosition(int position) { in setSelectedPosition() argument
99 mSelectedPosition = position; in setSelectedPosition()
117 private boolean isWifiDevice(int position) { in isWifiDevice() argument
[all …]
/aosp14/frameworks/base/core/java/android/widget/
H A DDropDownListView.java135 if (position != INVALID_POSITION && position != mSelectedPosition) { in onHoverEvent()
143 setSelectedPositionInt(position); in onHoverEvent()
144 setNextSelectedPositionInt(position); in onHoverEvent()
195 if (position == INVALID_POSITION) { in onForwardedEvent()
201 setPressedItem(child, position, x, y); in onForwardedEvent()
206 performItemClick(child, position, id); in onForwardedEvent()
272 mMotionPosition = position; in setPressedItem()
283 setSelectedPositionInt(position); in setPressedItem()
284 positionSelectorLikeTouch(position, child, x, y); in setPressedItem()
304 View obtainView(int position, boolean[] isScrap) { in obtainView() argument
[all …]
H A DHeaderViewListAdapter.java150 public boolean isEnabled(int position) { in isEnabled() argument
153 if (position < numHeaders) { in isEnabled()
158 final int adjPosition = position - numHeaders; in isEnabled()
171 public Object getItem(int position) { in getItem() argument
174 if (position < numHeaders) { in getItem()
179 final int adjPosition = position - numHeaders; in getItem()
192 public long getItemId(int position) { in getItemId() argument
195 int adjPosition = position - numHeaders; in getItemId()
214 if (position < numHeaders) { in getView()
232 public int getItemViewType(int position) { in getItemViewType() argument
[all …]
H A DYearPickerView.java91 if (position >= 0 && position < getCount()) { in setYear()
92 setSelectionCentered(position); in setYear()
98 public void setSelectionCentered(int position) { in setSelectionCentered() argument
100 setSelectionFromTop(position, offset); in setSelectionCentered()
150 public Integer getItem(int position) { in getItem() argument
151 return getYearForPosition(position); in getItem()
155 public long getItemId(int position) { in getItemId() argument
156 return getYearForPosition(position); in getItemId()
164 return mMinYear + position; in getYearForPosition()
201 public int getItemViewType(int position) { in getItemViewType() argument
[all …]
H A DAbsSpinner.java135 setSelectedPositionInt(position); in setAdapter()
268 final int position = mFirstPosition; in recycleAllViews() local
273 int index = position + i; in recycleAllViews()
289 public void setSelection(int position) { in setSelection() argument
386 int position; field in AbsSpinner.SavedState
401 position = in.readInt(); in SavedState()
408 out.writeInt(position); in writeToParcel()
439 ss.position = INVALID_POSITION; in onSaveInstanceState()
454 mSyncPosition = ss.position; in onRestoreInstanceState()
464 mScrapHeap.put(position, v); in put()
[all …]
H A DDayPickerPagerAdapter.java112 final int position = getPositionForDay(day); in getBoundsForDate() local
204 private int getMonthForPosition(int position) { in getMonthForPosition() argument
208 private int getYearForPosition(int position) { in getYearForPosition() argument
221 return position; in getPositionForDay()
249 final int year = getYearForPosition(position); in instantiateItem()
277 mItems.put(position, holder); in instantiateItem()
289 mItems.remove(position); in destroyItem()
295 return holder.position; in getItemPosition()
299 public CharSequence getPageTitle(int position) { in getPageTitle() argument
329 public final int position; field in DayPickerPagerAdapter.ViewHolder
[all …]
H A DRemoteViewsAdapter.java303 if (position < newCount) { in handleMessage()
322 if (position > -1) { in handleMessage()
438 put(position, refs); in add()
442 layout.cacheIndex = position; in add()
659 mIndexRemoteViews.put(position, v); in insert()
672 return mIndexMetaData.get(position); in getMetaDataAt()
724 mLastRequestedIndex = position; in queueRequestedPositionToLoad()
731 if (mPreloadLowerBound <= position && position <= mPreloadUpperBound) { in queuePositionsToBePreloadedFromRequestedPosition()
1063 public Object getItem(int position) { in getItem() argument
1068 public long getItemId(int position) { in getItemId() argument
[all …]
/aosp14/frameworks/base/core/java/android/preference/
H A DPreferenceGroupAdapter.java220 public Preference getItem(int position) { in getItem() argument
221 if (position < 0 || position >= getCount()) return null; in getItem()
222 return mPreferenceList.get(position); in getItem()
225 public long getItemId(int position) { in getItemId() argument
226 if (position < 0 || position >= getCount()) return ListView.INVALID_ROW_ID; in getItemId()
227 return this.getItem(position).getId(); in getItemId()
233 public void setHighlighted(int position) { in setHighlighted() argument
234 mHighlightedPosition = position; in setHighlighted()
267 public boolean isEnabled(int position) { in isEnabled() argument
268 if (position < 0 || position >= getCount()) return true; in isEnabled()
[all …]
/aosp14/frameworks/base/core/java/com/android/internal/widget/
H A DPagerAdapter.java109 public Object instantiateItem(ViewGroup container, int position) { in instantiateItem() argument
110 return instantiateItem((View) container, position); in instantiateItem()
123 public void destroyItem(ViewGroup container, int position, Object object) { in destroyItem() argument
124 destroyItem((View) container, position, object); in destroyItem()
136 public void setPrimaryItem(ViewGroup container, int position, Object object) { in setPrimaryItem() argument
137 setPrimaryItem((View) container, position, object); in setPrimaryItem()
174 public Object instantiateItem(View container, int position) { in instantiateItem() argument
191 public void destroyItem(View container, int position, Object object) { in destroyItem() argument
206 public void setPrimaryItem(View container, int position, Object object) { in setPrimaryItem() argument
306 public CharSequence getPageTitle(int position) { in getPageTitle() argument
[all …]
H A DAdapterHelper.java137 for (int position = op.positionStart; position < tmpEnd; position++) { in applyRemove()
191 for (int position = op.positionStart; position < tmpEnd; position++) { in applyUpdate()
199 tmpStart = position; in applyUpdate()
208 tmpStart = position; in applyUpdate()
466 int findPositionOffset(int position) { in findPositionOffset() argument
476 position = op.itemCount; in findPositionOffset()
490 position -= op.itemCount; in findPositionOffset()
496 return position; in findPositionOffset()
610 position -= 1; in applyPendingUpdatesToPosition()
613 position += 1; in applyPendingUpdatesToPosition()
[all …]
H A DWatchHeaderListView.java151 public boolean isEnabled(int position) { in isEnabled() argument
153 return position < topPanelCount ? false : super.isEnabled(position - topPanelCount); in isEnabled()
157 public Object getItem(int position) { in getItem() argument
159 return position < topPanelCount ? null : super.getItem(position - topPanelCount); in getItem()
163 public long getItemId(int position) { in getItemId() argument
165 if (getWrappedAdapter() != null && position >= numHeaders) { in getItemId()
166 int adjPosition = position - numHeaders; in getItemId()
178 return position < topPanelCount in getView()
183 public int getItemViewType(int position) { in getItemViewType() argument
185 if (getWrappedAdapter() != null && position >= numHeaders) { in getItemViewType()
[all …]
/aosp14/frameworks/base/core/java/com/android/internal/app/
H A DSuggestedLocaleAdapter.java107 public boolean isEnabled(int position) { in isEnabled() argument
114 public int getItemViewType(int position) { in getItemViewType() argument
125 if (position == 0) { in getItemViewType()
128 if (position == mSuggestionCount + 1) { in getItemViewType()
169 public Object getItem(int position) { in getItem() argument
170 if (isHeaderPosition(position)) { in getItem()
182 private boolean isHeaderPosition(int position) { in isHeaderPosition() argument
183 return showHeaders() && (position == 0 || position == mSuggestionCount + 1); in isHeaderPosition()
187 public long getItemId(int position) { in getItemId() argument
188 return position; in getItemId()
[all …]
/aosp14/frameworks/base/core/java/com/android/internal/view/menu/
H A DMenuAdapter.java65 public MenuItemImpl getItem(int position) { in getItem() argument
68 if (mExpandedIndex >= 0 && position >= mExpandedIndex) { in getItem()
69 position++; in getItem()
71 return items.get(position); in getItem()
74 public long getItemId(int position) { in getItemId() argument
77 return position; in getItemId()
80 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
85 final int currGroupId = getItem(position).getGroupId(); in getView()
87 position - 1 >= 0 ? getItem(position - 1).getGroupId() : currGroupId; in getView()
97 itemView.initialize(getItem(position), 0); in getView()
/aosp14/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/widget/
H A DFakeListAdapter.kt32 override fun getItem(position: Int): Any = items[position].data
34 override fun getItemId(position: Int): Long = items[position].id
36 override fun getView(position: Int, convertView: View?, parent: ViewGroup?): View =
37 items[position].view(position, convertView, parent)
41 val view: (position: Int, convertView: View?, parent: ViewGroup?) -> View,
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/gridview/
H A DGridThrasher.java81 public Object getItem(int position) { in getItem() argument
82 return position; in getItem()
85 public long getItemId(int position) { in getItemId() argument
86 return position; in getItemId()
89 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
97 view.setText(mTitles[position] + " " + mVersion[position]); in getView()
103 int position = mRandomizer.nextInt(getCount()); in bumpVersion() local
104 mVersion[position]++; in bumpVersion()
128 public void onItemSelected(AdapterView parent, View v, int position, long id) { in onItemSelected() argument
129 mText.setText("Position " + position); in onItemSelected()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/
H A DTileAdapter.java268 if (position == 0) { in getItemViewType()
274 if (position == mTileDividerIndex) { in getItemViewType()
277 if (mTiles.get(position) == null) { in getItemViewType()
377 final boolean selectable = 0 < position && position < mEditIndex; in onBindViewHolder()
423 if (position == mFocusIndex) { in onBindViewHolder()
457 mFocusIndex = position;
486 mFocusIndex = position;
496 return position < mEditIndex;
500 return position > mEditIndex;
505 move(position, mEditIndex);
[all …]

12345678910>>...23