Home
last modified time | relevance | path

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

12345678910>>...28

/packages/apps/Car/libs/car-ui-lib/paintbooth/src/main/java/com/android/car/ui/paintbooth/caruirecyclerview/
DCarUiListItemActivity.java69 CarUiContentListItem item = new CarUiContentListItem(CarUiContentListItem.Action.NONE); in generateSampleData() local
70 item.setTitle(getString(R.string.test_title)); in generateSampleData()
71 item.setBody(getString(R.string.test_body)); in generateSampleData()
72 mData.add(item); in generateSampleData()
74 item = new CarUiContentListItem(CarUiContentListItem.Action.NONE); in generateSampleData()
75 item.setTitle(getString(R.string.test_title_no_body)); in generateSampleData()
76 mData.add(item); in generateSampleData()
82 item = new CarUiContentListItem(CarUiContentListItem.Action.NONE); in generateSampleData()
83 item.setBody(getString(R.string.test_body_no_title)); in generateSampleData()
84 mData.add(item); in generateSampleData()
[all …]
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/
DSlicePreferencesUtil.java72 static Preference getPreference(SliceItem item, ContextThemeWrapper contextThemeWrapper, in getPreference() argument
75 if (item == null) { in getPreference()
78 Data data = extract(item); in getPreference()
79 if (item.getSubType() != null) { in getPreference()
80 String subType = item.getSubType(); in getPreference()
95 ((SlicePreference) preference).setActionId(getActionId(item)); in getPreference()
105 int buttonStyle = SlicePreferencesUtil.getButtonStyle(item); in getPreference()
117 if (getRadioGroup(item) != null) { in getPreference()
119 getRadioGroup(item).toString()); in getPreference()
123 int min = SlicePreferencesUtil.getSeekbarMin(item); in getPreference()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/model/
DModelWriter.java86 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 …]
DAddWorkspaceItemsTask.java76 ItemInfo item = entry.first; in execute() local
77 if (item.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPLICATION || in execute()
78 item.itemType == LauncherSettings.Favorites.ITEM_TYPE_SHORTCUT) { in execute()
80 if (shortcutExists(dataModel, item.getIntent(), item.user)) { in execute()
85 if (PackageManagerHelper.isSystemApp(app.getContext(), item.getIntent())) { in execute()
90 if (item.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPLICATION) { in execute()
91 if (item instanceof AppInfo) { in execute()
92 item = ((AppInfo) item).makeWorkspaceItem(); in execute()
95 if (item != null) { in execute()
96 filteredItems.add(item); in execute()
[all …]
DLoaderCursor.java413 protected boolean checkItemPlacement(ItemInfo item) { in checkItemPlacement() argument
414 int containerIndex = item.screenId; in checkItemPlacement()
415 if (item.container == LauncherSettings.Favorites.CONTAINER_HOTSEAT) { in checkItemPlacement()
419 if (item.screenId >= mIDP.numDatabaseHotseatIcons) { in checkItemPlacement()
420 Log.e(TAG, "Error loading shortcut " + item in checkItemPlacement()
421 + " into hotseat position " + item.screenId in checkItemPlacement()
428 if (hotseatOccupancy.cells[(int) item.screenId][0]) { in checkItemPlacement()
429 Log.e(TAG, "Error loading shortcut into hotseat " + item in checkItemPlacement()
430 + " into position (" + item.screenId + ":" + item.cellX + "," in checkItemPlacement()
431 + item.cellY + ") already occupied"); in checkItemPlacement()
[all …]
DBgDataModel.java136 for (ItemInfo item: itemsIdMap) { in collectWorkspaceScreens()
137 if (item.container == LauncherSettings.Favorites.CONTAINER_DESKTOP) { in collectWorkspaceScreens()
138 screenSet.add(item.screenId); in collectWorkspaceScreens()
182 for (ItemInfo item : items) { in removeItem()
183 switch (item.itemType) { in removeItem()
185 folders.remove(item.id); in removeItem()
188 if (info.container == item.id) { in removeItem()
191 String msg = "deleting a folder (" + item + ") which still " + in removeItem()
197 workspaceItems.remove(item); in removeItem()
200 updatedDeepShortcuts.add(item.user); in removeItem()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpItemTest.java96 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/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/recyclerview/
DCarUiListItemTest.java102 CarUiContentListItem item = new CarUiContentListItem(CarUiContentListItem.Action.NONE); in testItemVisibility_withTitle() local
103 item.setTitle("Test title"); in testItemVisibility_withTitle()
104 items.add(item); in testItemVisibility_withTitle()
119 CarUiContentListItem item = new CarUiContentListItem(CarUiContentListItem.Action.NONE); in testItemVisibility_withBody() local
120 item.setBody("Test body"); in testItemVisibility_withBody()
121 items.add(item); in testItemVisibility_withBody()
140 CarUiListItem item = new CarUiHeaderListItem(title, body); in testHeaderItemVisibility() local
141 items.add(item); in testHeaderItemVisibility()
144 item = new CarUiHeaderListItem(title2); in testHeaderItemVisibility()
145 items.add(item); in testHeaderItemVisibility()
[all …]
/packages/apps/TV/src/com/android/tv/dvr/ui/
DSortedArrayAdapter.java63 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/Launcher3/tests/src/com/android/launcher3/ui/widget/
DBindWidgetTest.java107 LauncherAppWidgetInfo item = createWidgetInfo(info, getTargetContext(), true); in testBindNormalWidget_withConfig() local
109 addItemToScreen(item); in testBindNormalWidget_withConfig()
116 LauncherAppWidgetInfo item = createWidgetInfo(info, getTargetContext(), true); in testBindNormalWidget_withoutConfig() local
118 addItemToScreen(item); in testBindNormalWidget_withoutConfig()
125 LauncherAppWidgetInfo item = createWidgetInfo(info, getTargetContext(), false); in testUnboundWidget_removed() local
126 item.appWidgetId = -33; in testUnboundWidget_removed()
128 addItemToScreen(item); in testUnboundWidget_removed()
132 mCursor = mResolver.query(LauncherSettings.Favorites.getContentUri(item.id), in testUnboundWidget_removed()
146 LauncherAppWidgetInfo item = createWidgetInfo(info, getTargetContext(), false); in testPendingWidget_autoRestored() local
147 item.restoreStatus = LauncherAppWidgetInfo.FLAG_ID_NOT_VALID; in testPendingWidget_autoRestored()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/
DPieRenderer.java188 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/
DPieRenderer.java190 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/
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 …]
/packages/services/Telephony/testapps/ImsTestService/src/com/android/phone/testapps/imstestapp/
DTestImsConfigImpl.java28 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/car-ui-lib/src/main/java/com/android/car/ui/recyclerview/
DCarUiListItemAdapter.java121 CarUiListItem item = mItems.get(position); in onBindViewHolder() local
122 if (!(item instanceof CarUiContentListItem)) { in onBindViewHolder()
128 ((ListItemViewHolder) holder).bind((CarUiContentListItem) item); in onBindViewHolder()
205 void bind(@NonNull CarUiContentListItem item) { in bind() argument
206 if (item.getTitle() != null) { in bind()
207 mTitle.setText(item.getTitle()); in bind()
213 if (item.getBody() != null) { in bind()
214 mBody.setText(item.getBody()); in bind()
224 Drawable icon = item.getIcon(); in bind()
228 switch (item.getPrimaryIconType()) { in bind()
[all …]
/packages/apps/Launcher3/tests/src_common/com/android/launcher3/common/
DWidgetUtils.java47 LauncherAppWidgetInfo item = new LauncherAppWidgetInfo( in createWidgetInfo() local
49 item.spanX = info.minSpanX; in createWidgetInfo()
50 item.spanY = info.minSpanY; in createWidgetInfo()
51 item.minSpanX = info.minSpanX; in createWidgetInfo()
52 item.minSpanY = info.minSpanY; in createWidgetInfo()
53 item.user = info.getProfile(); in createWidgetInfo()
54 item.cellX = 0; in createWidgetInfo()
55 item.cellY = 1; in createWidgetInfo()
56 item.container = LauncherSettings.Favorites.CONTAINER_DESKTOP; in createWidgetInfo()
62 pendingInfo.spanX = item.spanX; in createWidgetInfo()
[all …]
/packages/apps/Car/libs/car-ui-lib/referencedesign/sharedlibrary/src/main/java/com/chassis/car/ui/sharedlibrary/recyclerview/
DListItemAdapter.java210 ListItemOEMV1 item = mItems.get(position); in onBindViewHolder() local
211 if (!(item instanceof ContentListItemOEMV1)) { in onBindViewHolder()
217 ((ListItemViewHolder) holder).bind((ContentListItemOEMV1) item); in onBindViewHolder()
292 void bind(@NonNull ContentListItemOEMV1 item) { in bind() argument
293 if (item.getTitle() != null) { in bind()
294 mTitle.setText(item.getTitle()); in bind()
300 if (item.getBody() != null) { in bind()
301 mBody.setText(TextUtils.join("\n", item.getBody())); in bind()
311 Drawable icon = item.getIcon(); in bind()
315 switch (item.getPrimaryIconType()) { in bind()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/
DRootsFragment.java103 final Item item = mAdapter.getItem(position);
104 item.open();
113 final Item item = mAdapter.getItem(position);
114 return item.showAppDetails();
196 final Item item = mAdapter.getItem(pos); in onRightClick() local
199 if (!(item instanceof RootItem) || !((RootItem) item).root.supportsCreate()) { in onRightClick()
203 final RootItem rootItem = (RootItem) item; in onRightClick()
230 final Item item = getItem(v); in onActivityCreated()
232 assert (item.isRoot()); in onActivityCreated()
234 return item.dropOn(event); in onActivityCreated()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppNotification.java302 NotificationItem item = new NotificationItem(); in updateActiveNotification() local
303 item.timeStamp = timeStamp; in updateActiveNotification()
304 item.id = id; in updateActiveNotification()
305 item.direction = dir; in updateActiveNotification()
306 if (item.direction == BluetoothShare.DIRECTION_OUTBOUND) { in updateActiveNotification()
307 item.description = mContext.getString(R.string.notification_sending, fileName); in updateActiveNotification()
308 } else if (item.direction == BluetoothShare.DIRECTION_INBOUND) { in updateActiveNotification()
309 item.description = in updateActiveNotification()
316 item.totalCurrent = current; in updateActiveNotification()
317 item.totalTotal = total; in updateActiveNotification()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DAppDataUsagePreferenceController.java171 AppItem item = knownItems.get(uid); in updateRestrictedState() local
172 if (item == null) { in updateRestrictedState()
173 item = new AppItem(uid); in updateRestrictedState()
174 item.total = -1; in updateRestrictedState()
175 items.add(item); in updateRestrictedState()
176 knownItems.put(item.key, item); in updateRestrictedState()
178 item.restricted = true; in updateRestrictedState()
204 AppItem item = knownItems.get(collapseKey); in accumulate() local
205 if (item == null) { in accumulate()
206 item = new AppItem(collapseKey); in accumulate()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DCachingWidgetPreviewLoader.java49 public boolean isPreviewLoaded(@NonNull WidgetItem item, @NonNull Size previewSize) { in isPreviewLoaded() argument
50 return getPreview(item, previewSize) != null; in isPreviewLoaded()
55 public Bitmap getPreview(@NonNull WidgetItem item, @NonNull Size previewSize) { in getPreview() argument
56 CacheResult cacheResult = getCacheResult(item, previewSize); in getPreview()
65 private CacheResult getCacheResult(@NonNull WidgetItem item, @NonNull Size previewSize) { in getCacheResult() argument
67 Map<Size, CacheResult> cacheResults = mCache.get(toComponentKey(item)); in getCacheResult()
82 @NonNull WidgetItem item, in putCacheResult()
85 ComponentKey key = toComponentKey(item); in putCacheResult()
105 private void removeCacheResult(@NonNull WidgetItem item, @NonNull Size previewSize) { in removeCacheResult() argument
106 ComponentKey key = toComponentKey(item); in removeCacheResult()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/manageapplications/
DAppFilterItemTest.java39 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/com/android/launcher3/accessibility/
DLauncherAccessibilityDelegate.java84 public View item; field in LauncherAccessibilityDelegate.DragInfo
121 ItemInfo item = (ItemInfo) host.getTag(); in onInitializeAccessibilityNodeInfo() local
124 getSupportedActions(host, item, actions); in onInitializeAccessibilityNodeInfo()
127 if (!itemSupportsLongClick(host, item)) { in onInitializeAccessibilityNodeInfo()
137 protected void getSupportedActions(View host, ItemInfo item, List<LauncherAction> out) { in getSupportedActions() argument
140 if (ShortcutUtil.supportsShortcuts(item)) { in getSupportedActions()
146 if (target.supportsAccessibilityDrop(item, host)) { in getSupportedActions()
152 if (itemSupportsAccessibleDrag(item)) { in getSupportedActions()
155 if (item.container >= 0) { in getSupportedActions()
157 } else if (item instanceof LauncherAppWidgetInfo) { in getSupportedActions()
[all …]
/packages/apps/Launcher3/src_shortcuts_overrides/com/android/launcher3/model/
DWidgetsModel.java98 .filter(item -> item.widgetInfo != null) in getAllWidgetsWithoutShortcuts()
179 .collect(Collectors.groupingBy(item -> in setWidgetsAndShortcuts()
180 packageItemInfoCache.getOrCreate(getWidgetPackageOrCategoryKey(item)) in setWidgetsAndShortcuts()
197 WidgetItem item = items.get(i); in onPackageIconsUpdated() local
198 if (item.user.equals(user)) { in onPackageIconsUpdated()
199 if (item.activityInfo != null) { in onPackageIconsUpdated()
200 items.set(i, new WidgetItem(item.activityInfo, app.getIconCache(), in onPackageIconsUpdated()
203 items.set(i, new WidgetItem(item.widgetInfo, in onPackageIconsUpdated()
220 for (WidgetItem item : widgetsList) { in getWidgetProviderInfoByProviderName()
221 if (item.componentName.equals(providerName)) { in getWidgetProviderInfoByProviderName()
[all …]
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/favorite/
DAddFavoriteFragment.java97 CarUiContentListItem item = new CarUiContentListItem(CarUiContentListItem.Action.ICON); in setPhoneNumbers() local
98 item.setTitle(TelecomUtils.getBidiWrappedNumber(number.getNumber())); in setPhoneNumbers()
99 item.setSupplementalIcon(mFavoriteIcon.getConstantState().newDrawable()); in setPhoneNumbers()
100 setFavoriteItemState(item, number); in setPhoneNumbers()
102 item.setOnItemClickedListener((listItem) -> { in setPhoneNumbers()
112 mFavoritePhoneNumberList.add(item); in setPhoneNumbers()
117 private void setFavoriteItemState(CarUiContentListItem item, PhoneNumber number) { in setFavoriteItemState() argument
122 item.setEnabled(false); in setFavoriteItemState()
123 item.setActivated(true); in setFavoriteItemState()
124 item.setBody(getResources().getString(R.string.favorite_number_description, in setFavoriteItemState()
[all …]

12345678910>>...28