Home
last modified time | relevance | path

Searched refs:newArrayList (Results 1 – 25 of 53) sorted by relevance

123

/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DPredicatesTest.java39 assertTrue(Predicates.and(newArrayList(TRUE)).apply(null)); in testAndPredicate_AllConditionsTrue()
40 assertTrue(Predicates.and(newArrayList(TRUE, TRUE)).apply(null)); in testAndPredicate_AllConditionsTrue()
44 assertFalse(Predicates.and(newArrayList(FALSE, TRUE, TRUE)).apply(null)); in testAndPredicate_AtLeastOneConditionIsFalse()
45 assertFalse(Predicates.and(newArrayList(TRUE, FALSE, TRUE)).apply(null)); in testAndPredicate_AtLeastOneConditionIsFalse()
46 assertFalse(Predicates.and(newArrayList(TRUE, TRUE, FALSE)).apply(null)); in testAndPredicate_AtLeastOneConditionIsFalse()
50 assertTrue(Predicates.or(newArrayList(TRUE, TRUE, TRUE)).apply(null)); in testOrPredicate_AllConditionsTrue()
54 assertFalse(Predicates.or(newArrayList(FALSE, FALSE, FALSE)).apply(null)); in testOrPredicate_AllConditionsFalse()
58 assertTrue(Predicates.or(newArrayList(TRUE, FALSE, FALSE)).apply(null)); in testOrPredicate_AtLeastOneConditionIsTrue()
59 assertTrue(Predicates.or(newArrayList(FALSE, TRUE, FALSE)).apply(null)); in testOrPredicate_AtLeastOneConditionIsTrue()
60 assertTrue(Predicates.or(newArrayList(FALSE, FALSE, TRUE)).apply(null)); in testOrPredicate_AtLeastOneConditionIsTrue()
[all …]
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/
DRootsCacheTest.java20 import static com.google.common.collect.Lists.newArrayList;
53 mRoots = Lists.newArrayList( in setUp()
65 newArrayList(mNull, mWild, mImages, mAudio, mDocs, mMalformed1, mMalformed2), in testMatchingRoots_Everything()
79 newArrayList(mNull, mWild, mImages, mAudio, mDocs, mMalformed1, mMalformed2), in testMatchingRoots_DirectoryCopy()
86 newArrayList(mNull, mWild, mImages, mAudio, mDocs, mMalformed1, mMalformed2), in testMatchingRoots_PngOrWild()
93 newArrayList(mNull, mWild, mAudio), in testMatchingRoots_AudioWild()
100 newArrayList(mNull, mWild, mAudio, mImages), in testMatchingRoots_AudioWildOrImageWild()
107 newArrayList(mNull, mWild, mAudio), in testMatchingRoots_AudioSpecific()
114 newArrayList(mNull, mWild, mDocs), in testMatchingRoots_Document()
121 newArrayList(mNull, mWild, mAudio, mDocs), in testMatchingRoots_Application()
[all …]
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/services/
DFileOperationServiceTest.java22 import static com.google.android.collect.Lists.newArrayList;
75 startService(createCopyIntent(newArrayList(ALPHA_DOC), BETA_DOC)); in testRunsJobs()
76 startService(createCopyIntent(newArrayList(GAMMA_DOC), DELTA_DOC)); in testRunsJobs()
84 startService(createCopyIntent(newArrayList(GAMMA_DOC), DELTA_DOC)); in testRunsJobs_AfterExceptionInJobCreation()
93 startService(createCopyIntent(newArrayList(ALPHA_DOC), BETA_DOC)); in testRunsJobs_AfterFailure()
94 startService(createCopyIntent(newArrayList(GAMMA_DOC), DELTA_DOC)); in testRunsJobs_AfterFailure()
103 startService(createCopyIntent(newArrayList(ALPHA_DOC), BETA_DOC)); in testHoldsWakeLockWhileWorking()
109 startService(createCopyIntent(newArrayList(ALPHA_DOC), BETA_DOC)); in testReleasesWakeLock_AfterSuccess()
117 startService(createCopyIntent(newArrayList(ALPHA_DOC), BETA_DOC)); in testReleasesWakeLock_AfterFailure()
125 startService(createCopyIntent(newArrayList(ALPHA_DOC), BETA_DOC)); in testShutdownStopsExecutor_AfterSuccess()
[all …]
DAbstractCopyJobTest.java19 import static com.google.common.collect.Lists.newArrayList;
40 createJob(newArrayList(testFile1, testFile2)).run(); in runCopyFilesTest()
55 createJob(newArrayList(testFile)).run(); in runCopyVirtualTypedFileTest()
69 createJob(newArrayList(testFile)).run(); in runCopyVirtualNonTypedFileTest()
73 mJobListener.assertFilesFailed(newArrayList("virtual.sth")); in runCopyVirtualNonTypedFileTest()
81 createJob(newArrayList(testDir)).run(); in runCopyEmptyDirTest()
96 createJob(newArrayList(testDir1)).run(); in runCopyDirRecursivelyTest()
113 createJob(newArrayList(testDir), in runNoCopyDirToSelfTest()
119 mJobListener.assertFilesFailed(newArrayList("someDir")); in runNoCopyDirToSelfTest()
128 createJob(newArrayList(testDir), in runNoCopyDirToDescendentTest()
[all …]
DMoveJobTest.java19 import static com.google.common.collect.Lists.newArrayList;
45 createJob(newArrayList(testFile)).run(); in testMoveVirtualTypedFile()
68 createJob(newArrayList(testFile)).run(); in testMove_BackendSideVirtualTypedFile_Fallback()
DCopyJobTest.java19 import static com.google.common.collect.Lists.newArrayList;
53 createJob(newArrayList(testFile)).run(); in testCopy_BackendSideVirtualTypedFile_Fallback()
DDeleteJobTest.java19 import static com.google.common.collect.Lists.newArrayList;
40 createJob(newArrayList(testFile1, testFile2), in testDeleteFiles()
DAbstractJobTest.java92 List<DocumentInfo> srcDocs = Lists.newArrayList(); in createJob()
/frameworks/base/core/java/com/google/android/collect/
DLists.java36 public static <E> ArrayList<E> newArrayList() { in newArrayList() method in Lists
58 public static <E> ArrayList<E> newArrayList(E... elements) { in newArrayList() method in Lists
/frameworks/base/core/java/android/net/
DPacProxySelector.java55 mDefaultList = Lists.newArrayList(java.net.Proxy.NO_PROXY); in PacProxySelector()
66 return Lists.newArrayList(java.net.Proxy.NO_PROXY); in select()
97 List<Proxy> ret = Lists.newArrayList(); in parseResponse()
/frameworks/base/test-runner/tests/src/android/test/
DAndroidTestRunnerTest.java143 List<String> testNames = Lists.newArrayList(); in testSetTestClassWithTestSuiteProvider()
155 List<String> testNames = Lists.newArrayList(); in testSetTestClassWithTestSuite()
166 List<String> testNames = Lists.newArrayList(); in testRunSingleTestMethod()
258 List<String> testNames = Lists.newArrayList();
/frameworks/base/core/tests/coretests/src/android/widget/
DListViewTest.java46 List<String> items = Lists.newArrayList("hello"); in testRequestLayout()
76 List<String> items = Lists.newArrayList("hello"); in testNoSelectableItems()
DSimpleCursorAdapterTest.java71 ArrayList<ArrayList> list = Lists.newArrayList(); in createTestList()
75 ArrayList<Integer> col = Lists.newArrayList(); in createTestList()
/frameworks/base/test-runner/src/android/test/
DIsolatedContext.java58 private List<Intent> mBroadcastIntents = Lists.newArrayList();
70 mBroadcastIntents = Lists.newArrayList(); in getAndClearBroadcastIntents()
DTestCaseUtil.java47 List<String> testCaseNames = Lists.newArrayList(); in getTestCaseNames()
60 List<Test> testCases = Lists.newArrayList(); in getTests()
DAndroidTestRunner.java51 private List<TestListener> mTestListeners = Lists.newArrayList();
61 mTestCases = Lists.newArrayList(testCase); in setTestClassName()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmTestUtils.java73 elist = Lists.newArrayList(); in assertRestrictions()
86 alist = Lists.newArrayList(); in assertRestrictions()
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/
DVCardBuilderTest.java36 final ArrayList<ContentValues> contentList = Lists.newArrayList(); in testVCardNameFieldFromDisplayName()
/frameworks/base/core/tests/coretests/src/android/widget/focus/
DListWithFooterViewAndNewLabels.java75 private List<String> mLabels = Lists.newArrayList();
DListOfEditTexts.java72 List<String> bodies = Lists.newArrayList( in onCreate()
DListWithMailMessages.java43 List<MailMessage> messages = Lists.newArrayList(); in onCreate()
/frameworks/base/core/tests/coretests/src/android/os/
DFileObserverTest.java37 public List<Map> events = Lists.newArrayList();
DAidlTest.java241 List<TestParcelable> list = Lists.newArrayList(); in testListParcelableLonger()
265 List<TestParcelable> list = Lists.newArrayList(); in testListParcelableShorter()
/frameworks/base/core/tests/benchmarks/src/com/android/internal/util/
DIndentingPrintWriterBenchmark.java109 node.children = Lists.newArrayList(children); in build()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsCollection.java364 keys = Lists.newArrayList(); in write()
501 final ArrayList<Key> knownKeys = Lists.newArrayList(); in removeUids()
533 final ArrayList<Key> keys = Lists.newArrayList(); in dump()

123