Searched defs:position (Results 251 - 275 of 357) sorted by relevance

<<1112131415

/packages/apps/Dialer/InCallUI/src/com/android/incallui/
H A DConferenceParticipantListAdapter.java274 * @param position Position of the item whose data we want within the adapter's
279 public Object getItem(int position) { argument
280 return mConferenceParticipants.get(position);
284 * Retreives the adapter-specific item id for an item at a specified position.
286 * @param position The position of the item within the adapter's data set whose row id we want.
290 public long getItemId(int position) { argument
291 return position;
319 for (int position = 0; position <
339 getView(int position, View convertView, ViewGroup parent) argument
[all...]
/packages/apps/Dialer/src/com/android/dialer/list/
H A DListsFragment.java104 * The position of the currently selected tab.
120 public long getItemId(int position) { argument
121 return getRtlPosition(position);
125 public Fragment getItem(int position) { argument
126 switch (getRtlPosition(position)) {
140 throw new IllegalStateException("No fragment at position " + position);
144 public Fragment instantiateItem(ViewGroup container, int position) { argument
149 (Fragment) super.instantiateItem(container, position);
152 } else if (fragment instanceof CallLogFragment && position
184 getPageTitle(int position) argument
287 onPageScrolled(int position, float positionOffset, int positionOffsetPixels) argument
298 onPageSelected(int position) argument
449 getRtlPosition(int position) argument
[all...]
H A DSpeedDialFragment.java335 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
337 if (position <= contactTileAdapterCount) {
338 Log.e(TAG, "onItemClick() event for unexpected position. "
339 + "The position " + position + " is before \"all\" section. Ignored.");
356 final int position = firstVisiblePosition + i;
357 // Since we are getting the position from mListView and then querying
360 if (!mContactTileAdapter.isIndexInBound(position)) {
363 final long itemId = mContactTileAdapter.getItemId(position);
396 int position
[all...]
/packages/apps/Launcher2/src/com/android/launcher2/
H A DWallpaperChooserDialogFragment.java160 private void selectWallpaper(int position) { argument
164 wpm.setResource(mImages.get(position));
175 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
176 selectWallpaper(position);
181 public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { argument
185 mLoader = (WallpaperLoader) new WallpaperLoader().execute(position);
238 public Object getItem(int position) { argument
239 return position;
242 public long getItemId(int position) { argument
243 return position;
246 getView(int position, View convertView, ViewGroup parent) argument
[all...]
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
H A DConversationFastScroller.java47 * Adds a "fast-scroll" bar to the conversation RecyclerView that shows the current position within
48 * the conversation and allows quickly moving to another position by dragging the scrollbar thumb
50 * date/time of the first visible message at the current position.
60 * @param position where the scrollbar should appear (either {@code POSITION_RIGHT_SIDE} or
65 public static ConversationFastScroller addTo(RecyclerView rv, int position) { argument
67 return new ConversationFastScroller(rv, position);
122 private ConversationFastScroller(RecyclerView rv, int position) { argument
134 mPosRight = (position == POSITION_RIGHT_SIDE);
294 * Returns the current position in the conversation, as a value between 0 and 1, inclusive.
404 // Convert the desired position fro
[all...]
/packages/apps/Music/src/com/android/music/
H A DPlaylistBrowserActivity.java254 // restore previous position
314 mPlaylistCursor.moveToPosition(mi.position);
375 protected void onListItemClick(ListView l, View v, int position, long id) argument
H A DQueryBrowserActivity.java274 protected void onListItemClick(ListView l, View v, int position, long id) argument
278 mQueryCursor.moveToPosition(position);
297 } else if (position >= 0 && id >= 0){
301 Log.e("QueryBrowser", "invalid position/id: " + position + "/" + id);
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DSearchActivity.java379 int position = pos.getPosition();
384 if (position < 0 || position >= count) {
385 Log.w(TAG, "Invalid suggestion position " + position + ", count = " + count);
388 suggestions.moveTo(position);
423 protected void launchSuggestion(SuggestionCursor suggestions, int position) { argument
424 suggestions.moveTo(position);
/packages/apps/Settings/src/com/android/settings/
H A DDeviceAdminSettings.java172 public void onListItemClick(ListView l, View v, int position, long id) { argument
173 Object o = l.getAdapter().getItem(position);
208 * The item for the given position in the list.
213 public Object getItem(int position) { argument
214 return ((DeviceAdminListItem) (mAdmins.get(position))).info;
218 public long getItemId(int position) { argument
219 return position;
239 public int getItemViewType(int position) { argument
244 public boolean isEnabled(int position) { argument
245 Object o = getItem(position);
259 getView(int position, View convertView, ViewGroup parent) argument
[all...]
/packages/apps/Settings/src/com/android/settings/inputmethod/
H A DKeyboardLayoutDialogFragment.java237 public void setCheckedItem(int position) { argument
238 mCheckedItem = position;
242 public View getView(int position, View convertView, ViewGroup parent) { argument
243 KeyboardLayout item = getItem(position);
253 boolean checked = (position == mCheckedItem);
/packages/apps/Settings/src/com/android/settings/print/
H A DPrintServiceSettingsFragment.java278 public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
279 PrinterInfo printer = (PrinterInfo) mPrintersAdapter.getItem(position);
524 public Object getItem(int position) { argument
526 return mFilteredPrinters.get(position);
531 public long getItemId(int position) { argument
532 return position;
538 * @param position The position of the printer in the list
541 public boolean isActionable(int position) { argument
542 PrinterInfo printer = (PrinterInfo) getItem(position);
547 getView(int position, View convertView, ViewGroup parent) argument
[all...]
/packages/apps/Settings/src/com/android/settings/users/
H A DEditUserPhotoController.java183 public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
186 (RestrictedMenuItem) parent.getAdapter().getItem(position);
435 public View getView(int position, View convertView, ViewGroup parent) { argument
436 final View view = super.getView(position, convertView, parent);
437 final RestrictedMenuItem item = getItem(position);
/packages/apps/Settings/src/com/android/settings/vpn2/
H A DConfigDialog.java247 public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { argument
249 changeType(position);
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/animation/
H A DFadeAndShortSlide.java53 public abstract float getGoneX(ViewGroup sceneRoot, View view, int[] position, argument
59 public float getGoneX(ViewGroup sceneRoot, View view, int[] position, int distance) {
73 public float getGoneX(ViewGroup sceneRoot, View view, int[] position, int distance) {
117 int[] position = new int[2];
118 view.getLocationOnScreen(position);
119 transitionValues.values.put(PROPNAME_SCREEN_POSITION, position);
220 int[] position = (int[]) endValues.values.get(PROPNAME_SCREEN_POSITION);
221 int left = position[0];
223 float startX = mSlideCalculator.getGoneX(sceneRoot, view, position, mDistance);
245 int[] position
[all...]
/packages/apps/TV/src/com/android/tv/menu/
H A DMenuLayoutManager.java173 int position = 0;
177 Log.d(TAG, prefix + " position=" + position++
199 * @param position The index of the menu row view in the list. This is not the index of the view
206 private boolean isVisibleInLayout(int position, MenuRowView view, List<Integer> rowsToAdd, argument
209 return (view.getVisibility() != View.GONE && !rowsToRemove.contains(position))
210 || rowsToAdd.contains(position);
261 int position = mSelectedPosition + 1;
262 for (; position < count; ++position) {
308 setSelectedPosition(int position) argument
345 setSelectedPositionSmooth(final int position) argument
[all...]
/packages/apps/TV/src/com/android/tv/ui/
H A DKeypadChannelSwitchView.java137 public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
138 if (position >= mAdapter.getCount()) {
143 final Channel channel = ((Channel) mAdapter.getItem(position));
156 public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
157 if (position >= mAdapter.getCount()) {
161 mSelectedChannel = (Channel) mAdapter.getItem(position);
163 if (position != 0 && !mNavigated) {
375 public Object getItem(int position) { argument
376 return mChannelCandidates.get(position);
380 public long getItemId(int position) { argument
385 getView(int position, View convertView, ViewGroup parent) argument
[all...]
H A DSelectInputView.java327 public void onBindViewHolder(ViewHolder holder, final int position) { argument
328 TvInputInfo input = mInputList.get(position);
350 mSelectedInput = mInputList.get(position);
362 mSelectedInput = mInputList.get(position);
/packages/apps/TV/src/com/android/tv/ui/sidepanel/
H A DSideFragment.java154 protected void setSelectedPosition(int position) { argument
155 mListView.setSelectedPosition(position);
190 * position.
193 protected void notifyItemChanged(int position) { argument
194 notifyItemChanged(mAdapter.getItem(position));
209 * Notifies some items of ItemAdapter has changed starting from position
276 public void onBindViewHolder(ViewHolder holder, int position) { argument
277 holder.onBind(this, getItem(position));
286 public int getItemViewType(int position) { argument
287 return getItem(position)
295 getItem(int position) argument
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
H A DConversationPagerAdapter.java63 * data set size is exactly size=1, with {@link #getDefaultConversation()} at position 0.
199 public Fragment getItem(int position) { argument
206 if (position != 0) {
207 LogUtils.wtf(LOG_TAG, "pager cursor is null and position is non-zero: %d",
208 position);
211 c.position = 0;
213 if (!cursor.moveToPosition(position)) {
214 LogUtils.wtf(LOG_TAG, "unable to seek to ConversationCursor pos=%d (%s)", position,
220 c.position = position;
280 setPrimaryItem(ViewGroup container, int position, Object object) argument
545 onPageScrolled(int position, float positionOffset, int positionOffsetPixels) argument
550 onPageSelected(int position) argument
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DLeaveBehindItem.java48 public int position; field in class:LeaveBehindItem
111 position = pos;
H A DMailboxSelectionActivity.java257 public View getView(int position, View convertView, ViewGroup parent) {
258 View v = super.getView(position, convertView, parent);
260 final Account account = Account.builder().buildFrom((Cursor) getItem(position));
270 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
271 selectAccount(Account.builder().buildFrom((Cursor) mAdapter.getItem(position)));
/packages/apps/UnifiedEmail/src/com/android/mail/widget/
H A DWidgetService.java391 * @return the {@link RemoteViews} for a specific position in the list.
394 public RemoteViews getViewAt(int position) { argument
398 || (mShouldShowViewMore && position >= getConversationCount())) {
402 if (!mConversationCursor.moveToPosition(position)) {
403 // If we ever fail to move to a position, return the
406 LogUtils.e(LOG_TAG, "Failed to move to position %d in the cursor.", position);
514 public long getItemId(int position) { argument
515 return position;
599 * Note: This seeks to the first position i
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/
H A DEmojiCategory.java310 // Returns the view pager's page position for the categoryId
336 // position. The category page id is numbered in each category. And the view page position
337 // is the position of the current shown page in the view pager which contains all pages of
339 public Pair<Integer, Integer> getCategoryIdAndPageIdFromPagePosition(final int position) { argument
344 if (sum > position) {
345 return new Pair<>(properties.mCategoryId, position - temp);
351 // Returns a keyboard from the view pager's page position.
352 public DynamicGridKeyboard getKeyboardFromPagePosition(final int position) { argument
354 getCategoryIdAndPageIdFromPagePosition(position);
[all...]
H A DEmojiPalettesView.java252 public void onPageSelected(final int position) { argument
254 mEmojiCategory.getCategoryIdAndPageIdFromPagePosition(position);
258 mCurrentPagerPosition = position;
267 public void onPageScrolled(final int position, final float positionOffset, argument
271 mEmojiCategory.getCategoryIdAndPageIdFromPagePosition(position);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/
H A DUserDictionarySettings.java206 public void onListItemClick(ListView l, View v, int position, long id) { argument
207 final String word = getWord(position);
208 final String shortcut = getShortcut(position);
260 private String getWord(final int position) { argument
262 mCursor.moveToPosition(position);
270 private String getShortcut(final int position) { argument
273 mCursor.moveToPosition(position);
342 public int getSectionForPosition(final int position) { argument
343 return null == mIndexer ? 0 : mIndexer.getSectionForPosition(position);

Completed in 2217 milliseconds

<<1112131415