/packages/apps/Car/libs/car-ui-lib/tests/paintbooth/src/com/android/car/ui/paintbooth/caruirecyclerview/ |
D | CarUiListItemActivity.java | 66 CarUiContentListItem item = new CarUiContentListItem(CarUiContentListItem.Action.NONE); in generateDummyData() local 67 item.setTitle("Test title"); in generateDummyData() 68 item.setBody("Test body"); in generateDummyData() 69 mData.add(item); in generateDummyData() 71 item = new CarUiContentListItem(CarUiContentListItem.Action.NONE); in generateDummyData() 72 item.setTitle("Test title with no body"); in generateDummyData() 73 mData.add(item); in generateDummyData() 78 item = new CarUiContentListItem(CarUiContentListItem.Action.NONE); in generateDummyData() 79 item.setBody("Test body with no title"); in generateDummyData() 80 mData.add(item); in generateDummyData() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | ModelWriter.java | 86 ItemInfo item, int container, int screenId, int cellX, int cellY) { in updateItemInfoProps() argument 87 item.container = container; in updateItemInfoProps() 88 item.cellX = cellX; in updateItemInfoProps() 89 item.cellY = cellY; in updateItemInfoProps() 93 item.screenId = mHasVerticalHotseat in updateItemInfoProps() 96 item.screenId = screenId; in updateItemInfoProps() 104 public void addOrMoveItemInDatabase(ItemInfo item, in addOrMoveItemInDatabase() argument 106 if (item.id == ItemInfo.NO_ID) { in addOrMoveItemInDatabase() 108 addItemToDatabase(item, container, screenId, cellX, cellY); in addOrMoveItemInDatabase() 111 moveItemInDatabase(item, container, screenId, cellX, cellY); in addOrMoveItemInDatabase() [all …]
|
D | AddWorkspaceItemsTask.java | 72 ItemInfo item = entry.first; in execute() local 73 if (item.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPLICATION || in execute() 74 item.itemType == LauncherSettings.Favorites.ITEM_TYPE_SHORTCUT) { in execute() 76 if (shortcutExists(dataModel, item.getIntent(), item.user)) { in execute() 81 if (PackageManagerHelper.isSystemApp(app.getContext(), item.getIntent())) { in execute() 86 if (item.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPLICATION) { in execute() 87 if (item instanceof AppInfo) { in execute() 88 item = ((AppInfo) item).makeWorkspaceItem(); in execute() 91 if (item != null) { in execute() 92 filteredItems.add(item); in execute() [all …]
|
D | LoaderCursor.java | 393 protected boolean checkItemPlacement(ItemInfo item) { in checkItemPlacement() argument 394 int containerIndex = item.screenId; in checkItemPlacement() 395 if (item.container == LauncherSettings.Favorites.CONTAINER_HOTSEAT) { in checkItemPlacement() 399 if (item.screenId >= mIDP.numHotseatIcons) { in checkItemPlacement() 400 Log.e(TAG, "Error loading shortcut " + item in checkItemPlacement() 401 + " into hotseat position " + item.screenId in checkItemPlacement() 408 if (hotseatOccupancy.cells[(int) item.screenId][0]) { in checkItemPlacement() 409 Log.e(TAG, "Error loading shortcut into hotseat " + item in checkItemPlacement() 410 + " into position (" + item.screenId + ":" + item.cellX + "," in checkItemPlacement() 411 + item.cellY + ") already occupied"); in checkItemPlacement() [all …]
|
D | BgDataModel.java | 134 for (ItemInfo item: itemsIdMap) { in collectWorkspaceScreens() 135 if (item.container == LauncherSettings.Favorites.CONTAINER_DESKTOP) { in collectWorkspaceScreens() 136 screenSet.add(item.screenId); in collectWorkspaceScreens() 266 for (ItemInfo item : items) { in removeItem() 267 switch (item.itemType) { in removeItem() 269 folders.remove(item.id); in removeItem() 272 if (info.container == item.id) { in removeItem() 275 String msg = "deleting a folder (" + item + ") which still " + in removeItem() 281 workspaceItems.remove(item); in removeItem() 285 ShortcutKey pinnedShortcut = ShortcutKey.fromItemInfo(item); in removeItem() [all …]
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/ |
D | BindWidgetTest.java | 109 LauncherAppWidgetInfo item = createWidgetInfo(info, true); in testBindNormalWidget_withConfig() local 111 setupContents(item); in testBindNormalWidget_withConfig() 118 LauncherAppWidgetInfo item = createWidgetInfo(info, true); in testBindNormalWidget_withoutConfig() local 120 setupContents(item); in testBindNormalWidget_withoutConfig() 127 LauncherAppWidgetInfo item = createWidgetInfo(info, false); in testUnboundWidget_removed() local 128 item.appWidgetId = -33; in testUnboundWidget_removed() 130 setupContents(item); in testUnboundWidget_removed() 134 mCursor = mResolver.query(LauncherSettings.Favorites.getContentUri(item.id), in testUnboundWidget_removed() 148 LauncherAppWidgetInfo item = createWidgetInfo(info, false); in testPendingWidget_autoRestored() local 149 item.restoreStatus = LauncherAppWidgetInfo.FLAG_ID_NOT_VALID; in testPendingWidget_autoRestored() [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/ui/ |
D | SortedArrayAdapter.java | 63 for (T item : itemsCopy) { in setInitialItems() 64 add(item, true); in setInitialItems() 77 public final void add(Object item) { in add() argument 78 add((T) item, false); in add() 92 public final void add(T item, boolean insertToEnd) { in add() argument 93 long newItemId = getId(item); in add() 98 i = findInsertPosition(item); in add() 100 i = findInsertPositionBinary(item); in add() 102 super.add(i, item); in add() 114 public int addExtraItem(T item) { in addExtraItem() argument [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpItemTest.java | 96 AvrcpItem item = builder.build(); in buildAvrcpItem() local 98 Assert.assertEquals(mDevice, item.getDevice()); in buildAvrcpItem() 99 Assert.assertEquals(true, item.isPlayable()); in buildAvrcpItem() 100 Assert.assertEquals(false, item.isBrowsable()); in buildAvrcpItem() 101 Assert.assertEquals(0, item.getUid()); in buildAvrcpItem() 102 Assert.assertEquals(UUID, item.getUuid()); in buildAvrcpItem() 103 Assert.assertEquals(null, item.getDisplayableName()); in buildAvrcpItem() 104 Assert.assertEquals(title, item.getTitle()); in buildAvrcpItem() 105 Assert.assertEquals(artist, item.getArtistName()); in buildAvrcpItem() 106 Assert.assertEquals(album, item.getAlbumName()); in buildAvrcpItem() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | AlphabeticalAppsList.java | 90 AdapterItem item = new AdapterItem(); in asApp() local 91 item.viewType = AllAppsGridAdapter.VIEW_TYPE_ICON; in asApp() 92 item.position = pos; in asApp() 93 item.sectionName = sectionName; in asApp() 94 item.appInfo = appInfo; in asApp() 95 item.appIndex = appIndex; in asApp() 96 return item; in asApp() 100 AdapterItem item = new AdapterItem(); in asEmptySearch() local 101 item.viewType = AllAppsGridAdapter.VIEW_TYPE_EMPTY_SEARCH; in asEmptySearch() 102 item.position = pos; in asEmptySearch() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/ |
D | PieRenderer.java | 188 public void addItem(PieItem item) { in addItem() argument 190 mItems.add(item); in addItem() 193 public void removeItem(PieItem item) { in removeItem() argument 194 mItems.remove(item); in removeItem() 230 for (PieItem item : mItems) { in show() 231 item.setSelected(false); in show() 290 for (PieItem item : items) { in layoutItems() 291 if (item.getCenter() >= 0) { in layoutItems() 292 sweep = item.getSweep(); in layoutItems() 298 for (PieItem item : items) { in layoutItems() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/ |
D | PieRenderer.java | 190 public void addItem(PieItem item) { in addItem() argument 192 items.add(item); in addItem() 195 public void removeItem(PieItem item) { in removeItem() argument 196 items.remove(item); in removeItem() 233 for (PieItem item : items) { in show() 234 item.setSelected(false); in show() 291 for (PieItem item : items) { in layoutItems() 292 if (item.getCenter() >= 0) { in layoutItems() 293 sweep = item.getSweep(); in layoutItems() 298 for (PieItem item : items) { in layoutItems() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | PhotoDataAdapter.java | 159 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 …]
|
D | GalleryActionBar.java | 180 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 …]
|
/packages/services/Telephony/testapps/ImsTestService/src/com/android/phone/testapps/imstestapp/ |
D | TestImsConfigImpl.java | 28 public int item; field in TestImsConfigImpl.ConfigItem 32 public ConfigItem(int item, int value) { in ConfigItem() argument 33 this.item = item; in ConfigItem() 37 public ConfigItem(int item, String value) { in ConfigItem() argument 38 this.item = item; in ConfigItem() 71 public int setConfig(int item, int value) { in setConfig() argument 72 replaceConfig(new ConfigItem(item, value)); in setConfig() 77 public int setConfig(int item, String value) { in setConfig() argument 78 replaceConfig(new ConfigItem(item, value)); in setConfig() 83 public int getConfigInt(int item) { in getConfigInt() argument [all …]
|
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/recyclerview/ |
D | CarUiListItemAdapter.java | 110 CarUiListItem item = mItems.get(position); in onBindViewHolder() local 111 if (!(item instanceof CarUiContentListItem)) { in onBindViewHolder() 117 ((ListItemViewHolder) holder).bind((CarUiContentListItem) item); in onBindViewHolder() 191 void bind(@NonNull CarUiContentListItem item) { in bind() argument 192 CharSequence title = item.getTitle(); in bind() 193 CharSequence body = item.getBody(); in bind() 194 Drawable icon = item.getIcon(); in bind() 217 switch (item.getPrimaryIconType()) { in bind() 237 item.isActionDividerVisible() ? View.VISIBLE : View.GONE); in bind() 243 CarUiContentListItem.OnClickListener itemOnClickListener = item.getOnClickListener(); in bind() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppNotification.java | 301 NotificationItem item = new NotificationItem(); in updateActiveNotification() local 302 item.timeStamp = timeStamp; in updateActiveNotification() 303 item.id = id; in updateActiveNotification() 304 item.direction = dir; in updateActiveNotification() 305 if (item.direction == BluetoothShare.DIRECTION_OUTBOUND) { in updateActiveNotification() 306 item.description = mContext.getString(R.string.notification_sending, fileName); in updateActiveNotification() 307 } else if (item.direction == BluetoothShare.DIRECTION_INBOUND) { in updateActiveNotification() 308 item.description = in updateActiveNotification() 315 item.totalCurrent = current; in updateActiveNotification() 316 item.totalTotal = total; in updateActiveNotification() [all …]
|
/packages/apps/Car/libs/car-ui-lib/tests/robotests/src/com/android/car/ui/recyclerview/ |
D | CarUiListItemTest.java | 130 CarUiContentListItem item = new CarUiContentListItem(CarUiContentListItem.Action.NONE); in testItemVisibility_withTitle() local 131 item.setTitle("Test title"); in testItemVisibility_withTitle() 132 items.add(item); in testItemVisibility_withTitle() 148 CarUiContentListItem item = new CarUiContentListItem(CarUiContentListItem.Action.NONE); in testItemVisibility_withTitle_withBody() local 149 item.setTitle("Test title"); in testItemVisibility_withTitle_withBody() 150 item.setBody("Test body"); in testItemVisibility_withTitle_withBody() 151 items.add(item); in testItemVisibility_withTitle_withBody() 167 CarUiContentListItem item = new CarUiContentListItem(CarUiContentListItem.Action.NONE); in testItemVisibility_withTitle_withIcon() local 168 item.setTitle("Test title"); in testItemVisibility_withTitle_withIcon() 169 item.setIcon(mContext.getDrawable(R.drawable.car_ui_icon_close)); in testItemVisibility_withTitle_withIcon() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/ |
D | AppDataUsagePreferenceController.java | 173 AppItem item = knownItems.get(uid); in updateRestrictedState() local 174 if (item == null) { in updateRestrictedState() 175 item = new AppItem(uid); in updateRestrictedState() 176 item.total = -1; in updateRestrictedState() 177 items.add(item); in updateRestrictedState() 178 knownItems.put(item.key, item); in updateRestrictedState() 180 item.restricted = true; in updateRestrictedState() 206 AppItem item = knownItems.get(collapseKey); in accumulate() local 207 if (item == null) { in accumulate() 208 item = new AppItem(collapseKey); in accumulate() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/ |
D | RootsFragment.java | 99 final Item item = mAdapter.getItem(position); 100 item.open(); 109 final Item item = mAdapter.getItem(position); 110 return item.showAppDetails(); 183 final Item item = mAdapter.getItem(pos); in onRightClick() local 186 if (!(item instanceof RootItem) || !((RootItem) item).root.supportsCreate()) { in onRightClick() 190 final RootItem rootItem = (RootItem) item; in onRightClick() 217 final Item item = getItem(v); in onActivityCreated() 219 assert (item.isRoot()); in onActivityCreated() 221 return item.dropOn(event); in onActivityCreated() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/ |
D | LauncherAccessibilityDelegate.java | 74 public View item; field in LauncherAccessibilityDelegate.DragInfo 117 ItemInfo item = (ItemInfo) host.getTag(); in addSupportedActions() 121 if (!fromKeyboard && ShortcutUtil.supportsShortcuts(item)) { in addSupportedActions() 127 if (target.supportsAccessibilityDrop(item, host)) { in addSupportedActions() 133 if (!fromKeyboard && itemSupportsAccessibleDrag(item)) { in addSupportedActions() 136 if (item.container >= 0) { in addSupportedActions() 138 } else if (item instanceof LauncherAppWidgetInfo) { in addSupportedActions() 139 if (!getSupportedResizeActions(host, (LauncherAppWidgetInfo) item).isEmpty()) { in addSupportedActions() 145 if ((item instanceof AppInfo) || (item instanceof PendingAddItemInfo)) { in addSupportedActions() 150 private boolean itemSupportsAccessibleDrag(ItemInfo item) { in itemSupportsAccessibleDrag() argument [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/manageapplications/ |
D | AppFilterItemTest.java | 39 final AppFilterItem item = AppFilterRegistry.getInstance().get(FILTER_APPS_USAGE_ACCESS); in equals_sameContent_true() local 47 assertThat(item.equals(item)).isTrue(); in equals_sameContent_true() 50 assertThat(item).isEqualTo(item2); in equals_sameContent_true() 55 final AppFilterItem item = AppFilterRegistry.getInstance().get(FILTER_APPS_USAGE_ACCESS); in compare_sameContent_return0() local 61 assertThat(item.compareTo(item)).isEqualTo(0); in compare_sameContent_return0() 62 assertThat(item.compareTo(item2)).isEqualTo(0); in compare_sameContent_return0() 63 assertThat(item2.compareTo(item)).isEqualTo(0); in compare_sameContent_return0() 68 final AppFilterItem item = AppFilterRegistry.getInstance().get(FILTER_APPS_USAGE_ACCESS); in compare_toNull_return1() local 69 assertThat(item.compareTo(null)).isEqualTo(1); in compare_toNull_return1() 74 final AppFilterItem item = AppFilterRegistry.getInstance().get(FILTER_APPS_USAGE_ACCESS); in compare_differentFilter_returnFilterDiff() local [all …]
|
/packages/apps/Launcher3/src_shortcuts_overrides/com/android/launcher3/model/ |
D | WidgetsModel.java | 143 for (PackageItemInfo item : mWidgetsList.keySet()) { in setWidgetsAndShortcuts() 144 if (item.packageName.equals(packageUser.mPackageName)) { in setWidgetsAndShortcuts() 145 packageItem = item; in setWidgetsAndShortcuts() 169 for (WidgetItem item : rawWidgetsShortcuts) { in setWidgetsAndShortcuts() 170 if (item.widgetInfo != null) { in setWidgetsAndShortcuts() 171 if ((item.widgetInfo.getWidgetFeatures() & WIDGET_FEATURE_HIDE_FROM_PICKER) != 0) { in setWidgetsAndShortcuts() 177 int minSpanX = Math.min(item.widgetInfo.spanX, item.widgetInfo.minSpanX); in setWidgetsAndShortcuts() 178 int minSpanY = Math.min(item.widgetInfo.spanY, item.widgetInfo.minSpanY); in setWidgetsAndShortcuts() 183 item.componentName, minSpanX, minSpanY)); in setWidgetsAndShortcuts() 192 if (!mAppFilter.shouldShowApp(item.componentName)) { in setWidgetsAndShortcuts() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
D | DataAction.java | 75 public DataAction(Context context, DataItem item, DataKind kind) { in DataAction() argument 78 mMimeType = item.getMimeType(); in DataAction() 82 if (item.hasKindTypeColumn(kind)) { in DataAction() 83 final int typeValue = item.getKindTypeColumn(kind); in DataAction() 93 mSubtitle = item.getContentValues().getAsString(type.customColumn); in DataAction() 100 mIsPrimary = item.isPrimary(); in DataAction() 101 mIsSuperPrimary = item.isSuperPrimary(); in DataAction() 102 mBody = item.buildDataStringForDisplay(context, kind); in DataAction() 104 mDataId = item.getId(); in DataAction() 112 if (item instanceof PhoneDataItem) { in DataAction() [all …]
|
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/favorite/ |
D | AddFavoriteFragment.java | 94 CarUiContentListItem item = new CarUiContentListItem(CarUiContentListItem.Action.ICON); in setPhoneNumbers() local 95 item.setTitle(number.getNumber()); in setPhoneNumbers() 96 item.setSupplementalIcon(mFavoriteIcon.getConstantState().newDrawable()); in setPhoneNumbers() 97 setFavoriteItemState(item, number); in setPhoneNumbers() 99 item.setOnItemClickedListener((listItem) -> { in setPhoneNumbers() 109 mFavoritePhoneNumberList.add(item); in setPhoneNumbers() 114 private void setFavoriteItemState(CarUiContentListItem item, PhoneNumber number) { in setFavoriteItemState() argument 119 item.setEnabled(false); in setFavoriteItemState() 120 item.setActivated(true); in setFavoriteItemState() 121 item.setBody(getResources().getString(R.string.favorite_number_description, in setFavoriteItemState() [all …]
|
/packages/apps/Gallery2/src/com/android/photos/shims/ |
D | MediaItemsLoader.java | 116 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 …]
|