Home
last modified time | relevance | path

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

12345678910>>...31

/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/
DSlicePreferencesUtil.java71 static Preference getPreference(SliceItem item, ContextThemeWrapper contextThemeWrapper, in getPreference() argument
74 if (item == null) { in getPreference()
77 Data data = extract(item); in getPreference()
78 if (item.getSubType() != null) { in getPreference()
79 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.java102 ItemInfo item, int container, int screenId, int cellX, int cellY) { in updateItemInfoProps() argument
105 item.container = container; in updateItemInfoProps()
106 item.cellX = modelPos.cellX; in updateItemInfoProps()
107 item.cellY = modelPos.cellY; in updateItemInfoProps()
111 item.screenId = mHasVerticalHotseat in updateItemInfoProps()
114 item.screenId = modelPos.screenId; in updateItemInfoProps()
122 public void addOrMoveItemInDatabase(ItemInfo item, in addOrMoveItemInDatabase() argument
124 if (item.id == ItemInfo.NO_ID) { in addOrMoveItemInDatabase()
126 addItemToDatabase(item, container, screenId, cellX, cellY); in addOrMoveItemInDatabase()
129 moveItemInDatabase(item, container, screenId, cellX, cellY); in addOrMoveItemInDatabase()
[all …]
DAddWorkspaceItemsTask.java95 ItemInfo item = entry.first; in execute() local
96 if (item.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPLICATION || in execute()
97 item.itemType == LauncherSettings.Favorites.ITEM_TYPE_SHORTCUT) { in execute()
99 if (shortcutExists(dataModel, item.getIntent(), item.user)) { in execute()
109 Objects.requireNonNull(item.getIntent()))) { in execute()
118 if (item.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPLICATION) { in execute()
119 if (item instanceof WorkspaceItemFactory) { in execute()
120 item = ((WorkspaceItemFactory) item).makeWorkspaceItem(app.getContext()); in execute()
123 if (item != null) { in execute()
124 filteredItems.add(item); in execute()
[all …]
DLoaderCursor.java491 protected boolean checkItemPlacement(ItemInfo item) { in checkItemPlacement() argument
492 int containerIndex = item.screenId; in checkItemPlacement()
493 if (item.container == Favorites.CONTAINER_HOTSEAT) { in checkItemPlacement()
497 if (item.screenId >= mIDP.numDatabaseHotseatIcons) { in checkItemPlacement()
498 Log.e(TAG, "Error loading shortcut " + item in checkItemPlacement()
499 + " into hotseat position " + item.screenId in checkItemPlacement()
506 if (hotseatOccupancy.cells[(int) item.screenId][0]) { in checkItemPlacement()
507 Log.e(TAG, "Error loading shortcut into hotseat " + item in checkItemPlacement()
508 + " into position (" + item.screenId + ":" + item.cellX + "," in checkItemPlacement()
509 + item.cellY + ") already occupied"); in checkItemPlacement()
[all …]
DBgDataModel.java144 for (ItemInfo item: itemsIdMap) { in collectWorkspaceScreens()
145 if (item.container == LauncherSettings.Favorites.CONTAINER_DESKTOP) { in collectWorkspaceScreens()
146 screenSet.add(item.screenId); in collectWorkspaceScreens()
190 for (ItemInfo item : items) { in removeItem()
191 switch (item.itemType) { in removeItem()
193 folders.remove(item.id); in removeItem()
196 if (info.container == item.id) { in removeItem()
199 String msg = "deleting a folder (" + item + ") which still " + in removeItem()
205 workspaceItems.remove(item); in removeItem()
208 updatedDeepShortcuts.add(item.user); in removeItem()
[all …]
/packages/modules/Bluetooth/android/app/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/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/data/model/
DItemTest.java59 final Item item = new Item(cursor, UserId.CURRENT_USER); in testConstructor() local
61 assertThat(item.getId()).isEqualTo(id); in testConstructor()
62 assertThat(item.getDateTaken()).isEqualTo(dateTaken); in testConstructor()
63 assertThat(item.getGenerationModified()).isEqualTo(generationModified); in testConstructor()
64 assertThat(item.getMimeType()).isEqualTo(mimeType); in testConstructor()
65 assertThat(item.getDuration()).isEqualTo(duration); in testConstructor()
66 assertThat(item.getContentUri()).isEqualTo( in testConstructor()
69 assertThat(item.isDate()).isFalse(); in testConstructor()
70 assertThat(item.isImage()).isTrue(); in testConstructor()
71 assertThat(item.isVideo()).isFalse(); in testConstructor()
[all …]
/packages/modules/Bluetooth/system/gd/rust/topshim/src/profiles/
Dsdp.rs29 fn from(item: bindings::bluetooth_sdp_types) -> Self { in from()
30 BtSdpType::from_u32(item).unwrap_or(BtSdpType::Raw) in from()
46 fn from(item: bindings::_bluetooth_sdp_hdr) -> Self { in from()
50 item.service_name as *const u8, in from()
51 item.service_name_length as usize, in from()
54 item.service_name_length as usize, in from()
57 sdp_type: BtSdpType::from(item.type_), in from()
58 uuid: item.uuid, in from()
59 service_name_length: item.service_name_length, in from()
61 rfcomm_channel_number: item.rfcomm_channel_number, in from()
[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/celllayout/
DTestWorkspaceBuilder.java71 ItemInfo item = createWidgetInCell( in fillWithWidgets() local
74 transaction.addItem(item); in fillWithWidgets()
130 LauncherAppWidgetInfo item = createWidgetInfo(info, in createWidgetInCell() local
132 item.id = getID(); in createWidgetInCell()
133 item.cellX = widgetRect.getCellX(); in createWidgetInCell()
134 item.cellY = widgetRect.getCellY(); in createWidgetInCell()
135 item.spanX = widgetRect.getSpanX(); in createWidgetInCell()
136 item.spanY = widgetRect.getSpanY(); in createWidgetInCell()
137 item.screenId = screenId; in createWidgetInCell()
138 return item; in createWidgetInCell()
[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/modules/Bluetooth/system/packet/avrcp/
Dget_folder_items.cc64 for (const auto& item : items_) { in size() local
65 len += item.size(); in size()
89 for (const auto& item : items_) { in Serialize() local
90 PushMediaListItem(pkt, item); in Serialize()
96 bool GetFolderItemsResponseBuilder::AddMediaPlayer(MediaPlayerItem item) { in AddMediaPlayer() argument
99 if (size() + item.size() > mtu_) return false; in AddMediaPlayer()
101 items_.push_back(MediaListItem(item)); in AddMediaPlayer()
105 bool GetFolderItemsResponseBuilder::AddSong(MediaElementItem item) { in AddSong() argument
108 if (size() + item.size() > mtu_) return false; in AddSong()
110 items_.push_back(MediaListItem(item)); in AddSong()
[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/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/modules/Connectivity/nearby/halfsheet/src/com/android/nearby/halfsheet/utils/
DFastPairUtils.java71 public static Cache.StoredDiscoveryItem convertFrom(Cache.ScanFastPairStoreItem item) { in convertFrom() argument
72 return convertFrom(item, /* isSubsequentPair= */ false); in convertFrom()
83 Cache.ScanFastPairStoreItem item, boolean isSubsequentPair) { in convertFrom() argument
85 .setId(item.getModelId()) in convertFrom()
86 .setFirstObservationTimestampMillis(item.getFirstObservationTimestampMillis()) in convertFrom()
87 .setLastObservationTimestampMillis(item.getLastObservationTimestampMillis()) in convertFrom()
88 .setActionUrl(item.getActionUrl()) in convertFrom()
92 ? item.getFastPairStrings().getTapToPairWithoutAccount() in convertFrom()
93 : item.getDeviceName()) in convertFrom()
94 .setMacAddress(item.getAddress()) in convertFrom()
[all …]
/packages/services/Car/car-lib/src/com/android/car/internal/util/
DParcelling.java48 void parcel(T item, Parcel dest, int parcelFlags); in parcel() argument
107 public void parcel(@Nullable String item, Parcel dest, int parcelFlags) { in parcel() argument
108 dest.writeString(item); in parcel()
120 public void parcel(String[] item, Parcel dest, int parcelFlags) { in parcel() argument
121 dest.writeStringArray(item); in parcel()
140 public void parcel(List<String> item, Parcel dest, int parcelFlags) { in parcel() argument
141 dest.writeStringList(item); in parcel()
159 public void parcel(Map<String, String> item, Parcel dest, int parcelFlags) { in parcel() argument
160 dest.writeMap(item); in parcel()
176 public void parcel(Set<String> item, Parcel dest, int parcelFlags) { in parcel() argument
[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/providers/MediaProvider/src/com/android/providers/media/photopicker/ui/
DImageLoader.java76 public void loadPhotoThumbnail(@NonNull Item item, @NonNull ImageView imageView) { in loadPhotoThumbnail() argument
77 Uri uri = item.getContentUri(); in loadPhotoThumbnail()
84 .signature(getGlideSignature(item, /* prefix */ "")) in loadPhotoThumbnail()
95 public void loadImagePreview(@NonNull Item item, @NonNull ImageView imageView) { in loadImagePreview() argument
96 if (item.isGif()) { in loadImagePreview()
99 .load(item.getContentUri()) in loadImagePreview()
100 .signature(getGlideSignature(item, /* prefix */ "")) in loadImagePreview()
105 if (item.isAnimatedWebp()) { in loadImagePreview()
106 loadAnimatedWebpPreview(item, imageView); in loadImagePreview()
113 .load(item.getContentUri()) in loadImagePreview()
[all …]
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/
DWidgetUtils.java52 LauncherAppWidgetInfo item = new LauncherAppWidgetInfo( in createWidgetInfo() local
54 item.spanX = info.minSpanX; in createWidgetInfo()
55 item.spanY = info.minSpanY; in createWidgetInfo()
56 item.minSpanX = info.minSpanX; in createWidgetInfo()
57 item.minSpanY = info.minSpanY; in createWidgetInfo()
58 item.user = info.getProfile(); in createWidgetInfo()
59 item.cellX = 0; in createWidgetInfo()
60 item.cellY = 1; in createWidgetInfo()
61 item.container = LauncherSettings.Favorites.CONTAINER_DESKTOP; in createWidgetInfo()
67 pendingInfo.spanX = item.spanX; in createWidgetInfo()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherPrefs.kt62 private fun chooseSharedPreferences(item: Item): SharedPreferences = in <lambda>()
63 if (isBootAwareStartupDataEnabled && item.isBootAware && isStartupDataMigrated) in <lambda>()
65 else item.encryptedPrefs in <lambda>()
68 fun <T> get(item: ContextualItem<T>): T = in <lambda>()
69 getInner(item, item.defaultValueFromContext(encryptedContext)) in <lambda>()
72 fun <T> get(item: ConstantItem<T>): T = getInner(item, item.defaultValue) in <lambda>()
80 private fun <T> getInner(item: Item, default: T): T { in <lambda>()
81 val sp = chooseSharedPreferences(item) in <lambda>()
83 return when (item.type) { in <lambda>()
84 String::class.java -> sp.getString(item.sharedPrefKey, default as? String) in <lambda>()
[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/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/modules/Bluetooth/android/app/src/com/android/bluetooth/opp/
DBluetoothOppNotification.java306 NotificationItem item = new NotificationItem(); in updateActiveNotification() local
307 item.timeStamp = timeStamp; in updateActiveNotification()
308 item.id = id; in updateActiveNotification()
309 item.direction = dir; in updateActiveNotification()
310 if (item.direction == BluetoothShare.DIRECTION_OUTBOUND) { in updateActiveNotification()
311 item.description = mContext.getString(R.string.notification_sending, fileName); in updateActiveNotification()
312 } else if (item.direction == BluetoothShare.DIRECTION_INBOUND) { in updateActiveNotification()
313 item.description = in updateActiveNotification()
320 item.totalCurrent = current; in updateActiveNotification()
321 item.totalTotal = total; in updateActiveNotification()
[all …]
/packages/modules/Media/apex/framework/jni/
Dandroid_media_MediaParserJNI.cpp74 mediametrics_handle_t item(mediametrics_create(kMediaMetricsKey)); in JNI_FUNCTION() local
75 mediametrics_setCString(item, kAttributeLogSessionId, in JNI_FUNCTION()
77 mediametrics_setCString(item, kAttributeParserName, in JNI_FUNCTION()
79 mediametrics_setInt32(item, kAttributeCreatedByName, createdByName ? 1 : 0); in JNI_FUNCTION()
80 mediametrics_setCString(item, kAttributeParserPool, in JNI_FUNCTION()
82 mediametrics_setCString(item, kAttributeLastException, in JNI_FUNCTION()
84 mediametrics_setInt64(item, kAttributeResourceByteCount, resourceByteCount); in JNI_FUNCTION()
85 mediametrics_setInt64(item, kAttributeDurationMillis, durationMillis); in JNI_FUNCTION()
86 mediametrics_setCString(item, kAttributeTrackMimeTypes, in JNI_FUNCTION()
88 mediametrics_setCString(item, kAttributeTrackCodecs, in JNI_FUNCTION()
[all …]

12345678910>>...31