Home
last modified time | relevance | path

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

12345678910>>...36

/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/widget/
DWidgetInflater.kt34 item: LauncherAppWidgetInfo, in inflateAppWidget()
36 if (item.hasOptionFlag(LauncherAppWidgetInfo.OPTION_SEARCH_WIDGET)) { in inflateAppWidget()
37 item.providerName = QsbContainerView.getSearchComponentName(context) in inflateAppWidget()
38 if (item.providerName == null) { in inflateAppWidget()
54 if (item.hasRestoreFlag(LauncherAppWidgetInfo.FLAG_ID_NOT_VALID)) { in inflateAppWidget()
56 appWidgetInfo = widgetHelper.findProvider(item.providerName, item.user) in inflateAppWidget()
65 } else if (item.hasRestoreFlag(LauncherAppWidgetInfo.FLAG_PROVIDER_NOT_READY)) { in inflateAppWidget()
67 item.restoreStatus = in inflateAppWidget()
68 item.restoreStatus and LauncherAppWidgetInfo.FLAG_PROVIDER_NOT_READY.inv() in inflateAppWidget()
73 widgetHelper.getLauncherAppWidgetInfo(item.appWidgetId, item.targetComponent) in inflateAppWidget()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/model/
DModelWriter.java95 ItemInfo item, int container, int screenId, int cellX, int cellY) { in updateItemInfoProps() argument
98 item.container = container; in updateItemInfoProps()
99 item.cellX = modelPos.cellX; in updateItemInfoProps()
100 item.cellY = modelPos.cellY; in updateItemInfoProps()
101 item.screenId = modelPos.screenId; in updateItemInfoProps()
109 public void addOrMoveItemInDatabase(ItemInfo item, in addOrMoveItemInDatabase() argument
111 if (item.id == ItemInfo.NO_ID) { in addOrMoveItemInDatabase()
113 addItemToDatabase(item, container, screenId, cellX, cellY); in addOrMoveItemInDatabase()
116 moveItemInDatabase(item, container, screenId, cellX, cellY); in addOrMoveItemInDatabase()
120 private void checkItemInfoLocked(int itemId, ItemInfo item, StackTraceElement[] stackTrace) { in checkItemInfoLocked() argument
[all …]
DAddWorkspaceItemsTask.java98 ItemInfo item = entry.first; in execute() local
99 if (item.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPLICATION) { in execute()
101 if (shortcutExists(dataModel, item.getIntent(), item.user)) { in execute()
107 Objects.requireNonNull(item.getIntent()))) { in execute()
111 if (item instanceof ItemInfoWithIcon in execute()
112 && ((ItemInfoWithIcon) item).isArchived()) { in execute()
117 if (item.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPLICATION) { in execute()
118 if (item instanceof WorkspaceItemFactory) { in execute()
119 item = ((WorkspaceItemFactory) item).makeWorkspaceItem(context); in execute()
122 if (item != null) { in execute()
[all …]
DLoaderCursor.java508 protected boolean checkItemPlacement(ItemInfo item, boolean isFirstPagePinnedItemEnabled) { in checkItemPlacement() argument
509 int containerIndex = item.screenId; in checkItemPlacement()
510 if (item.container == Favorites.CONTAINER_HOTSEAT) { in checkItemPlacement()
514 if (item.screenId >= mIDP.numDatabaseHotseatIcons) { in checkItemPlacement()
515 Log.e(TAG, "Error loading shortcut " + item in checkItemPlacement()
516 + " into hotseat position " + item.screenId in checkItemPlacement()
523 if (hotseatOccupancy.cells[(int) item.screenId][0]) { in checkItemPlacement()
524 Log.e(TAG, "Error loading shortcut into hotseat " + item in checkItemPlacement()
525 + " into position (" + item.screenId + ":" + item.cellX + "," in checkItemPlacement()
526 + item.cellY + ") already occupied"); in checkItemPlacement()
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/data/model/
DItemTest.java68 final Item item = new Item(cursor, UserId.CURRENT_USER); in testConstructor() local
70 assertThat(item.getId()).isEqualTo(id); in testConstructor()
71 assertThat(item.getDateTaken()).isEqualTo(dateTaken); in testConstructor()
72 assertThat(item.getGenerationModified()).isEqualTo(generationModified); in testConstructor()
73 assertThat(item.getMimeType()).isEqualTo(mimeType); in testConstructor()
74 assertThat(item.getDuration()).isEqualTo(duration); in testConstructor()
75 assertThat(item.getContentUri()).isEqualTo( in testConstructor()
78 assertThat(item.isImage()).isTrue(); in testConstructor()
79 assertThat(item.isVideo()).isFalse(); in testConstructor()
80 assertThat(item.isGifOrAnimatedWebp()).isFalse(); in testConstructor()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpItemTest.java92 AvrcpItem item = builder.build(); in buildAvrcpItem() local
94 Assert.assertEquals(mDevice, item.getDevice()); in buildAvrcpItem()
95 Assert.assertEquals(true, item.isPlayable()); in buildAvrcpItem()
96 Assert.assertEquals(false, item.isBrowsable()); in buildAvrcpItem()
97 Assert.assertEquals(0, item.getUid()); in buildAvrcpItem()
98 Assert.assertEquals(UUID, item.getUuid()); in buildAvrcpItem()
99 Assert.assertEquals(null, item.getDisplayableName()); in buildAvrcpItem()
100 Assert.assertEquals(title, item.getTitle()); in buildAvrcpItem()
101 Assert.assertEquals(artist, item.getArtistName()); in buildAvrcpItem()
102 Assert.assertEquals(album, item.getAlbumName()); in buildAvrcpItem()
[all …]
DAvrcpControllerNativeInterfaceTest.java41 AvrcpItem item = in createFromNativeMediaItem() local
50 assertThat(item.getDevice().getAddress()).isEqualTo(REMOTE_DEVICE_ADDRESS); in createFromNativeMediaItem()
51 assertThat(item.getItemType()).isEqualTo(AvrcpItem.TYPE_MEDIA); in createFromNativeMediaItem()
52 assertThat(item.getType()).isEqualTo(type); in createFromNativeMediaItem()
53 assertThat(item.getUid()).isEqualTo(uid); in createFromNativeMediaItem()
54 assertThat(item.getUuid()).isNotNull(); // Random uuid in createFromNativeMediaItem()
55 assertThat(item.getTitle()).isEqualTo(attrVals[0]); in createFromNativeMediaItem()
56 assertThat(item.isPlayable()).isTrue(); in createFromNativeMediaItem()
66 AvrcpItem item = in createFromNativeFolderItem() local
70 assertThat(item.getDevice().getAddress()).isEqualTo(REMOTE_DEVICE_ADDRESS); in createFromNativeFolderItem()
[all …]
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/core/selection/
DGrantsAwareSelectionImpl.kt103 override suspend fun add(item: T): SelectionModifiedResult { in add()
105 if (item.isPreGranted) { in add()
106 _deSelection.remove(item) in add()
112 _selection.add(item) in add()
137 for (item in items){ in addAll() constant
138 if (item.isPreGranted){ in addAll()
139 itemsWithPregrants.add(item) in addAll()
141 itemsToAdd.add(item) in addAll()
172 override suspend fun contains(item: T): Boolean { in contains()
174 _selection.contains(item) || in contains()
[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/multivalentTests/src/com/android/launcher3/celllayout/board/
DTestWorkspaceBuilder.java138 LauncherAppWidgetInfo item = createWidgetInfo(info, getApplicationContext(), true); in createWidgetInCell()
139 item.cellX = widgetRect.getCellX(); in createWidgetInCell()
140 item.cellY = widgetRect.getCellY(); in createWidgetInCell()
141 item.spanX = widgetRect.getSpanX(); in createWidgetInCell()
142 item.spanY = widgetRect.getSpanY(); in createWidgetInCell()
143 item.screenId = screenId; in createWidgetInCell()
144 return item; in createWidgetInCell()
165 WorkspaceItemInfo item = new WorkspaceItemInfo(getApp()); in getDefaultWorkspaceItem() local
166 item.screenId = screenId; in getDefaultWorkspaceItem()
167 item.minSpanY = item.minSpanX = item.spanX = item.spanY = 1; in getDefaultWorkspaceItem()
[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/Bluetooth/system/gd/rust/topshim/src/profiles/
Dsdp.rs32 fn from(item: bindings::bluetooth_sdp_types) -> Self { in from()
33 BtSdpType::from_u32(item).unwrap_or(BtSdpType::Raw) in from()
70 fn from(item: bindings::_bluetooth_sdp_hdr_overlay) -> Self { in from()
71 let user1_len = item.user1_ptr_len; in from()
73 std::slice::from_raw_parts(item.user1_ptr, item.user1_ptr_len as usize).to_vec() in from()
75 let user2_len = item.user2_ptr_len; in from()
77 std::slice::from_raw_parts(item.user2_ptr, item.user2_ptr_len as usize).to_vec() in from()
81 *((&item as *const bindings::_bluetooth_sdp_hdr_overlay) in from()
124 fn from(item: bindings::_bluetooth_sdp_mas_record) -> Self { in from()
126 hdr: BtSdpHeaderOverlay::from(item.hdr), in from()
[all …]
/packages/modules/Bluetooth/system/packet/avrcp/
Dget_folder_items.cc66 for (const auto& item : items_) { in size() local
67 len += item.size(); in size()
91 for (const auto& item : items_) { in Serialize() local
92 PushMediaListItem(pkt, item); in Serialize()
98 bool GetFolderItemsResponseBuilder::AddMediaPlayer(MediaPlayerItem item) { in AddMediaPlayer() argument
102 if (size() + item.size() > mtu_) return false; in AddMediaPlayer()
104 items_.push_back(MediaListItem(item)); in AddMediaPlayer()
108 bool GetFolderItemsResponseBuilder::AddSong(MediaElementItem item) { in AddSong() argument
113 if (size() + item.size() > mtu_) return false; in AddSong()
115 items_.push_back(MediaListItem(item)); in AddSong()
[all …]
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/core/components/mediagrid/
DMediaGrid.kt166 onItemClick: (item: MediaGridItem) -> Unit, in <lambda>()
167 onItemLongPress: (item: MediaGridItem) -> Unit = {}, in <lambda>()
178 spanFactory: (item: MediaGridItem?, isExpandedScreen: Boolean) -> GridItemSpan =
180 contentTypeFactory: (item: MediaGridItem?) -> Int = ::defaultBuildContentType,
183 item: MediaGridItem,
185 onClick: ((item: MediaGridItem) -> Unit)?,
186 onLongPress: ((item: MediaGridItem) -> Unit)?,
188 { item, isSelected, onClick, onLongPress, in onLongPress() method
190 when (item) { in onLongPress()
192 defaultBuildMediaItem(item, isSelected, onClick, onLongPress) in onLongPress()
[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/modules/OnDevicePersonalization/framework/java/com/android/ondevicepersonalization/internal/util/
DParcelling.java47 void parcel(T item, Parcel dest, int parcelFlags); in parcel() argument
106 public void parcel(@Nullable String item, Parcel dest, int parcelFlags) { in parcel() argument
107 dest.writeString(item); in parcel()
119 public void parcel(String[] item, Parcel dest, int parcelFlags) { in parcel() argument
120 dest.writeStringArray(item); in parcel()
139 public void parcel(List<String> item, Parcel dest, int parcelFlags) { in parcel() argument
140 dest.writeStringList(item); in parcel()
158 public void parcel(Map<String, String> item, Parcel dest, int parcelFlags) { in parcel() argument
159 dest.writeMap(item); in parcel()
175 public void parcel(Set<String> item, Parcel dest, int parcelFlags) { in parcel() argument
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/data/
DSelection.java141 return mSelectedItems.values().stream().filter((Item item) -> !item.isPreGranted()) in getNewlySelectedItems()
167 public LiveData<Integer> getSelectedItemOrder(Item item) { in getSelectedItemOrder() argument
168 return mSelectedItemsOrder.get(item.getContentUri()); in getSelectedItemOrder()
179 public void addSelectedItem(Item item) { in addSelectedItem() argument
182 item.getContentUri(), new MutableLiveData(getTotalItemsCount() + 1)); in addSelectedItem()
184 if (item.isPreGranted()) { in addSelectedItem()
188 mPreGrantedUris.add(item.getContentUri()); in addSelectedItem()
190 if (mItemGrantRevocationMap.containsKey(item.getContentUri())) { in addSelectedItem()
191 mItemGrantRevocationMap.remove(item.getContentUri()); in addSelectedItem()
194 mSelectedItems.put(item.getContentUri(), item); in addSelectedItem() local
[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/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/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/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()
56 final AppFilterItem item = AppFilterRegistry.getInstance().get(FILTER_APPS_USAGE_ACCESS); in compare_sameContent_return0() local
62 assertThat(item.compareTo(item)).isEqualTo(0); in compare_sameContent_return0()
63 assertThat(item.compareTo(item2)).isEqualTo(0); in compare_sameContent_return0()
64 assertThat(item2.compareTo(item)).isEqualTo(0); in compare_sameContent_return0()
69 final AppFilterItem item = AppFilterRegistry.getInstance().get(FILTER_APPS_USAGE_ACCESS); in compare_toNull_return1() local
70 assertThat(item.compareTo(null)).isEqualTo(1); in compare_toNull_return1()
75 final AppFilterItem item = AppFilterRegistry.getInstance().get(FILTER_APPS_USAGE_ACCESS); in compare_differentFilter_returnFilterDiff() local
[all …]
/packages/modules/Telephony/services/QualifiedNetworksService/src/com/android/telephony/qns/
DQnsProvisioningListener.java217 private void loadIntegerItem(int item) { in loadIntegerItem() argument
219 int value = mProvisioningManager.getProvisioningIntValue(item); in loadIntegerItem()
220 log("loadIntegerItem item:" + item + " value:" + value); in loadIntegerItem()
221 mProvisioningInfo.setIntegerItem(item, value); in loadIntegerItem()
227 private void loadStringItem(int item) { in loadStringItem() argument
229 String value = mProvisioningManager.getProvisioningStringValue(item); in loadStringItem()
230 log("loadStringItem item:" + item + " value:" + value); in loadStringItem()
231 mProvisioningInfo.setStringItem(item, value); in loadStringItem()
277 boolean hasItem(int item) { in hasItem() argument
278 return mIntegerItems.get(item) != null || mStringItems.get(item) != null; in hasItem()
[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 …]
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/util/
DWidgetUtils.java45 LauncherAppWidgetInfo item = new LauncherAppWidgetInfo( in createWidgetInfo() local
47 item.spanX = info.minSpanX; in createWidgetInfo()
48 item.spanY = info.minSpanY; in createWidgetInfo()
49 item.minSpanX = info.minSpanX; in createWidgetInfo()
50 item.minSpanY = info.minSpanY; in createWidgetInfo()
51 item.user = info.getProfile(); in createWidgetInfo()
52 item.cellX = 0; in createWidgetInfo()
53 item.cellY = 1; in createWidgetInfo()
54 item.container = LauncherSettings.Favorites.CONTAINER_DESKTOP; in createWidgetInfo()
60 pendingInfo.spanX = item.spanX; in createWidgetInfo()
[all …]

12345678910>>...36