Home
last modified time | relevance | path

Searched refs:getLastValue (Results 1 – 8 of 8) sorted by relevance

/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/
DActionHandlerTest.java275 assertEquals(Activity.RESULT_OK, (long) mActivity.setResult.getLastValue().first); in testPickDocument_SetsCorrectResultAndFinishes_ActionPickCopyDestination()
276 final Intent result = mActivity.setResult.getLastValue().second; in testPickDocument_SetsCorrectResultAndFinishes_ActionPickCopyDestination()
303 assertEquals(Activity.RESULT_OK, (long) mActivity.setResult.getLastValue().first); in testPickDocument_SetsCorrectResultAndFinishes_ActionOpenTree()
304 final Intent result = mActivity.setResult.getLastValue().second; in testPickDocument_SetsCorrectResultAndFinishes_ActionOpenTree()
333 assertEquals(Activity.RESULT_OK, (long) mActivity.setResult.getLastValue().first); in testSaveDocument_SetsCorrectResultAndFinishes()
334 final Intent result = mActivity.setResult.getLastValue().second; in testSaveDocument_SetsCorrectResultAndFinishes()
383 assertEquals(Activity.RESULT_OK, (long) mActivity.setResult.getLastValue().first); in testFinishPicking_SetsCorrectResultAndFinishes_ActionGetContent()
384 final Intent result = mActivity.setResult.getLastValue().second; in testFinishPicking_SetsCorrectResultAndFinishes_ActionGetContent()
410 assertEquals(Activity.RESULT_OK, (long) mActivity.setResult.getLastValue().first); in testFinishPicking_SetsCorrectResultAndFinishes_ActionGetContent_MultipleSelection()
411 final Intent result = mActivity.setResult.getLastValue().second; in testFinishPicking_SetsCorrectResultAndFinishes_ActionGetContent_MultipleSelection()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/files/
DActionHandlerTest.java122 Intent actual = mActivity.startActivity.getLastValue(); in testOpenSelectedInNewWindow()
208 Intent intent = assertHasExtraIntent(mActivity.startActivity.getLastValue()); in testShareSelectedDocuments_Single()
225 Intent intent = mActivity.startActivity.getLastValue(); in testShareSelectedDocuments_ArchivedFile()
235 Intent intent = assertHasExtraIntent(mActivity.startActivity.getLastValue()); in testShareSelectedDocuments_Multiple()
253 Intent intent = assertHasExtraIntent(mActivity.startActivity.getLastValue()); in testShareSelectedDocuments_VirtualFiles()
267 Intent intent = assertHasExtraIntent(mActivity.startActivity.getLastValue()); in testShareSelectedDocuments_RegularAndVirtualFiles()
286 Intent intent = assertHasExtraIntent(mActivity.startActivity.getLastValue()); in testShareSelectedDocuments_OmitsPartialFiles()
544 Pair<ClipData, RootInfo> actual = mDragAndDropManager.dropOnRootHandler.getLastValue(); in testDragAndDrop_DropsOnWritableRoot()
596 assertEquals(intent.getIntentSender(), mActivity.startIntentSender.getLastValue().first); in testAuthentication()
598 mActivity.startIntentSender.getLastValue().second.intValue()); in testAuthentication()
[all …]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DTestActivity.java111 assertEquals(expectedAction, startActivity.getLastValue().getAction()); in assertActivityStarted()
121 assertEquals(expectedAction, startService.getLastValue().getAction()); in assertServiceStarted()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DAbstractActionHandlerTest.java108 Intent actual = mActivity.startActivity.getLastValue(); in testOpenNewWindow()
286 assertTrue(listener.getLastValue().hasException()); in testLoadChildrenDocuments_failsWithNonRecentsAndEmptyStack()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestEventListener.java55 public T getLastValue() { in getLastValue() method in TestEventListener
DTestEventHandler.java60 public @Nullable T getLastValue() { in getLastValue() method in TestEventHandler
DTestPredicate.java71 public @Nullable T getLastValue() { in getLastValue() method in TestPredicate
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/queries/
DCommandInterceptorTest.java70 Assert.assertArrayEquals(expected, mCommand0.getLastValue()); in testConveysArguments()