Home
last modified time | relevance | path

Searched refs:TestEnv (Results 1 – 25 of 26) sorted by relevance

12

/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DDragAndDropManagerTests.java47 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 …]
DAbstractActionHandlerTest.java46 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 …]
DDocumentsAccessTest.java28 import com.android.documentsui.testing.TestEnv;
48 private TestEnv mEnv;
65 mEnv = TestEnv.create(); in setUp()
DProfileTabsTest.java33 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()
DRecentsLoaderTests.java38 import com.android.documentsui.testing.TestEnv;
61 private TestEnv mEnv;
80 mEnv = TestEnv.create(); in setUp()
DGlobalSearchLoaderTest.java36 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/
DActionHandlerTest.java55 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 …]
DTestActivity.java23 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/
DActionHandlerTest.java69 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 …]
DQuickViewIntentBuilderTest.java22 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()
DTestActivity.java20 import com.android.documentsui.testing.TestEnv;
26 public static TestActivity create(TestEnv env) { in create()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/inspector/
DInspectorControllerTest.java50 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 …]
DMediaViewTest.java28 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/
DTestEnv.java46 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()
DTestActionHandler.java33 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/
DDragHostTest.java37 import com.android.documentsui.testing.TestEnv;
52 private TestEnv mEnv;
65 mEnv = TestEnv.create(); in setUp()
88 mNextDocumentInfo = TestEnv.FOLDER_0; in testHandleDrop_onValidView()
DInflateMessageDocumentHolderTest.java39 import com.android.documentsui.testing.TestEnv;
83 new TestEnvironment(mContext, TestEnv.create(), mTestActionHandler); in setUp()
DMessageTest.java53 import com.android.documentsui.testing.TestEnv;
111 new TestEnvironment(mContext, TestEnv.create(), mTestActionHandler); in setUp()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/dirlist/
DTestEnvironment.java26 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/
DModelBackedDocumentsAdapterTest.java29 import com.android.documentsui.testing.TestEnv;
38 private TestEnv mEnv;
46 mEnv = TestEnv.create(AUTHORITY); in setUp()
DModelBackedDocumentsAdapterPrivateSpaceTest.java30 import com.android.documentsui.testing.TestEnv;
38 private TestEnv mEnv;
50 mEnv = TestEnv.create(AUTHORITY); in setUp()
DDirectoryAddonsAdapterTest.java34 import com.android.documentsui.testing.TestEnv;
44 private TestEnv mEnv;
51 mEnv = TestEnv.create(AUTHORITY); in setUp()
DDirectoryAddonsAdapterPrivateSpaceTest.java40 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/
DRootsFragmentTest.java36 import com.android.documentsui.testing.TestEnv;
64 private TestEnv mEnv;
96 mEnv = TestEnv.create(); in setUp()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DTestActivity.java47 import com.android.documentsui.testing.TestEnv;
86 public static TestActivity create(TestEnv env) { in create()
92 public void init(TestEnv env) { in init()

12