Home
last modified time | relevance | path

Searched +full:new +full:- +full:item (Results 1 – 25 of 1261) sorted by relevance

12345678910>>...51

/aosp_15_r20/libcore/ojluni/src/test/java/util/concurrent/tck/
H A DCompletableFutureTest.java16 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
30 * members of JCP JSR-166 Expert Group and released to the public
86 // Android-changed: Use JUnit4.
89 // Android-changed: Use JUnitCore.main.
95 // return new TestSuite(CompletableFutureTest.class);
144 return f.handle((u, t) -> t).join(); in exceptionalCompletion()
195 t -> assertTrue(t instanceof CFException));
200 t -> assertTrue(t instanceof CancellationException)); in checkCompletedWithWrappedCancellationException()
205 t -> assertTrue(t instanceof TimeoutException)); in checkCompletedWithTimeoutException()
210 checkCompletedExceptionally(f, true, t -> assertSame(t, ex)); in checkCompletedWithWrappedException()
[all …]
/aosp_15_r20/external/python/cpython2/PC/VS7.1/
Dpython20.wse2 item: Global
23 EXE Filename=Python-2.4a1.exe
27 Version Copyright=�2001-2007 Python Software Foundation
77 item: Set Variable
81 item: Remark
83 item: Remark
86 item: Remark
89 item: Remark
92 item: Remark
95 item: Remark
[all …]
/aosp_15_r20/frameworks/base/core/java/android/content/
H A DClipData.java8 * http://www.apache.org/licenses/LICENSE-2.0
62 * <p>ClipData is a complex type containing one or more Item instances,
63 * each of which can hold one or more representations of an item of data.
67 * important meta-data about the clip. In particular, its
75 * <p>Each Item instance can be one of three main classes of data: a simple
76 * CharSequence of text, a single Intent object, or a Uri. See {@link Item}
82 * <a href="{@docRoot}guide/topics/clipboard/copy-paste.html">Copy and Paste</a>
90 * the application must correctly interpret the data for its use. If the {@link Item}
97 * can use the convenience method {@link Item#coerceToText Item.coerceToText}.
100 * since any clip item can always be converted to a string.
[all …]
/aosp_15_r20/tools/metalava/metalava/src/main/java/com/android/tools/metalava/
H A DComparisonVisitor.kt8 * http://www.apache.org/licenses/LICENSE-2.0 in <lambda>()
25 import com.android.tools.metalava.model.Item in <lambda>()
40 open fun compareItems(old: Item, new: Item) {} in <lambda>()
42 open fun addedItem(new: SelectableItem) {} in <lambda>()
46 open fun comparePackageItems(old: PackageItem, new: PackageItem) {} in <lambda>()
48 open fun compareClassItems(old: ClassItem, new: ClassItem) {} in <lambda>()
50 open fun compareCallableItems(old: CallableItem, new: CallableItem) {} in <lambda>()
52 open fun compareConstructorItems(old: ConstructorItem, new: ConstructorItem) {} in <lambda>()
54 open fun compareMethodItems(old: MethodItem, new: MethodItem) {} in <lambda>()
56 open fun compareFieldItems(old: FieldItem, new: FieldItem) {} in <lambda>()
[all …]
/aosp_15_r20/external/emma/core/java12/com/vladium/emma/report/html/
H A DReportGenerator.java5 * and is available at http://www.eclipse.org/legal/cpl-v10.html
53 // ----------------------------------------------------------------------------
68 m_fieldPosition = new FieldPosition (DecimalFormat.INTEGER_FIELD); in ReportGenerator()
91 …if ((outDir == null) /* this should never happen */ || (outDir.equals (new File (Property.getSyste… in process()
93 outDir = new File ("coverage"); in process()
103 m_queue = new LinkedList (); in process()
104 m_reportIDNamespace = new IDGenerator (mdata.size ()); in process()
120 … m_log.trace1 ("process", "[" + getType () + "] report generated in " + (end - start) + " ms"); in process()
135 public Object visit (final AllItem item, final Object ctx) in visit() argument
143 outFile = new File ("index".concat (FILE_EXTENSION)); in visit()
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/predicates/src/
Dboolean.rs1 // Copyright (c) 2018 The predicates-rs Project Developers.
3 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4 // http://www.apache.org/license/LICENSE-2.0> or the MIT license
5 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
21 pub struct AndPredicate<M1, M2, Item>
23 M1: Predicate<Item>,
24 M2: Predicate<Item>,
25 Item: ?Sized,
29 _phantom: PhantomData<Item>,
32 unsafe impl<M1, M2, Item> Send for AndPredicate<M1, M2, Item>
[all …]
/aosp_15_r20/packages/apps/Launcher3/src/com/android/launcher3/model/
DModelWriter.java8 * http://www.apache.org/licenses/LICENSE-2.0
79 private final List<ModelTask> mDeleteRunnables = new ArrayList<>();
95 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()
106 * Adds an item to the DB if it was not created previously, or move it to a new
109 public void addOrMoveItemInDatabase(ItemInfo item, in addOrMoveItemInDatabase() argument
111 if (item.id == ItemInfo.NO_ID) { in addOrMoveItemInDatabase()
[all …]
/aosp_15_r20/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/
DRootsFragment.java8 * http://www.apache.org/licenses/LICENSE-2.0
107 private final OnItemClickListener mItemListener = new OnItemClickListener() {
110 final Item item = mAdapter.getItem(position);
111 item.open();
117 private final OnItemLongClickListener mItemLongClickListener = new OnItemLongClickListener() {
120 final Item item = mAdapter.getItem(position);
121 return item.showAppDetails();
136 private List<Item> mApplicationItemList;
148 final Bundle args = new Bundle(); in show()
152 final RootsFragment fragment = new RootsFragment(); in show()
[all …]
/aosp_15_r20/external/aws-sdk-java-v2/services-custom/dynamodb-enhanced/src/main/java/software/amazon/awssdk/enhanced/dynamodb/
H A DDynamoDbTable.java65 … * Creates a new table in DynamoDb with the name and schema already defined for this DynamoDbTable
70 …* This operation calls the low-level DynamoDB API CreateTable operation. Note that this is an asyn…
86 * dynamoDbClient.waiter().waitUntilTableExists(b -> b.tableName(tableName));
93 throw new UnsupportedOperationException(); in createTable()
97 … * Creates a new table in DynamoDb with the name and schema already defined for this DynamoDbTable
102 …* This operation calls the low-level DynamoDB API CreateTable operation. Note that this is an asyn…
117 * mappedTable.createTable(r -> r.provisionedThroughput(provisionedThroughput));
118 * dynamoDbClient.waiter().waitUntilTableExists(b -> b.tableName(tableName));
126 throw new UnsupportedOperationException(); in createTable()
130 … * Creates a new table in DynamoDb with the name and schema already defined for this DynamoDbTable.
[all …]
H A DDynamoDbAsyncTable.java65 … * Creates a new table in DynamoDb with the name and schema already defined for this DynamoDbTable
70 …* This operation calls the low-level DynamoDB API CreateTable operation. Note that this is an asyn…
86 * asyncClient.waiter().waitUntilTableExists(b -> b.tableName(tableName)).join();
94 throw new UnsupportedOperationException(); in createTable()
98 … * Creates a new table in DynamoDb with the name and schema already defined for this DynamoDbTable
103 …* This operation calls the low-level DynamoDB API CreateTable operation. Note that this is an asyn…
118 * mappedTable.createTable(r -> r.provisionedThroughput(provisionedThroughput)).join();
119 * asyncClient.waiter().waitUntilTableExists(b -> b.tableName(tableName)).join();
128 throw new UnsupportedOperationException(); in createTable()
132 … * Creates a new table in DynamoDb with the name and schema already defined for this DynamoDbTable.
[all …]
/aosp_15_r20/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpItemTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
39 private static final String UUID = "AVRCP-ITEM-TEST-UUID";
73 AvrcpItem.Builder builder = new AvrcpItem.Builder(); in buildAvrcpItem()
90 AvrcpItem item = builder.build(); in buildAvrcpItem() local
92 Assert.assertEquals(mDevice, item.getDevice()); in buildAvrcpItem()
93 Assert.assertEquals(true, item.isPlayable()); in buildAvrcpItem()
94 Assert.assertEquals(false, item.isBrowsable()); in buildAvrcpItem()
95 Assert.assertEquals(0, item.getUid()); in buildAvrcpItem()
96 Assert.assertEquals(UUID, item.getUuid()); in buildAvrcpItem()
97 Assert.assertEquals(null, item.getDisplayableName()); in buildAvrcpItem()
[all …]
/aosp_15_r20/frameworks/native/libs/gui/tests/
H A DBufferQueue_test.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
32 #include <android-base/properties.h>
66 ASSERT_EQ(OK, mProducer->query(NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS, in GetMinUndequeuedBufferCount()
76 const BufferItem& item) { in testBufferItem() argument
87 ASSERT_EQ(timestamp, item.mTimestamp); in testBufferItem()
88 ASSERT_EQ(isAutoTimestamp, item.mIsAutoTimestamp); in testBufferItem()
89 ASSERT_EQ(dataSpace, item.mDataSpace); in testBufferItem()
90 ASSERT_EQ(crop, item.mCrop); in testBufferItem()
91 ASSERT_EQ(static_cast<uint32_t>(scalingMode), item.mScalingMode); in testBufferItem()
92 ASSERT_EQ(transform, item.mTransform); in testBufferItem()
[all …]
/aosp_15_r20/packages/apps/Gallery/src/com/android/camera/
DGalleryPicker.java8 * http://www.apache.org/licenses/LICENSE-2.0
75 Handler mHandler = new Handler(); // handler for the main thread
92 mGridView.setOnItemClickListener(new AdapterView.OnItemClickListener() { in onCreate()
100 new View.OnCreateContextMenuListener() { in onCreate()
107 mReceiver = new BroadcastReceiver() { in onCreate()
114 mDbObserver = new ContentObserver(mHandler) { in onCreate()
178 // This is called when we receive media-related broadcast.
209 .setOnMenuItemClickListener(new OnMenuItemClickListener() { in onCreateGalleryPickerContextMenu()
210 public boolean onMenuItemClick(MenuItem item) { in onCreateGalleryPickerContextMenu()
217 .setOnMenuItemClickListener(new OnMenuItemClickListener() { in onCreateGalleryPickerContextMenu()
[all …]
/aosp_15_r20/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/util/
H A DCollationMapMaker.java3 * Copyright (c) 2006-2007, Google and others. All Rights Reserved.
58 if ((result = n1 - n2) != 0) { in compare()
63 result = UTF16.countCodePoint(s2) - UTF16.countCodePoint(s1); in compare()
65 if (s1.length() == 0) return -1; in compare()
80 private UnicodeMap m = new UnicodeMap();
89 throw new InternalError("Clone problem"); in clone()
118 for (UnicodeSetIterator i = new UnicodeSetIterator(m.keySet()); i.next(); ) { in minimalize()
134 UnicodeMap newMap = new UnicodeMap(); in fixNeeded()
137 for (UnicodeSetIterator i = new UnicodeSetIterator(values); i.next(); ) { in fixNeeded()
144 System.out.println("->\t" + result); in fixNeeded()
[all …]
H A DMatchValue.java40 public abstract boolean is(String item); in is() argument
104 throw new IllegalArgumentException( in of()
109 "Non-standard form or error: " + originalArg + " ==> " + result.getName()); in of()
113 throw new IllegalArgumentException("Problem with: " + originalArg, e); in of()
117 /** Check that a bcp47 locale ID is well-formed. Does not check validity. */
119 static final UnicodeSet basechars = new UnicodeSet("[A-Za-z0-9_]");
125 return "validity/bcp47-wellformed"; in getName()
129 public boolean is(String item) { in is() argument
130 if (item.equals("und")) return true; // special case because of the matcher in is()
131 if (item.contains("_")) return false; // reject any underscores in is()
[all …]
H A DPick.java3 * Copyright (C) 2002-2012, International Business Machines Corporation and *
34 Target result = new Target(); in make()
73 if (codepoint == '-') { in append()
81 if (s.contains("-")) { in append()
100 throw new DepthExceededException(this, pick); in enterStack()
109 Replacer visitor = new Replacer(toReplace, replacement); in replace()
119 return new Sequence(); in makeSequence()
123 return new Alternation(); in makeAlternation()
126 static public Pick.Sequence and(Object item) {
127 return new Sequence().and2(item);
[all …]
/aosp_15_r20/external/coreboot/util/kconfig/
H A Dqconf.cc1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
106 sym = menu->sym; in updateMenu()
107 prop = menu->prompt; in updateMenu()
110 if (prop) switch (prop->type) { in updateMenu()
112 if (list->mode == singleMode || list->mode == symbolMode) { in updateMenu()
116 if (sym && list->rootEntry == menu) in updateMenu()
135 setText(nameColIdx, sym->name); in updateMenu()
143 if (!sym_is_changeable(sym) && list->optMode == normalOpt) { in updateMenu()
178 prompt += " (NEW)"; in updateMenu()
[all …]
/aosp_15_r20/packages/apps/Gallery2/src/com/android/gallery3d/app/
DPhotoDataAdapter.java8 * http://www.apache.org/licenses/LICENSE-2.0
72 // screennail (offset = +1), then the previous screennail (offset = -1) etc.
88 sImageFetchSeq = new ImageFetch[1 + (IMAGE_CACHE_SIZE - 1) * 2 + 3];
89 sImageFetchSeq[k++] = new ImageFetch(0, BIT_SCREEN_NAIL);
92 sImageFetchSeq[k++] = new ImageFetch(i, BIT_SCREEN_NAIL);
93 sImageFetchSeq[k++] = new ImageFetch(-i, BIT_SCREEN_NAIL);
96 sImageFetchSeq[k++] = new ImageFetch(0, BIT_FULL_IMAGE);
97 sImageFetchSeq[k++] = new ImageFetch(1, BIT_FULL_IMAGE);
98 sImageFetchSeq[k++] = new ImageFetch(-1, BIT_FULL_IMAGE);
101 private final TileImageViewAdapter mTileProvider = new TileImageViewAdapter();
[all …]
/aosp_15_r20/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/viewmodel/
DPickerViewModelTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
38 import static com.android.providers.media.photopicker.data.model.Item.ROW_ID;
88 import com.android.providers.media.photopicker.data.model.Item;
121 public InstantTaskExecutorRule instantTaskExecutorRule = new InstantTaskExecutorRule();
151 mConfigStore = new TestConfigStore(); in setUp()
163 getInstrumentation().runOnMainSync(() -> { in setUp()
164 mPickerViewModel = new PickerViewModel(mApplication) { in setUp()
172 mItemsProvider = new TestItemsProvider(sTargetContext); in setUp()
209 final List<Item> itemList = Objects.requireNonNull( in testGetItems_noItems()
212 new PaginationParameters()).getValue()).getItems(); in testGetItems_noItems()
[all …]
/aosp_15_r20/libcore/luni/src/test/java/libcore/xml/
H A DDomTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
83 + " <item xmlns=\"http://food\" xmlns:a=\"http://addons\">\n"
91 + " <!-- add other vitamins? --> \n"
95 + " </item>\n"
103 private Element item; field in DomTest
133 document = builder.parse(new InputSource(new StringReader(xml))); in setUp()
138 sp = (Entity) doctype.getEntities().item(0); in setUp()
141 png = (Notation) doctype.getNotations().item(0); in setUp()
146 item = (Element) menu.getChildNodes().item(1); in setUp()
147 itemXmlns = item.getAttributeNode("xmlns"); in setUp()
[all …]
/aosp_15_r20/frameworks/base/services/core/java/com/android/server/om/
H A DOverlayManagerSettings.java8 * http://www.apache.org/licenses/LICENSE-2.0
72 private final ArrayList<SettingsItem> mItems = new ArrayList<>();
80 final SettingsItem item = new SettingsItem(overlay, userId, targetPackageName, in init() local
83 insert(item); in init()
84 return item.getOverlayInfo(); in init()
103 throw new BadKeyException(overlay, userId); in getOverlayInfo()
124 throw new BadKeyException(overlay, userId); in setBaseCodePath()
133 throw new BadKeyException(overlay, userId); in setCategory()
142 throw new BadKeyException(overlay, userId); in getEnabled()
154 throw new BadKeyException(overlay, userId); in setEnabled()
[all …]
/aosp_15_r20/external/autotest/frontend/client/src/autotest/common/ui/
H A DMultiListSelectPresenter.java46 * The given generated Item was just deselected; handle any necessary cleanup.
48 public void onRemoveGeneratedItem(Item generatedItem); in onRemoveGeneratedItem()
51 public static class Item implements Comparable<Item> { class in MultiListSelectPresenter
54 // a generated item is destroyed when deselected.
59 private Item(String name, String value) { in Item() method in MultiListSelectPresenter.Item
64 public static Item createItem(String name, String value) { in createItem()
65 return new Item(name, value); in createItem()
68 public static Item createGeneratedItem(String name, String value) { in createGeneratedItem()
69 Item item = new Item(name, value); in createGeneratedItem() local
70 item.isGeneratedItem = true; in createGeneratedItem()
[all …]
/aosp_15_r20/packages/apps/Launcher3/src/com/android/launcher3/accessibility/
DLauncherAccessibilityDelegate.java79 public static final int INVALID = -1;
89 mActions.put(REMOVE, new LauncherAction( in LauncherAccessibilityDelegate()
91 mActions.put(UNINSTALL, new LauncherAction( in LauncherAccessibilityDelegate()
93 mActions.put(DISMISS_PREDICTION, new LauncherAction(DISMISS_PREDICTION, in LauncherAccessibilityDelegate()
95 mActions.put(RECONFIGURE, new LauncherAction( in LauncherAccessibilityDelegate()
97 mActions.put(ADD_TO_WORKSPACE, new LauncherAction( in LauncherAccessibilityDelegate()
99 mActions.put(MOVE, new LauncherAction( in LauncherAccessibilityDelegate()
101 mActions.put(MOVE_TO_WORKSPACE, new LauncherAction(MOVE_TO_WORKSPACE, in LauncherAccessibilityDelegate()
103 mActions.put(RESIZE, new LauncherAction( in LauncherAccessibilityDelegate()
105 mActions.put(DEEP_SHORTCUTS, new LauncherAction(DEEP_SHORTCUTS, in LauncherAccessibilityDelegate()
[all …]
/aosp_15_r20/frameworks/base/telephony/java/android/telephony/ims/stub/
H A DImsConfigImplBase.java8 * http://www.apache.org/licenses/LICENSE-2.0
92 private HashMap<Integer, Integer> mProvisionedIntValue = new HashMap<>();
93 private HashMap<Integer, String> mProvisionedStringValue = new HashMap<>();
94 private final Object mLock = new Object();
101 new WeakReference<ImsConfigImplBase>(imsConfigImplBase); in ImsConfigStub()
106 AtomicReference<RemoteException> exceptionRef = new AtomicReference<>(); in addImsConfigCallback()
107 executeMethodAsync(()-> { in addImsConfigCallback()
123 AtomicReference<RemoteException> exceptionRef = new AtomicReference<>(); in removeImsConfigCallback()
124 executeMethodAsync(()-> { in removeImsConfigCallback()
143 * @param item integer key
[all …]
/aosp_15_r20/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/data/
DSelection.java8 * http://www.apache.org/licenses/LICENSE-2.0
29 import com.android.providers.media.photopicker.data.model.Item;
47 * Contains positions of checked Item at UI. {@link #mCheckedItemIndexes} may have more number
50 * notifyItemChanged() at the time of deselecting the unavailable item at UI when user is
51 * offline and tries adding unavailable non cached items. the item corresponding to the index in
54 private final Map<Item, Integer> mCheckedItemIndexes = new HashMap<>();
57 private Map<Uri, Item> mSelectedItems = new LinkedHashMap<>();
58 private Map<Uri, MutableLiveData<Integer>> mSelectedItemsOrder = new HashMap<>();
60 private MutableLiveData<Integer> mSelectedItemSize = new MutableLiveData<>();
63 private List<Item> mSelectedItemsForPreview = new ArrayList<>();
[all …]

12345678910>>...51