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.java123 Intent actual = mActivity.startActivity.getLastValue(); in testOpenSelectedInNewWindow()
209 Intent intent = assertHasExtraIntent(mActivity.startActivity.getLastValue()); in testShareSelectedDocuments_Single()
226 Intent intent = mActivity.startActivity.getLastValue(); in testShareSelectedDocuments_ArchivedFile()
236 Intent intent = assertHasExtraIntent(mActivity.startActivity.getLastValue()); in testShareSelectedDocuments_Multiple()
254 Intent intent = assertHasExtraIntent(mActivity.startActivity.getLastValue()); in testShareSelectedDocuments_VirtualFiles()
268 Intent intent = assertHasExtraIntent(mActivity.startActivity.getLastValue()); in testShareSelectedDocuments_RegularAndVirtualFiles()
287 Intent intent = assertHasExtraIntent(mActivity.startActivity.getLastValue()); in testShareSelectedDocuments_OmitsPartialFiles()
557 Pair<ClipData, RootInfo> actual = mDragAndDropManager.dropOnRootHandler.getLastValue(); in testDragAndDrop_DropsOnWritableRoot()
609 assertEquals(intent.getIntentSender(), mActivity.startIntentSender.getLastValue().first); in testAuthentication()
611 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()