/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | PredicatesTest.java | 39 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/ |
D | RootsCacheTest.java | 20 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/ |
D | FileOperationServiceTest.java | 22 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 …]
|
D | AbstractCopyJobTest.java | 19 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 …]
|
D | MoveJobTest.java | 19 import static com.google.common.collect.Lists.newArrayList; 45 createJob(newArrayList(testFile)).run(); in testMoveVirtualTypedFile() 68 createJob(newArrayList(testFile)).run(); in testMove_BackendSideVirtualTypedFile_Fallback()
|
D | CopyJobTest.java | 19 import static com.google.common.collect.Lists.newArrayList; 53 createJob(newArrayList(testFile)).run(); in testCopy_BackendSideVirtualTypedFile_Fallback()
|
D | DeleteJobTest.java | 19 import static com.google.common.collect.Lists.newArrayList; 40 createJob(newArrayList(testFile1, testFile2), in testDeleteFiles()
|
D | AbstractJobTest.java | 92 List<DocumentInfo> srcDocs = Lists.newArrayList(); in createJob()
|
/frameworks/base/core/java/com/google/android/collect/ |
D | Lists.java | 36 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/ |
D | PacProxySelector.java | 55 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/ |
D | AndroidTestRunnerTest.java | 143 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/ |
D | ListViewTest.java | 46 List<String> items = Lists.newArrayList("hello"); in testRequestLayout() 76 List<String> items = Lists.newArrayList("hello"); in testNoSelectableItems()
|
D | SimpleCursorAdapterTest.java | 71 ArrayList<ArrayList> list = Lists.newArrayList(); in createTestList() 75 ArrayList<Integer> col = Lists.newArrayList(); in createTestList()
|
/frameworks/base/test-runner/src/android/test/ |
D | IsolatedContext.java | 58 private List<Intent> mBroadcastIntents = Lists.newArrayList(); 70 mBroadcastIntents = Lists.newArrayList(); in getAndClearBroadcastIntents()
|
D | TestCaseUtil.java | 47 List<String> testCaseNames = Lists.newArrayList(); in getTestCaseNames() 60 List<Test> testCases = Lists.newArrayList(); in getTests()
|
D | AndroidTestRunner.java | 51 private List<TestListener> mTestListeners = Lists.newArrayList(); 61 mTestCases = Lists.newArrayList(testCase); in setTestClassName()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DpmTestUtils.java | 73 elist = Lists.newArrayList(); in assertRestrictions() 86 alist = Lists.newArrayList(); in assertRestrictions()
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/ |
D | VCardBuilderTest.java | 36 final ArrayList<ContentValues> contentList = Lists.newArrayList(); in testVCardNameFieldFromDisplayName()
|
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
D | ListWithFooterViewAndNewLabels.java | 75 private List<String> mLabels = Lists.newArrayList();
|
D | ListOfEditTexts.java | 72 List<String> bodies = Lists.newArrayList( in onCreate()
|
D | ListWithMailMessages.java | 43 List<MailMessage> messages = Lists.newArrayList(); in onCreate()
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | FileObserverTest.java | 37 public List<Map> events = Lists.newArrayList();
|
/frameworks/base/core/tests/benchmarks/src/com/android/internal/util/ |
D | IndentingPrintWriterBenchmark.java | 109 node.children = Lists.newArrayList(children); in build()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkStatsCollection.java | 364 keys = Lists.newArrayList(); in write() 501 final ArrayList<Key> knownKeys = Lists.newArrayList(); in removeUids() 533 final ArrayList<Key> keys = Lists.newArrayList(); in dump()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
D | CachedPathIteratorFactory.java | 53 ArrayList<Integer> typesArray = Lists.newArrayList(); in CachedPathIteratorFactory() 54 ArrayList<float[]> pointsArray = Lists.newArrayList(); in CachedPathIteratorFactory()
|