Home
last modified time | relevance | path

Searched refs:item (Results 1 – 25 of 373) sorted by relevance

12345678910>>...15

/packages/apps/Browser/src/com/android/browser/view/
DPieMenu.java170 public void addItem(PieItem item) { in addItem() argument
172 mItems.add(item); in addItem()
173 int l = item.getLevel(); in addItem()
178 public void removeItem(PieItem item) { in removeItem() argument
179 mItems.remove(item); in removeItem()
204 for (PieItem item : mCurrentItems) { in show()
205 item.setSelected(false); in show()
221 for (PieItem item : mCurrentItems) { in animateOpen()
222item.setAnimationAngle((1 - animation.getAnimatedFraction()) * (- item.getStart())); in animateOpen()
252 for (PieItem item : mCurrentItems) { in layoutPie()
[all …]
/packages/apps/Launcher2/src/com/android/launcher2/
DLauncherModel.java244 for (ItemInfo item : tmpWorkspaceItems) { in unbindWorkspaceItemsOnMainThread()
245 item.unbind(); in unbindWorkspaceItemsOnMainThread()
247 for (ItemInfo item : tmpAppWidgets) { in unbindWorkspaceItemsOnMainThread()
248 item.unbind(); in unbindWorkspaceItemsOnMainThread()
259 static void addOrMoveItemInDatabase(Context context, ItemInfo item, long container, in addOrMoveItemInDatabase() argument
261 if (item.container == ItemInfo.NO_ID) { in addOrMoveItemInDatabase()
263 addItemToDatabase(context, item, container, screen, cellX, cellY, false); in addOrMoveItemInDatabase()
266 moveItemInDatabase(context, item, container, screen, cellX, cellY); in addOrMoveItemInDatabase()
271 final long itemId, final ItemInfo item, StackTraceElement[] stackTrace) { in checkItemInfoLocked() argument
273 if (modelItem != null && item != modelItem) { in checkItemInfoLocked()
[all …]
DFolder.java178 public boolean onActionItemClicked(ActionMode mode, MenuItem item) {
198 ShortcutInfo item = (ShortcutInfo) tag; in onClick() local
201 item.intent.setSourceBounds(new Rect(pos[0], pos[1], in onClick()
204 mLauncher.startActivitySafely(v, item.intent, item); in onClick()
214 ShortcutInfo item = (ShortcutInfo) tag; in onLongClick() local
225 mCurrentDragInfo = item; in onLongClick()
226 mEmptyCell[0] = item.cellX; in onLongClick()
227 mEmptyCell[1] = item.cellY; in onLongClick()
335 ShortcutInfo item = items.get(i); in placeInReadingOrder() local
336 if (item.cellX > maxX) { in placeInReadingOrder()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherModel.java244 final ItemInfo item = items.get(i); in findNextAvailableIconSpaceInScreen() local
245 if (item.container == LauncherSettings.Favorites.CONTAINER_DESKTOP) { in findNextAvailableIconSpaceInScreen()
246 if (item.screenId == screen) { in findNextAvailableIconSpaceInScreen()
247 cellX = item.cellX; in findNextAvailableIconSpaceInScreen()
248 cellY = item.cellY; in findNextAvailableIconSpaceInScreen()
249 spanX = item.spanX; in findNextAvailableIconSpaceInScreen()
250 spanY = item.spanY; in findNextAvailableIconSpaceInScreen()
503 for (ItemInfo item : tmpWorkspaceItems) { in unbindWorkspaceItemsOnMainThread()
504 item.unbind(); in unbindWorkspaceItemsOnMainThread()
506 for (ItemInfo item : tmpAppWidgets) { in unbindWorkspaceItemsOnMainThread()
[all …]
DFolder.java208 public boolean onActionItemClicked(ActionMode mode, MenuItem item) {
237 ShortcutInfo item = (ShortcutInfo) tag; in onLongClick() local
247 mCurrentDragInfo = item; in onLongClick()
248 mEmptyCell[0] = item.cellX; in onLongClick()
249 mEmptyCell[1] = item.cellY; in onLongClick()
353 ShortcutInfo item = items.get(i); in placeInReadingOrder() local
354 if (item.cellX > maxX) { in placeInReadingOrder()
355 maxX = item.cellX; in placeInReadingOrder()
365 ShortcutInfo item = items.get(i); in placeInReadingOrder() local
366 item.cellX = x; in placeInReadingOrder()
[all …]
DFolderIcon.java319 private boolean willAcceptItem(ItemInfo item) { in willAcceptItem() argument
320 final int itemType = item.itemType; in willAcceptItem()
323 !mFolder.isFull() && item != mInfo && !mInfo.opened); in willAcceptItem()
327 final ItemInfo item = (ItemInfo) dragInfo; in acceptDrop() local
328 return !mFolder.isDestroyed() && willAcceptItem(item); in acceptDrop()
331 public void addItem(ShortcutInfo item) { in addItem() argument
332 mInfo.add(item); in addItem()
355 ShortcutInfo item;
358 item = ((AppInfo) mDragInfo).makeShortcut();
359 item.spanX = 1;
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DPhotoDataAdapter.java159 public void onPhotoChanged(int index, Path item); in onPhotoChanged() argument
230 MediaItem item = getItemInternal(index); in getVersion() local
231 if (item == null) return MediaObject.INVALID_DATA_VERSION; in getVersion()
232 return item.getDataVersion(); in getVersion()
236 MediaItem item = getItemInternal(index); in getPath() local
237 if (item == null) return null; in getPath()
238 return item.getPath(); in getPath()
400 MediaItem item = mData[index % DATA_CACHE_SIZE]; in updateCurrentIndex() local
401 mItemPath = item == null ? null : item.getPath(); in updateCurrentIndex()
418 MediaItem item = getItem(index); in uploadScreenNail()
[all …]
DGalleryActionBar.java180 for (ActionItem item : sClusterItems) { in getClusterByTypeString()
181 if (item.action == type) { in getClusterByTypeString()
182 return context.getString(item.clusterBy); in getClusterByTypeString()
199 for (ActionItem item : sClusterItems) { in createDialogData()
200 if (item.enabled && item.visible) { in createDialogData()
201 titles.add(mContext.getString(item.dialogTitle)); in createDialogData()
202 mActions.add(item.action); in createDialogData()
214 for (ActionItem item : sClusterItems) { in setClusterItemEnabled()
215 if (item.action == id) { in setClusterItemEnabled()
216 item.enabled = enabled; in setClusterItemEnabled()
[all …]
DAlbumPage.java136 MediaItem item = mAlbumDataAdapter.get(i);
137 if (item != null && item.getPath() == path) return i;
255 MediaItem item = mAlbumDataAdapter.get(slotIndex); in onSingleTapUp() local
256 if (item == null) return; // Item not ready yet, ignore the click in onSingleTapUp()
257 mSelectionManager.toggle(item.getPath()); in onSingleTapUp()
280 MediaItem item = mAlbumDataAdapter.get(slotIndex); in pickPhoto() local
281 if (item == null) return; // Item not ready yet, ignore the click in pickPhoto()
283 onGetContent(item); in pickPhoto()
301 item.getPath().toString()); in pickPhoto()
316 private void onGetContent(final MediaItem item) { in onGetContent() argument
[all …]
/packages/apps/Camera/src/com/android/camera/ui/
DPieRenderer.java193 public void addItem(PieItem item) { in addItem() argument
195 mItems.add(item); in addItem()
198 public void removeItem(PieItem item) { in removeItem() argument
199 mItems.remove(item); in removeItem()
235 for (PieItem item : mItems) { in show()
236 item.setSelected(false); in show()
295 for (PieItem item : items) { in layoutItems()
296 if (item.getCenter() >= 0) { in layoutItems()
297 sweep = item.getSweep(); in layoutItems()
303 for (PieItem item : items) { in layoutItems()
[all …]
/packages/apps/Camera2/src/com/android/camera/ui/
DPieRenderer.java244 public void addItem(PieItem item) { in addItem() argument
246 getRoot().addItem(item); in addItem()
288 for (PieItem item : openItem.getItems()) { in show()
289 item.setSelected(false); in show()
397 for (PieItem item : items) { in layoutItems()
399 item.setPath(path); in layoutItems()
400 float angle = getArcCenter(item, pos, count); in layoutItems()
401 int w = item.getIntrinsicWidth(); in layoutItems()
402 int h = item.getIntrinsicHeight(); in layoutItems()
408 item.setBounds(x, y, x + w, y + h); in layoutItems()
[all …]
/packages/apps/Calendar/src/com/android/calendar/event/
DAttendeesView.java171 private View constructAttendeeView(AttendeeItem item) { in constructAttendeeView() argument
172 item.mView = mInflater.inflate(R.layout.contact_item, null); in constructAttendeeView()
173 return updateAttendeeView(item); in constructAttendeeView()
180 private View updateAttendeeView(AttendeeItem item) { in updateAttendeeView() argument
181 final Attendee attendee = item.mAttendee; in updateAttendeeView()
182 final View view = item.mView; in updateAttendeeView()
185 if (item.mRemoved) { in updateAttendeeView()
195 button.setTag(item); in updateAttendeeView()
196 if (item.mRemoved) { in updateAttendeeView()
211 badge = mRecycledPhotos.get(item.mAttendee.mEmail); in updateAttendeeView()
[all …]
/packages/apps/Camera2/src/com/android/camera/
DPhotoMenu.java53 PieItem item = null; in initialize() local
60 item = makeSwitchItem(CameraSettings.KEY_CAMERA_HDR_PLUS, true); in initialize()
61 mRenderer.addItem(item); in initialize()
66 item = makeSwitchItem(CameraSettings.KEY_CAMERA_HDR, true); in initialize()
67 mRenderer.addItem(item); in initialize()
71 item = makeItem(CameraSettings.KEY_EXPOSURE); in initialize()
72 item.setLabel(res.getString(R.string.pref_exposure_label)); in initialize()
73 mRenderer.addItem(item); in initialize()
82 item = makeItem(CameraSettings.KEY_FLASH_MODE); in initialize()
83 item.setLabel(res.getString(R.string.pref_camera_flashmode_label)); in initialize()
[all …]
DPieController.java106 PieItem item = makeItem(resid); in makeItem() local
107 item.setLabel(pref.getTitle().toUpperCase()); in makeItem()
109 mPreferenceMap.put(pref, item); in makeItem()
120 item.addItem(inner); in makeItem()
124 public void onClick(PieItem item) { in makeItem()
132 return item; in makeItem()
149 PieItem item = makeItem(resid); in makeSwitchItem() local
150 item.setLabel(pref.getLabels()[index]); in makeSwitchItem()
151 item.setImageResource(mActivity, resid); in makeSwitchItem()
153 mPreferenceMap.put(pref, item); in makeSwitchItem()
[all …]
DVideoMenu.java59 PieItem item = null; in initialize() local
62 item = makeItem(CameraSettings.KEY_WHITE_BALANCE); in initialize()
63 mRenderer.addItem(item); in initialize()
72 item = makeItem(R.drawable.ic_settings_holo_light); in initialize()
73 item.setLabel(mActivity.getResources().getString(R.string.camera_menu_settings_label)); in initialize()
74 item.setOnClickListener(new OnClickListener() { in initialize()
76 public void onClick(PieItem item) { in initialize()
84 mRenderer.addItem(item); in initialize()
87 item = makeItem(R.drawable.ic_switch_back); in initialize()
90 item.setLabel(lpref.getLabel()); in initialize()
[all …]
/packages/apps/Browser/src/com/android/browser/
DSuggestionsAdapter.java113 SuggestItem item = (SuggestItem) ((View) v.getParent()).getTag(); in onClick() local
117 mListener.onSearch(getSuggestionUrl(item)); in onClick()
119 mListener.onSelect(getSuggestionUrl(item), item.type, item.extra); in onClick()
157 private void bindView(View view, SuggestItem item) { in bindView() argument
159 view.setTag(item); in bindView()
165 tv1.setText(Html.fromHtml(item.title)); in bindView()
166 if (TextUtils.isEmpty(item.url)) { in bindView()
171 tv2.setText(item.url); in bindView()
175 switch (item.type) { in bindView()
195 ic2.setVisibility(((TYPE_SUGGEST == item.type) in bindView()
[all …]
DBrowserBookmarksAdapter.java78 void bindGridView(View view, Context context, BrowserBookmarksAdapterItem item) { in bindGridView() argument
88 tv.setText(item.title); in bindGridView()
89 if (item.is_folder) { in bindGridView()
96 if (item.thumbnail == null || !item.has_thumbnail) { in bindGridView()
99 thumb.setImageDrawable(item.thumbnail); in bindGridView()
107 BrowserBookmarksAdapterItem item) { in getRowObject() argument
108 if (item == null) { in getRowObject()
109 item = new BrowserBookmarksAdapterItem(); in getRowObject()
111 Bitmap thumbnail = item.thumbnail != null ? item.thumbnail.getBitmap() : null; in getRowObject()
114 item.has_thumbnail = thumbnail != null; in getRowObject()
[all …]
DBrowserHistoryPage.java311 public boolean onOptionsItemSelected(MenuItem item) { in onOptionsItemSelected() argument
312 if (item.getItemId() == R.id.clear_history_menu_id) { in onOptionsItemSelected()
316 return super.onOptionsItemSelected(item); in onOptionsItemSelected()
372 MenuItem item = menu.findItem(R.id.save_to_bookmarks_menu_id); in onCreateContextMenu() local
373 item.setTitle(R.string.remove_from_bookmarks); in onCreateContextMenu()
386 public boolean onContextItemSelected(MenuItem item) { in onContextItemSelected() argument
387 ContextMenuInfo menuInfo = item.getMenuInfo(); in onContextItemSelected()
399 switch (item.getItemId()) { in onContextItemSelected()
431 return super.onContextItemSelected(item); in onContextItemSelected()
605 TextView item; in getGroupView() local
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppNotification.java264 NotificationItem item = new NotificationItem(); in updateActiveNotification() local
265 item.timeStamp = timeStamp; in updateActiveNotification()
266 item.id = id; in updateActiveNotification()
267 item.direction = dir; in updateActiveNotification()
268 if (item.direction == BluetoothShare.DIRECTION_OUTBOUND) { in updateActiveNotification()
269 item.description = mContext.getString(R.string.notification_sending, fileName); in updateActiveNotification()
270 } else if (item.direction == BluetoothShare.DIRECTION_INBOUND) { in updateActiveNotification()
271 item.description = mContext in updateActiveNotification()
276 item.totalCurrent = current; in updateActiveNotification()
277 item.totalTotal = total; in updateActiveNotification()
[all …]
/packages/providers/ContactsProvider/tests/assets/test1/
Dexpected_data.txt4 4 mimetype=vnd.android.cursor.item/name
31 31 mimetype=vnd.android.cursor.item/name
58 58 mimetype=vnd.android.cursor.item/name
85 85 mimetype=vnd.android.cursor.item/note
112 112 mimetype=vnd.android.cursor.item/name
139 139 mimetype=vnd.android.cursor.item/organization
166 166 mimetype=vnd.android.cursor.item/phone_v2
193 193 mimetype=vnd.android.cursor.item/phone_v2
220 220 mimetype=vnd.android.cursor.item/phone_v2
247 247 mimetype=vnd.android.cursor.item/phone_v2
[all …]
/packages/apps/Gallery/src/com/android/camera/
DGalleryPicker.java210 public boolean onMenuItemClick(MenuItem item) { in onCreateGalleryPickerContextMenu()
218 public boolean onMenuItemClick(MenuItem item) { in onCreateGalleryPickerContextMenu()
233 Item item = mAdapter.mItems.get(position); in onSlideShowClicked() local
234 Uri targetUri = item.mFirstImageUri; in onSlideShowClicked()
236 if (targetUri != null && item.mBucketId != null) { in onSlideShowClicked()
238 .appendQueryParameter("bucketId", item.mBucketId) in onSlideShowClicked()
384 Item item = null; in checkImageList()
396 item = new Item(data.mType, in checkImageList()
401 allItems.add(item); in checkImageList()
403 final Item finalItem = item; in checkImageList()
[all …]
/packages/providers/ContactsProvider/tests/assets/testSynced/
Dexpected_data.txt4 4 mimetype=vnd.android.cursor.item/name
31 31 mimetype=vnd.android.cursor.item/name
58 58 mimetype=vnd.android.cursor.item/name
85 85 mimetype=vnd.android.cursor.item/name
112 112 mimetype=vnd.android.cursor.item/name
139 139 mimetype=vnd.android.cursor.item/name
166 166 mimetype=vnd.android.cursor.item/name
193 193 mimetype=vnd.android.cursor.item/name
220 220 mimetype=vnd.android.cursor.item/phone_v2
247 247 mimetype=vnd.android.cursor.item/phone_v2
[all …]
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DDataAction.java74 public DataAction(Context context, DataItem item, DataKind kind) { in DataAction() argument
77 mMimeType = item.getMimeType(); in DataAction()
81 if (item.hasKindTypeColumn(kind)) { in DataAction()
82 final int typeValue = item.getKindTypeColumn(kind); in DataAction()
92 mSubtitle = item.getContentValues().getAsString(type.customColumn); in DataAction()
99 mIsPrimary = item.isSuperPrimary(); in DataAction()
100 mBody = item.buildDataStringForDisplay(context, kind); in DataAction()
102 mDataId = item.getId(); in DataAction()
110 if (item instanceof PhoneDataItem) { in DataAction()
112 PhoneDataItem phone = (PhoneDataItem) item; in DataAction()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DAnimatedAdapter.java136 LeaveBehindItem item = getLastLeaveBehindItem();
137 if (item != null) {
138 boolean cancelled = item.cancelFadeInTextAnimationIfNotStarted();
140 item.startFadeInTextAnimation(0 /* delay start */);
329 private boolean addUndoingItem(final long item) { in addUndoingItem() argument
330 if (getConversationCursor().getUnderlyingPosition(item) >= 0) { in addUndoingItem()
331 mUndoingItems.add(item); in addUndoingItem()
341 for (Long item : mLastDeletingItems) { in setUndo()
342 itemAdded |= addUndoingItem(item); in setUndo()
596 LeaveBehindItem item; in fadeOutLeaveBehindItems() local
[all …]
/packages/apps/Gallery2/src/com/android/photos/shims/
DMediaItemsLoader.java116 public void consume(int index, MediaItem item) { in loadInBackground()
118 row[PhotoSetLoader.INDEX_DATA] = item.getContentUri().toString(); in loadInBackground()
119 row[PhotoSetLoader.INDEX_DATE_ADDED] = item.getDateInMs(); in loadInBackground()
120 row[PhotoSetLoader.INDEX_HEIGHT] = item.getHeight(); in loadInBackground()
121 row[PhotoSetLoader.INDEX_WIDTH] = item.getWidth(); in loadInBackground()
122 row[PhotoSetLoader.INDEX_WIDTH] = item.getWidth(); in loadInBackground()
123 int rawMediaType = item.getMediaType(); in loadInBackground()
132 item.getSupportedOperations(); in loadInBackground()
134 mediaItems.append(index, item); in loadInBackground()
144 public Drawable drawableForItem(Cursor item, Drawable recycle) { in drawableForItem() argument
[all …]

12345678910>>...15