Home
last modified time | relevance | path

Searched refs:emptyList (Results 1 – 25 of 208) sorted by relevance

123456789

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/
DLiteTest.java33 import static java.util.Collections.emptyList;
540 assertEquals(emptyList(), message.getRepeatedBoolList()); in testSanityCopyOnWrite()
542 assertEquals(emptyList(), message.getRepeatedBoolList()); in testSanityCopyOnWrite()
545 assertEquals(emptyList(), builder.getRepeatedBoolList()); in testSanityCopyOnWrite()
550 assertEquals(emptyList(), message.getRepeatedBytesList()); in testSanityCopyOnWrite()
554 assertEquals(emptyList(), message.getRepeatedBytesList()); in testSanityCopyOnWrite()
557 assertEquals(emptyList(), builder.getRepeatedBytesList()); in testSanityCopyOnWrite()
564 assertEquals(emptyList(), message.getRepeatedCordList()); in testSanityCopyOnWrite()
566 assertEquals(emptyList(), message.getRepeatedCordList()); in testSanityCopyOnWrite()
569 assertEquals(emptyList(), builder.getRepeatedCordList()); in testSanityCopyOnWrite()
[all …]
DProtobufArrayListTest.java59 assertSame(ProtobufArrayList.emptyList(), ProtobufArrayList.emptyList()); in testEmptyListReturnsSameInstance()
63 assertImmutable(ProtobufArrayList.<Integer>emptyList()); in testEmptyListIsImmutable()
162 list.addAll(Collections.<Integer>emptyList()); in assertImmutable()
204 list.addAll(0, Collections.<Integer>emptyList()); in assertImmutable()
232 list.removeAll(Collections.emptyList()); in assertImmutable()
253 list.retainAll(Collections.emptyList()); in assertImmutable()
DFloatArrayListTest.java61 assertSame(FloatArrayList.emptyList(), FloatArrayList.emptyList()); in testEmptyListReturnsSameInstance()
65 assertImmutable(FloatArrayList.emptyList()); in testEmptyListIsImmutable()
145 assertEquals(0, FloatArrayList.emptyList().size()); in testSize()
269 assertFalse(list.addAll(Collections.<Float>emptyList())); in testAddAll()
270 assertFalse(list.addAll(FloatArrayList.emptyList())); in testAddAll()
321 list.addAll(Collections.<Float>emptyList()); in assertImmutable()
363 list.addAll(0, Collections.<Float>emptyList()); in assertImmutable()
398 list.removeAll(Collections.<Float>emptyList()); in assertImmutable()
419 list.retainAll(Collections.<Float>emptyList()); in assertImmutable()
DLongArrayListTest.java61 assertSame(LongArrayList.emptyList(), LongArrayList.emptyList()); in testEmptyListReturnsSameInstance()
65 assertImmutable(LongArrayList.emptyList()); in testEmptyListIsImmutable()
145 assertEquals(0, LongArrayList.emptyList().size()); in testSize()
269 assertFalse(list.addAll(Collections.<Long>emptyList())); in testAddAll()
270 assertFalse(list.addAll(LongArrayList.emptyList())); in testAddAll()
321 list.addAll(Collections.<Long>emptyList()); in assertImmutable()
363 list.addAll(0, Collections.<Long>emptyList()); in assertImmutable()
398 list.removeAll(Collections.<Long>emptyList()); in assertImmutable()
419 list.retainAll(Collections.<Long>emptyList()); in assertImmutable()
DIntArrayListTest.java61 assertSame(IntArrayList.emptyList(), IntArrayList.emptyList()); in testEmptyListReturnsSameInstance()
65 assertImmutable(IntArrayList.emptyList()); in testEmptyListIsImmutable()
145 assertEquals(0, IntArrayList.emptyList().size()); in testSize()
269 assertFalse(list.addAll(Collections.<Integer>emptyList())); in testAddAll()
270 assertFalse(list.addAll(IntArrayList.emptyList())); in testAddAll()
321 list.addAll(Collections.<Integer>emptyList()); in assertImmutable()
363 list.addAll(0, Collections.<Integer>emptyList()); in assertImmutable()
398 list.removeAll(Collections.<Integer>emptyList()); in assertImmutable()
419 list.retainAll(Collections.<Integer>emptyList()); in assertImmutable()
DBooleanArrayListTest.java61 assertSame(BooleanArrayList.emptyList(), BooleanArrayList.emptyList()); in testEmptyListReturnsSameInstance()
65 assertImmutable(BooleanArrayList.emptyList()); in testEmptyListIsImmutable()
145 assertEquals(0, BooleanArrayList.emptyList().size()); in testSize()
269 assertFalse(list.addAll(Collections.<Boolean>emptyList())); in testAddAll()
270 assertFalse(list.addAll(BooleanArrayList.emptyList())); in testAddAll()
318 list.addAll(Collections.<Boolean>emptyList()); in assertImmutable()
360 list.addAll(0, Collections.<Boolean>emptyList()); in assertImmutable()
395 list.removeAll(Collections.<Boolean>emptyList()); in assertImmutable()
416 list.retainAll(Collections.<Boolean>emptyList()); in assertImmutable()
DDoubleArrayListTest.java61 assertSame(DoubleArrayList.emptyList(), DoubleArrayList.emptyList()); in testEmptyListReturnsSameInstance()
65 assertImmutable(DoubleArrayList.emptyList()); in testEmptyListIsImmutable()
145 assertEquals(0, DoubleArrayList.emptyList().size()); in testSize()
269 assertFalse(list.addAll(Collections.<Double>emptyList())); in testAddAll()
270 assertFalse(list.addAll(DoubleArrayList.emptyList())); in testAddAll()
321 list.addAll(Collections.<Double>emptyList()); in assertImmutable()
363 list.addAll(0, Collections.<Double>emptyList()); in assertImmutable()
398 list.removeAll(Collections.<Double>emptyList()); in assertImmutable()
419 list.retainAll(Collections.<Double>emptyList()); in assertImmutable()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/logging/
DExpansionStateLoggerTest.java68 Collections.emptyList()); in testVisible()
91 Collections.emptyList()); in testVisibleAndNotExpanded()
104 Collections.emptyList()); in testVisibleAndExpanded()
119 Collections.emptyList()); in testExpandedAndVisible_expandedBeforeVisible()
133 Collections.emptyList()); in testExpandedAndVisible_visibleBeforeExpanded()
148 Collections.emptyList()); in testExpandedAndVisible_logOnceOnly()
166 Collections.emptyList()); in testOnEntryReinflated()
174 Collections.emptyList()); in testOnEntryReinflated()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWakeupLockTest.java126 mWakeupLock.setLock(Collections.emptyList()); in verifyInitializingLockByTimeout()
140 mWakeupLock.setLock(Collections.emptyList()); in addToLockSavesToStore()
163 setLockAndInitializeByTimeout(Collections.emptyList()); in isEmptyWhenInitializedWithEmptyList()
175 setLockAndInitializeByTimeout(Collections.emptyList()); in setLockClearsPreviousNetworks()
220 updateEnoughTimesToEvictWithAsserts(Collections.emptyList()); in updateWithLockedNetworkAfterItIsRemovedDoesNotReset()
258 updateEnoughTimesToEvictWithoutAsserts(Collections.emptyList()); in updateShouldOnlySaveIfLockChanges()
286 mWakeupLock.update(Collections.emptyList()); in unlockingShouldRecordEventInMetrics()
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
DModelFileManagerTest.java89 new File("/path/a"), 1, Collections.emptyList(), "", true); in get()
103 Collections.emptyList(), "", true); in findBestModel_versionCode()
108 Collections.emptyList(), "", true); in findBestModel_versionCode()
124 Collections.emptyList(), "", true); in findBestModel_languageDependentModelIsPreferred()
146 Collections.emptyList(), "", true); in findBestModel_noMatchedLanguageModel()
168 Collections.emptyList(), "", true); in findBestModel_noMatchedLanguageModel_defaultLocaleModelExists()
218 Collections.emptyList(), "", true); in findBestModel_languageIsMoreImportantThanVersion_bestModelComesFirst()
291 Collections.emptyList(), "", true); in modelFile_isPreferredTo_languageDependentIsBetter()
306 Collections.emptyList(), "", false); in modelFile_isPreferredTo_version()
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
DAndroidPackageInfoFetcher.java79 return Collections.<String>emptyList(); in getStatements()
83 return Collections.<String>emptyList(); in getStatements()
90 return Collections.<String>emptyList(); in getStatements()
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DBackgroundFallbackTest.java30 import static java.util.Collections.emptyList;
205 new ColorDrawable(Color.BLACK), VISIBLE, emptyList()); in setUpViewHierarchy()
213 SCREEN_HEIGHT, new ColorDrawable(Color.BLACK), VISIBLE, emptyList()); in setUpViewHierarchy()
220 new ColorDrawable(Color.BLACK), VISIBLE, emptyList()); in setUpViewHierarchy()
227 SCREEN_HEIGHT, new ColorDrawable(Color.BLACK), VISIBLE, emptyList()); in setUpViewHierarchy()
235 SCREEN_HEIGHT - insetTop - insetBottom, null, VISIBLE, emptyList()); in setUpViewHierarchy()
/frameworks/base/core/java/com/android/internal/util/
DCollectionUtils.java111 if (isEmpty(cur)) return Collections.emptyList(); in map()
153 if (isEmpty(cur)) return Collections.emptyList(); in mapNotNull()
172 return cur == null ? Collections.emptyList() : cur; in emptyIfNull()
211 if (isEmpty(list)) return Collections.emptyList(); in filter()
250 if (cur == null || cur == Collections.emptyList()) { in add()
295 return isEmpty(cur) ? Collections.emptyList() : new ArrayList<>(cur); in copyOf()
348 return item == null ? Collections.emptyList() : Collections.singletonList(item); in singletonOrEmpty()
/frameworks/layoutlib/bridge/src/android/view/accessibility/
DAccessibilityManager.java242 return Collections.emptyList(); in getAccessibilityServiceList()
246 return Collections.emptyList(); in getInstalledAccessibilityServiceList()
264 return Collections.emptyList(); in getEnabledAccessibilityServiceList()
/frameworks/base/services/core/java/com/android/server/inputmethod/
DInputMethodManagerInternal.java74 return Collections.emptyList();
79 return Collections.emptyList();
/frameworks/base/core/java/android/view/
DGestureExclusionTracker.java37 private List<Rect> mRootGestureExclusionRects = Collections.emptyList();
39 private List<Rect> mGestureExclusionRects = Collections.emptyList();
113 List<Rect> mExclusionRects = Collections.emptyList();
DKeyboardShortcutGroup.java53 this(label, Collections.<KeyboardShortcutInfo>emptyList()); in KeyboardShortcutGroup()
77 this(label, Collections.<KeyboardShortcutInfo>emptyList(), isSystemGroup); in KeyboardShortcutGroup()
/frameworks/base/core/java/android/content/pm/
DStringParceledListSlice.java42 public static StringParceledListSlice emptyList() { in emptyList() method in StringParceledListSlice
43 return new StringParceledListSlice(Collections.<String> emptyList()); in emptyList()
DParceledListSlice.java45 public static <T extends Parcelable> ParceledListSlice<T> emptyList() { in emptyList() method in ParceledListSlice
46 return new ParceledListSlice<T>(Collections.<T> emptyList()); in emptyList()
/frameworks/base/core/java/android/appwidget/
DAppWidgetManager.java761 return Collections.emptyList(); in getInstalledProvidersForProfile()
792 return Collections.emptyList(); in getInstalledProvidersForPackage()
803 return Collections.emptyList(); in getInstalledProviders()
824 return Collections.emptyList(); in getInstalledProviders()
852 return Collections.emptyList(); in getInstalledProvidersForProfile()
863 return Collections.emptyList(); in getInstalledProvidersForProfile()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/
DRenderResult.java39 mSystemViews = systemViewInfoList == null ? Collections.emptyList() : systemViewInfoList; in RenderResult()
40 mRootViews = rootViewInfoList == null ? Collections.emptyList() : rootViewInfoList; in RenderResult()
/frameworks/layoutlib/remote/client/src/com/android/layoutlib/bridge/remote/client/adapters/
DRemoteRenderSessionAdapter.java94 return Collections.emptyList(); in getRootViews()
100 return Collections.emptyList(); in getSystemRootViews()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/
DRemotePrintServicePlugin.java73 mPrinters = Collections.emptyList(); in RemotePrintServicePlugin()
136 mPrinters = Collections.emptyList(); in onChanged()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserDataPreparerTest.java146 assertEquals(Collections.emptyList(), Arrays.asList(FileUtils.listFilesOrEmpty( in testDestroyUserData()
166 assertEquals(Collections.emptyList(), Arrays.asList(FileUtils.listFilesOrEmpty(systemDir))); in testDestroyUserData_De()
167 assertEquals(Collections.emptyList(), Arrays.asList(FileUtils.listFilesOrEmpty( in testDestroyUserData_De()
184 assertEquals(Collections.emptyList(), Arrays.asList(FileUtils.listFilesOrEmpty( in testDestroyUserData_Ce()
/frameworks/base/core/java/android/app/slice/
DSliceProvider.java271 return Collections.emptyList(); in onGetSliceDescendants()
490 Collections.emptyList()) in createPermissionSlice()
502 Collections.emptyList()) in createPermissionSlice()
504 Collections.emptyList()) in createPermissionSlice()
506 Collections.emptyList()) in createPermissionSlice()

123456789