/frameworks/base/core/java/android/metrics/ |
H A D | LogMaker.java | 56 public LogMaker(Object[] items) { argument 57 if (items != null) { 58 deserialize(items); 409 public void deserialize(Object[] items) { argument 411 while (items != null && i < items.length) { 412 Object key = items[i++]; 413 Object value = i < items.length ? items[i++] : null;
|
/frameworks/base/core/java/android/net/ |
H A D | SSLCertificateSocketFactory.java | 315 static byte[] toLengthPrefixedList(byte[]... items) { argument 316 if (items.length == 0) { 317 throw new IllegalArgumentException("items.length == 0"); 320 for (byte[] s : items) { 328 for (byte[] s : items) {
|
/frameworks/base/core/java/android/service/textservice/ |
H A D | SpellCheckerService.java | 381 public SentenceTextInfoParams(TextInfo ti, ArrayList<SentenceWordItem> items) { argument 383 mItems = items; 384 mSize = items.size();
|
/frameworks/base/core/java/android/widget/ |
H A D | ArrayAdapter.java | 264 * Adds the specified items at the end of the array. 266 * @param items The items to add at the end of the array. 269 public void addAll(T ... items) { argument 272 Collections.addAll(mOriginalValues, items); 274 Collections.addAll(mObjects, items);
|
/frameworks/base/core/tests/coretests/src/com/android/internal/inputmethod/ |
H A D | InputMethodSubtypeSwitchingControllerTest.java | 64 private static void addDummyImeSubtypeListItems(List<ImeSubtypeListItem> items, argument 90 items.add(new ImeSubtypeListItem(imeName, null /* variableName */, imi, 95 items.add(new ImeSubtypeListItem(imeName, subtypeLocale, imi, i, subtypeLocale, 131 final List<ImeSubtypeListItem> items = new ArrayList<>(); 132 addDummyImeSubtypeListItems(items, "LatinIme", "LatinIme", Arrays.asList("en_US", "fr"), 134 addDummyImeSubtypeListItems(items, "switchUnawareLatinIme", "switchUnawareLatinIme", 137 addDummyImeSubtypeListItems(items, "subtypeUnawareIme", "subtypeUnawareIme", null, 139 addDummyImeSubtypeListItems(items, "JapaneseIme", "JapaneseIme", Arrays.asList("ja_JP"), 141 addDummyImeSubtypeListItems(items, "switchUnawareJapaneseIme", "switchUnawareJapaneseIme", 143 return items; [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/animation/ |
H A D | AppearAnimationUtils.java | 132 private <T> AppearAnimationProperties getDelays(T[] items) { argument 136 mProperties.delays = new long[items.length][]; 137 for (int row = 0; row < items.length; row++) { 141 if (items[row] != null && delay > maxDelay) { 150 private <T> AppearAnimationProperties getDelays(T[][] items) { argument 154 mProperties.delays = new long[items.length][]; 155 for (int row = 0; row < items.length; row++) { 156 T[] columns = items[row]; 161 if (items[row][col] != null && delay > maxDelay) {
|
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/statusbar/ |
H A D | NotificationMenuRowPlugin.java | 64 * @return a list of items to populate the menu 'behind' a notification. 83 public void setMenuItems(ArrayList<MenuItem> items); argument
|
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/util/ |
H A D | XmlEditor.java | 149 filterNodesByName(String name, Iterable<T> items) { argument 151 for (T item : items) { 160 excludeNodesByName(String name, Iterable<T> items) { argument 162 for (T item : items) {
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/ |
H A D | ItemGroup.java | 17 package com.android.setupwizardlib.items; 190 // Need to set dirty, because our children may have gotten more items. 287 * If dirty, this method will recalculate the number of items and mHierarchyStart.
|
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/items/ |
H A D | RecyclerItemAdapter.java | 17 package com.android.setupwizardlib.items; 34 * create this adapter can be inflated by {@link com.android.setupwizardlib.items.ItemInflater} from
|
/frameworks/support/browser/src/main/java/androidx/browser/browseractions/ |
H A D | BrowserActionsIntent.java | 89 * Extra that specifies List<Bundle> used for adding custom items to the Browser Actions menu. 102 * The maximum allowed number of custom items. 123 * Defines the the ids of the browser specified menu items in Browser Actions. 200 * Sets the custom items list. 201 * Only maximum MAX_CUSTOM_ITEMS custom items are allowed, 203 * @param items The list of {@link BrowserActionItem} for custom items. 205 public Builder setCustomItems(ArrayList<BrowserActionItem> items) { argument 206 if (items.size() > MAX_CUSTOM_ITEMS) { 210 for (int i = 0; i < items 228 setCustomItems(BrowserActionItem... items) argument 293 openBrowserAction(Context context, Uri uri, int type, ArrayList<BrowserActionItem> items, PendingIntent pendingIntent) argument [all...] |
/frameworks/support/car/src/androidTest/java/androidx/car/widget/ |
H A D | TextListItemTest.java | 107 private void setupPagedListView(List<TextListItem> items) { argument 109 new ArrayList<>(items)); 156 List<TextListItem> items = Arrays.asList(item0, item1); 157 setupPagedListView(items); 173 List<TextListItem> items = Arrays.asList(item0, item1); 174 setupPagedListView(items); 195 List<TextListItem> items = Arrays.asList(item0, item1, item2); 196 setupPagedListView(items); 234 List<TextListItem> items = Arrays.asList(item0, item1); 235 setupPagedListView(items); [all...] |
H A D | PagedListViewTest.java | 83 * Used by {@link TestAdapter} to calculate ViewHolder height so N items appear in one page of 84 * {@link PagedListView}. If you need to test behavior under multiple pages, set number of items 91 // number of items per row. 133 /** Sets up {@link #mPagedListView} with the given number of items. */ 147 /** Sets up {@link #mPagedListView} with given items. */ 148 private void setupPagedListView(List<ListItem> items) { argument 153 new ListItemProvider.ListProvider(items))); 360 // Just need enough items to ensure the scroll bar is showing. 372 // Just need enough items to ensure the scroll bar is showing. 379 // Just need enough items t [all...] |
/frameworks/support/car/src/main/java/androidx/car/app/ |
H A D | CarListDialog.java | 54 * fixed list of items. There is no affordance for setting titles or any other text. 237 // see the items after they have been laid out. 281 * Initializes {@link #mAdapter} to display the items in the given array. It utilizes the 284 private void initializeWithItems(String[] items) { argument 288 for (int i = 0; i < items.length; i++) { 289 listItems.add(createItem(/* text= */ items[i], /* position= */ i)); 299 * display the individual items of a section. 311 String[] items = section.getItems(); 312 // Now initialize all the items associated with this subsection. 313 for (int i = 0, length = items 410 DialogSubSection(@onNull String title, @NonNull String[] items) argument 521 setItems(@onNull String[] items, @Nullable OnClickListener onClickListener) argument [all...] |
/frameworks/support/media/src/androidTest/java/androidx/media/ |
H A D | MockMediaLibraryService2.java | 205 private List<MediaItem2> getPaginatedResult(List<MediaItem2> items, int page, int pageSize) { argument 206 if (items == null) { 208 } else if (items.size() == 0) { 212 final int totalItemCount = items.size(); 219 paginatedResult = items.subList(fromIndex, toIndex);
|
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/ |
H A D | ConstructorTest.java | 68 void insertEntityWithAnnotations(EntityWithAnnotations... items); argument
|
/frameworks/support/slices/core/src/main/java/androidx/slice/ |
H A D | Slice.java | 79 private static final String ITEMS = "items"; 117 Slice(ArrayList<SliceItem> items, @SliceHint String[] hints, Uri uri, argument 120 mItems = items.toArray(new SliceItem[items.size()]); 131 Parcelable[] items = in.getParcelableArray(ITEMS); 132 mItems = new SliceItem[items.length]; 134 if (items[i] instanceof Bundle) { 135 mItems[i] = new SliceItem((Bundle) items[i]);
|
/frameworks/support/slices/view/src/main/java/androidx/slice/widget/ |
H A D | GridContent.java | 104 List<SliceItem> items = gridItem.getSlice().getItems(); 105 if (items.size() == 1 && FORMAT_SLICE.equals(items.get(0).getFormat())) { 107 items = items.get(0).getSlice().getItems(); 109 items = filterAndProcessItems(items); 111 if (items.size() == 1 && items.get(0).getFormat().equals(FORMAT_SLICE)) { 112 items 199 filterAndProcessItems(List<SliceItem> items) argument [all...] |
/frameworks/av/services/mediaresourcemanager/ |
H A D | ResourceManagerService.cpp | 64 static String8 getString(const Vector<T> &items) { argument 66 for (size_t i = 0; i < items.size(); ++i) { 67 itemsStr.appendFormat("%s ", items[i].toString().string());
|
/frameworks/base/core/java/android/content/ |
H A D | ClipData.java | 728 * @param items The items in the clip. Not that a defensive copy of this 733 public ClipData(ClipDescription description, ArrayList<Item> items) { argument 735 if (items == null) { 739 mItems = items; 744 * of all items in the clip. 870 * {@link ClipDescription}. It should be used only when adding items which do not add new 920 * Return the number of items in the clip data.
|
/frameworks/base/core/java/com/android/internal/inputmethod/ |
H A D | InputMethodSubtypeSwitchingController.java | 532 final List<ImeSubtypeListItem> items, 535 final int ALL_ITEMS_COUNT = items.size(); 537 final ImeSubtypeListItem item = items.get(i); 531 filterImeSubtypeList( final List<ImeSubtypeListItem> items, final boolean supportsSwitchingToNextInputMethod) argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
H A D | QSDetailItems.java | 40 * Quick settings common detail view with line items. 132 public void setItems(Item[] items) { argument 134 mHandler.obtainMessage(H.SET_ITEMS, items).sendToTarget(); 146 private void handleSetItems(Item[] items) { argument 147 final int itemCount = items != null ? items.length : 0; 150 mItems = items;
|
/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | ConditionProviders.java | 332 private static <T> ArraySet<T> safeSet(T... items) { argument 334 if (items == null || items.length == 0) return rt; 335 final int N = items.length; 337 final T item = items[i];
|
/frameworks/native/libs/vr/libpdx/private/pdx/ |
H A D | service.h | 419 * Automatically converts returned items to shared pointers of the type 425 std::vector<std::shared_ptr<C>> items; local 426 items.reserve(channels_.size()); 429 items.push_back(std::static_pointer_cast<C>(pair.second)); 432 return items;
|
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/ |
H A D | BaseGridLayoutManagerTest.java | 342 void setFullSpan(int... items) { argument 343 for (int i : items) { 372 void setFullSpan(int... items) { argument 373 for (int i : items) {
|