/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ |
D | DragAndDropManagerTests.java | 47 import com.android.documentsui.testing.TestEnv; 67 private TestEnv mEnv; 98 mEnv = TestEnv.create(); in setUp() 152 Arrays.asList(TestEnv.FILE_APK, TestEnv.FILE_JPG), in testStartDrag_SetsCorrectClipData() 154 Arrays.asList(TestEnv.FOLDER_0.derivedUri, TestEnv.FILE_APK.derivedUri, in testStartDrag_SetsCorrectClipData() 155 TestEnv.FILE_JPG.derivedUri), in testStartDrag_SetsCorrectClipData() 158 TestEnv.FOLDER_0); in testStartDrag_SetsCorrectClipData() 167 Arrays.asList(TestEnv.FILE_APK, TestEnv.FILE_JPG), in testStartDrag_SetsCorrectClipData_NullParent() 169 Arrays.asList(TestEnv.FOLDER_0.derivedUri, TestEnv.FILE_APK.derivedUri, in testStartDrag_SetsCorrectClipData_NullParent() 170 TestEnv.FILE_JPG.derivedUri), in testStartDrag_SetsCorrectClipData_NullParent() [all …]
|
D | AbstractActionHandlerTest.java | 46 import com.android.documentsui.testing.TestEnv; 74 private TestEnv mEnv; 91 mEnv = TestEnv.create(); in setUp() 157 Arrays.asList(TestEnv.FOLDER_1.documentId, TestEnv.FOLDER_2.documentId)); in testOpensContainerDocuments_OpenFolderInSearch_JumpsToNewLocation() 158 mEnv.docs.nextDocuments = Arrays.asList(TestEnv.FOLDER_1, TestEnv.FOLDER_2); in testOpensContainerDocuments_OpenFolderInSearch_JumpsToNewLocation() 160 mHandler.openContainerDocument(TestEnv.FOLDER_2); in testOpensContainerDocuments_OpenFolderInSearch_JumpsToNewLocation() 165 assertEquals(TestEnv.FOLDER_2, mEnv.state.stack.pop()); in testOpensContainerDocuments_OpenFolderInSearch_JumpsToNewLocation() 166 assertEquals(TestEnv.FOLDER_1, mEnv.state.stack.pop()); in testOpensContainerDocuments_OpenFolderInSearch_JumpsToNewLocation() 177 mEnv.docs.nextDocuments = Arrays.asList(TestEnv.FOLDER_1, TestEnv.FOLDER_2); in testOpensContainerDocuments_ClickFolderInSearch_PushToRootDoc_NoFindPathSupport() 179 mHandler.openContainerDocument(TestEnv.FOLDER_2); in testOpensContainerDocuments_ClickFolderInSearch_PushToRootDoc_NoFindPathSupport() [all …]
|
D | DocumentsAccessTest.java | 28 import com.android.documentsui.testing.TestEnv; 48 private TestEnv mEnv; 65 mEnv = TestEnv.create(); in setUp()
|
D | ProfileTabsTest.java | 33 import com.android.documentsui.testing.TestEnv; 84 TestEnv.create(); in setUp() 92 mState.stack.push(TestEnv.FOLDER_0); in setUp() 168 mState.stack.push(TestEnv.FOLDER_1); in testUpdateView_twoUsers_subFolder_shouldHide() 181 mState.stack.push((TestEnv.FOLDER_0)); in testUpdateView_twoUsers_recents_subFolder_shouldHide() 193 mState.stack.push((TestEnv.FOLDER_0)); in testUpdateView_twoUsers_thirdParty_shouldHide()
|
D | RecentsLoaderTests.java | 38 import com.android.documentsui.testing.TestEnv; 61 private TestEnv mEnv; 80 mEnv = TestEnv.create(); in setUp()
|
D | GlobalSearchLoaderTest.java | 36 import com.android.documentsui.testing.TestEnv; 60 private TestEnv mEnv; 80 mEnv = TestEnv.create(); in setUp()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/ |
D | ActionHandlerTest.java | 55 import com.android.documentsui.testing.TestEnv; 84 private TestEnv mEnv; 104 mEnv = TestEnv.create(); in setUp() 170 mEnv.state.stack.push(TestEnv.FOLDER_0); in testInitLocation_RestoresIfStackIsLoaded() 205 TestEnv.FOLDER_0.documentId, in testInitLocation_LaunchToDocuments() 206 TestEnv.FOLDER_1.documentId, in testInitLocation_LaunchToDocuments() 207 TestEnv.FILE_GIF.documentId)); in testInitLocation_LaunchToDocuments() 209 Arrays.asList(TestEnv.FOLDER_0, TestEnv.FOLDER_1, TestEnv.FILE_GIF); in testInitLocation_LaunchToDocuments() 214 intent.putExtra(DocumentsContract.EXTRA_INITIAL_URI, TestEnv.FILE_GIF.derivedUri); in testInitLocation_LaunchToDocuments() 220 Arrays.asList(TestEnv.FOLDER_0, TestEnv.FOLDER_1)); in testInitLocation_LaunchToDocuments() [all …]
|
D | TestActivity.java | 23 import com.android.documentsui.testing.TestEnv; 33 public static TestActivity create(TestEnv env) { in create() 40 public void init(TestEnv env) { in init()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/files/ |
D | ActionHandlerTest.java | 69 import com.android.documentsui.testing.TestEnv; 95 private TestEnv mEnv; 121 mEnv = TestEnv.create(mFeatures); in setUp() 143 mEnv.selectDocument(TestEnv.FILE_GIF); in setUp() 161 mHandler.springOpenDirectory(TestEnv.FOLDER_0); in testSpringOpenDirectory() 163 assertEquals(TestEnv.FOLDER_0, mEnv.state.stack.peek()); in testSpringOpenDirectory() 178 mEnv.selectDocument(TestEnv.FILE_READ_ONLY); in testCutSelectedDocuments_ContainsNonMovableItem() 210 mEnv.selectDocument(TestEnv.FILE_PNG); in testDeleteSelectedDocuments() 213 docs.add(TestEnv.FILE_PNG); in testDeleteSelectedDocuments() 242 mEnv = TestEnv.create(ArchivesProvider.AUTHORITY); in testShareSelectedDocuments_ArchivedFile() [all …]
|
D | QuickViewIntentBuilderTest.java | 22 import com.android.documentsui.testing.TestEnv; 42 private TestEnv mEnv; 51 mEnv = TestEnv.create(); in setUp() 61 mContext, mRes, TestEnv.FILE_IN_ARCHIVE, mEnv.archiveModel, false); in testSetsNoFeatures_InArchiveDocument() 72 new QuickViewIntentBuilder(mContext, mRes, TestEnv.FILE_JPG, mEnv.model, false); in testSetsFullFeatures_RegularDocument() 92 new QuickViewIntentBuilder(mContext, mRes, TestEnv.FILE_JPG, mEnv.model, true); in testPickerFeatures_RegularDocument()
|
D | TestActivity.java | 20 import com.android.documentsui.testing.TestEnv; 26 public static TestActivity create(TestEnv env) { in create()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/inspector/ |
D | InspectorControllerTest.java | 50 import com.android.documentsui.testing.TestEnv; 74 private TestEnv mEnv; 88 mEnv = TestEnv.create(); in setUp() 104 mDataSupplier.mDoc = TestEnv.FILE_JPG; in setUp() 138 mController.loadInfo(TestEnv.FILE_JPG.derivedUri, mUserId); // actual URI doesn't matter :) in testHideDebugByDefault() 150 mController.loadInfo(TestEnv.FILE_JPG.derivedUri, mUserId); // actual URI doesn't matter :) in testShowDebugUpdatesView() 162 mController.loadInfo(TestEnv.FILE_JPG.derivedUri, mUserId); // actual URI doesn't matter :) in testExtraTitleOverridesDisplayName() 195 mController.loadInfo(TestEnv.FILE_JPG.derivedUri, mUserId); // actual URI doesn't matter :) in testUpdateViewWithValidInput() 224 mController.loadInfo(TestEnv.FILE_JPG.derivedUri, mUserId); // actual URI doesn't matter :) in testShowInProvider_invisible() 237 mController.loadInfo(TestEnv.FILE_JPG.derivedUri, mUserId); // actual URI doesn't matter :) in testUpdateView_withNullValue() [all …]
|
D | MediaViewTest.java | 28 import com.android.documentsui.testing.TestEnv; 73 MediaView.showExifData(mTable, mResources, TestEnv.FILE_JPG, exif, null, mGeo); in testShowExifData() 99 MediaView.showExifData(mTable, mResources, TestEnv.FILE_JPG, mMetadata, null, mGeo); in testShowExifData_PartialGpsTags() 114 MediaView.showExifData(mTable, mResources, TestEnv.FILE_JPG, mMetadata, null, mGeo); in testShowExifData_PartialDimensionTags() 125 MediaView.showVideoData(mTable, mResources, TestEnv.FILE_MP4, data, null); in testShowVideoData() 150 MediaView.showVideoData(mTable, mResources, TestEnv.FILE_MP4, data, null); in testShowVideoData_HourPlusDuration() 164 MediaView.showExifData(mTable, mResources, TestEnv.FILE_JPG, mMetadata, null, badAddress); in testGetAddress()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | TestEnv.java | 46 public class TestEnv { class 88 private TestEnv(Context context, Features features, String authority) { in TestEnv() method in TestEnv 129 public static TestEnv create(Features features) { in create() 133 public static TestEnv create() { in create() 137 public static TestEnv create(Features features, String authority) { in create() 142 public static TestEnv create(String authority) { in create() 148 private static TestEnv create(Context context, Features features, String authority) { in create() 149 TestEnv env = new TestEnv(context, features, authority); in create()
|
D | TestActionHandler.java | 33 private final TestEnv mEnv; 42 this(TestEnv.create()); in TestActionHandler() 45 public TestActionHandler(TestEnv env) { in TestActionHandler()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/ |
D | DragHostTest.java | 37 import com.android.documentsui.testing.TestEnv; 52 private TestEnv mEnv; 65 mEnv = TestEnv.create(); in setUp() 88 mNextDocumentInfo = TestEnv.FOLDER_0; in testHandleDrop_onValidView()
|
D | InflateMessageDocumentHolderTest.java | 39 import com.android.documentsui.testing.TestEnv; 83 new TestEnvironment(mContext, TestEnv.create(), mTestActionHandler); in setUp()
|
D | MessageTest.java | 53 import com.android.documentsui.testing.TestEnv; 111 new TestEnvironment(mContext, TestEnv.create(), mTestActionHandler); in setUp()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/dirlist/ |
D | TestEnvironment.java | 26 import com.android.documentsui.testing.TestEnv; 30 private final TestEnv mEnv; 33 public TestEnvironment(Context testContext, TestEnv env, ActionHandler actionHandler) { in TestEnvironment()
|
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/dirlist/ |
D | ModelBackedDocumentsAdapterTest.java | 29 import com.android.documentsui.testing.TestEnv; 38 private TestEnv mEnv; 46 mEnv = TestEnv.create(AUTHORITY); in setUp()
|
D | ModelBackedDocumentsAdapterPrivateSpaceTest.java | 30 import com.android.documentsui.testing.TestEnv; 38 private TestEnv mEnv; 50 mEnv = TestEnv.create(AUTHORITY); in setUp()
|
D | DirectoryAddonsAdapterTest.java | 34 import com.android.documentsui.testing.TestEnv; 44 private TestEnv mEnv; 51 mEnv = TestEnv.create(AUTHORITY); in setUp()
|
D | DirectoryAddonsAdapterPrivateSpaceTest.java | 40 import com.android.documentsui.testing.TestEnv; 56 private TestEnv mEnv; 67 mEnv = TestEnv.create(AUTHORITY); in setUp()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/sidebar/ |
D | RootsFragmentTest.java | 36 import com.android.documentsui.testing.TestEnv; 64 private TestEnv mEnv; 96 mEnv = TestEnv.create(); in setUp()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/ |
D | TestActivity.java | 47 import com.android.documentsui.testing.TestEnv; 86 public static TestActivity create(TestEnv env) { in create() 92 public void init(TestEnv env) { in init()
|