Home
last modified time | relevance | path

Searched refs:mEnv (Results 1 – 22 of 22) sorted by relevance

/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DAbstractActionHandlerTest.java62 private TestEnv mEnv; field in AbstractActionHandlerTest
67 mEnv = TestEnv.create(); in setUp()
68 mActivity = TestActivity.create(mEnv); in setUp()
71 mEnv.state, in setUp()
72 mEnv.providers, in setUp()
73 mEnv.docs, in setUp()
74 mEnv.searchViewManager, in setUp()
75 mEnv::lookupExecutor, in setUp()
76 mEnv.injector) { in setUp()
115 if (!mEnv.features.isLaunchToDocumentEnabled()) { in testOpensContainerDocuments_OpenFolderInSearch_JumpsToNewLocation()
[all …]
DGlobalSearchLoaderTest.java53 private TestEnv mEnv; field in GlobalSearchLoaderTest
59 mEnv = TestEnv.create(); in setUp()
60 mActivity = TestActivity.create(mEnv); in setUp()
63 mEnv.state.action = State.ACTION_BROWSE; in setUp()
64 mEnv.state.acceptMimes = new String[]{"*/*"}; in setUp()
68 mLoader = new GlobalSearchLoader(mActivity, mEnv.providers, mEnv.state, in setUp()
71 final DocumentInfo doc = mEnv.model.createFile(SEARCH_STRING + ".jpg", FILE_FLAG); in setUp()
73 mEnv.mockProviders.get(TestProvidersAccess.HOME.authority) in setUp()
77 mEnv.state.showAdvanced = true; in setUp()
83 mEnv.state.showAdvanced = false; in tearDown()
[all …]
DRecentsLoaderTests.java45 private TestEnv mEnv; field in RecentsLoaderTests
51 mEnv = TestEnv.create(); in setUp()
52 mActivity = TestActivity.create(mEnv); in setUp()
55 mEnv.state.action = State.ACTION_BROWSE; in setUp()
56 mEnv.state.acceptMimes = new String[] { "*/*" }; in setUp()
58 mLoader = new RecentsLoader(mActivity, mEnv.providers, mEnv.state, in setUp()
74 final DocumentInfo doc = mEnv.model.createFolder("test"); in testDocumentsNotIncludeDirectory()
77 mEnv.mockProviders.get(TestProvidersAccess.HOME.authority) in testDocumentsNotIncludeDirectory()
88 final DocumentInfo doc = mEnv.model.createFile("freddy.jpg", in testDocumentsNotMovable()
93 mEnv.mockProviders.get(TestProvidersAccess.HOME.authority) in testDocumentsNotMovable()
DDragAndDropManagerTests.java67 private TestEnv mEnv; field in DragAndDropManagerTests
98 mEnv = TestEnv.create(); in setUp()
99 mActivity = TestActivity.create(mEnv); in setUp()
107 mActions = new TestActionHandler(mEnv); in setUp()
641 mEnv.beforeAsserts(); in testDrop_Fails_NotGetRootDoc()
664 mEnv.beforeAsserts(); in testDrop_Copies_DifferentRoot_DropOnRoot()
690 mEnv.beforeAsserts(); in testDrop_Moves_SameRoot_DropOnRoot()
723 mEnv.beforeAsserts(); in testDrop_Copies_SameRoot_DropOnRoot_ReleasesCtrlBeforeGettingRootDocument()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/
DActionHandlerTest.java67 private TestEnv mEnv; field in ActionHandlerTest
75 mEnv = TestEnv.create(); in setUp()
76 mActivity = TestActivity.create(mEnv); in setUp()
77 mEnv.providers.configurePm(mActivity.packageMgr); in setUp()
78 mEnv.injector.pickResult = new PickResult(); in setUp()
84 mEnv.state, in setUp()
85 mEnv.providers, in setUp()
86 mEnv.docs, in setUp()
87 mEnv.searchViewManager, in setUp()
88 mEnv::lookupExecutor, in setUp()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/files/
DActionHandlerTest.java82 private TestEnv mEnv; field in ActionHandlerTest
95 mEnv = TestEnv.create(mFeatures); in setUp()
96 mActivity = TestActivity.create(mEnv); in setUp()
102 mEnv.providers.configurePm(mActivity.packageMgr); in setUp()
103 ((TestActivityConfig) mEnv.injector.config).nextDocumentEnabled = true; in setUp()
104 mEnv.injector.dialogs = mDialogs; in setUp()
110 mEnv.selectDocument(TestEnv.FILE_GIF); in setUp()
117 DocumentStack path = new DocumentStack(Roots.create("123"), mEnv.model.getDocument("1")); in testOpenSelectedInNewWindow()
130 assertEquals(TestEnv.FOLDER_0, mEnv.state.stack.peek()); in testSpringOpenDirectory()
135 mEnv.populateStack(); in testCutSelectedDocuments_NoGivenSelection()
[all …]
DQuickViewIntentBuilderTest.java33 private TestEnv mEnv; field in QuickViewIntentBuilderTest
41 mEnv = TestEnv.create(); in setUp()
51 mPm, mRes, TestEnv.FILE_IN_ARCHIVE, mEnv.archiveModel, false); in testSetsNoFeatures_InArchiveDocument()
62 new QuickViewIntentBuilder(mPm, mRes, TestEnv.FILE_JPG, mEnv.model, false); in testSetsFullFeatures_RegularDocument()
82 new QuickViewIntentBuilder(mPm, mRes, TestEnv.FILE_JPG, mEnv.model, true); in testPickerFeatures_RegularDocument()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/
DDirectoryAddonsAdapterTest.java43 private TestEnv mEnv; field in DirectoryAddonsAdapterTest
49 mEnv = TestEnv.create(AUTHORITY); in setUp()
51 mEnv.clear(); in setUp()
61 mEnv.model.addUpdateListener(mAdapter.getModelUpdateListener()); in setUp()
66 mEnv.reset(); // creates a mix of folders and files for us. in testItemCount_mixed()
68 assertEquals(mEnv.model.getItemCount() + 1, mAdapter.getItemCount()); in testItemCount_mixed()
72 mEnv.model.createFolder("a"); // id will be "1"...derived from insert position. in testGetPosition()
73 mEnv.model.createFile("b"); // id will be "2" in testGetPosition()
74 mEnv.model.update(); in testGetPosition()
86 mEnv.model.createFolder(name); in testItemCount_allDirs()
[all …]
DModelBackedDocumentsAdapterTest.java38 private TestEnv mEnv; field in ModelBackedDocumentsAdapterTest
45 mEnv = TestEnv.create(AUTHORITY); in setUp()
57 assertEquals(mEnv.model.getItemCount(), mAdapter.getItemCount()); in testItemCount()
65 return mEnv.features; in getFeatures()
90 return mEnv.model; in getModel()
DDragHostTest.java52 private TestEnv mEnv; field in DragHostTest
65 mEnv = TestEnv.create(); in setUp()
66 mActivity = TestActivity.create(mEnv); in setUp()
76 mEnv.state, in setUp()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DMessage.java37 protected final Environment mEnv; field in Message
49 mEnv = env; in Message()
111 } else if (mEnv.getModel().error != null) { in update()
112 update(mEnv.getModel().error, null, in update()
113 mEnv.getContext().getDrawable(R.drawable.ic_dialog_alert)); in update()
114 } else if (mEnv.getModel().info != null) { in update()
115 update(mEnv.getModel().info, null, in update()
116 mEnv.getContext().getDrawable(R.drawable.ic_dialog_info)); in update()
121 assert(mEnv.getFeatures().isRemoteActionsEnabled()); in updateToAuthenticationExceptionHeader()
123 RootInfo root = mEnv.getDisplayState().stack.getRoot(); in updateToAuthenticationExceptionHeader()
[all …]
DModelBackedDocumentsAdapter.java51 private final Environment mEnv; field in ModelBackedDocumentsAdapter
64 mEnv = env; in ModelBackedDocumentsAdapter()
74 onModelUpdate(mEnv.getModel()); in ModelBackedDocumentsAdapter()
88 final State state = mEnv.getDisplayState(); in onCreateViewHolder()
93 holder = new GridDirectoryHolder(mEnv.getContext(), parent); in onCreateViewHolder()
97 ? new GridPhotoHolder(mEnv.getContext(), parent, mIconHelper) in onCreateViewHolder()
98 : new GridDocumentHolder(mEnv.getContext(), parent, mIconHelper); in onCreateViewHolder()
106 mEnv.getContext(), parent, mIconHelper, mFileTypeLookup); in onCreateViewHolder()
112 mEnv.initDocumentHolder(holder); in onCreateViewHolder()
119 final boolean selected = mEnv.isSelected(mModelIds.get(position)); in onBindViewHolder()
[all …]
DDirectoryAddonsAdapter.java41 private final Environment mEnv; field in DirectoryAddonsAdapter
52 mEnv = environment; in DirectoryAddonsAdapter()
76 final int columnCount = mEnv.getColumnCount(); in createSpanSizeLookup()
83 } else if (mEnv.getDisplayState().isPhotoPicking() in createSpanSizeLookup()
84 && mEnv.getDisplayState().derivedMode == State.MODE_GRID) { in createSpanSizeLookup()
101 holder = new TransparentDividerDocumentHolder(mEnv.getContext());
102 mEnv.initDocumentHolder(holder);
105 holder = new HeaderMessageDocumentHolder(mEnv.getContext(), parent);
106 mEnv.initDocumentHolder(holder);
109 holder = new InflateMessageDocumentHolder(mEnv.getContext(), parent);
[all …]
/packages/apps/Gallery2/jni_jpegstream/src/
Dstream_wrapper.cpp22 StreamWrapper::StreamWrapper() : mEnv(NULL), in StreamWrapper()
37 mEnv = env; in updateEnv()
41 if (mEnv != NULL) { in init()
45 mEnv = env; in init()
71 if (mEnv != NULL) { in cleanup()
73 mEnv->DeleteGlobalRef(mStream); in cleanup()
78 mEnv->ReleaseByteArrayElements(mByteArray, mBytes, JNI_ABORT); in cleanup()
81 mEnv->DeleteGlobalRef(mByteArray); in cleanup()
87 mEnv = NULL; in cleanup()
Dinputstream_wrapper.cpp28 mEnv->ReleaseByteArrayElements(mByteArray, mBytes, JNI_COMMIT); in read()
30 if (mEnv->ExceptionCheck()) { in read()
33 bytesRead = static_cast<int32_t>(mEnv->CallIntMethod(mStream, sReadID, in read()
35 if (mEnv->ExceptionCheck()) { in read()
38 mBytes = mEnv->GetByteArrayElements(mByteArray, NULL); in read()
39 if (mBytes == NULL || mEnv->ExceptionCheck()) { in read()
50 bytesSkipped = static_cast<int64_t>(mEnv->CallLongMethod(mStream, sSkipID, in skip()
52 if (mEnv->ExceptionCheck() || bytesSkipped < 0) { in skip()
Doutputstream_wrapper.cpp26 mEnv->ReleaseByteArrayElements(mByteArray, mBytes, JNI_COMMIT); in write()
28 if (mEnv->ExceptionCheck()) { in write()
36 mEnv->CallVoidMethod(mStream, sWriteID, mByteArray, offset, length); in write()
37 if (mEnv->ExceptionCheck()) { in write()
40 mBytes = mEnv->GetByteArrayElements(mByteArray, NULL); in write()
41 if (mBytes == NULL || mEnv->ExceptionCheck()) { in write()
Dstream_wrapper.h37 JNIEnv *mEnv;
/packages/apps/DocumentsUI/src/com/android/documentsui/
DNavigationViewManager.java52 private final NavigationViewManager.Environment mEnv; field in NavigationViewManager
70 mEnv = env; in NavigationViewManager()
118 mEnv.refreshCurrentRootAndDirectory(AnimationView.ANIM_LEAVE); in onNavigationItemSelected()
127 if (mEnv.isSearchExpanded()) { in update()
133 mDrawer.setTitle(mEnv.getDrawerTitle()); in update()
145 String title = mEnv.getCurrentRoot().title; in update()
191 return mState.stack.isRecents() && !mEnv.isSearchExpanded() && mShowSearchBar; in shouldShowSearchBar()
DDropdownBreadcrumb.java104 private Environment mEnv; field in DropdownBreadcrumb.DropdownAdapter
109 mEnv = env; in DropdownAdapter()
138 final RootInfo root = mEnv.getCurrentRoot(); in getView()
158 final RootInfo root = mEnv.getCurrentRoot(); in getDropDownView()
DHorizontalBreadcrumb.java191 private final Environment mEnv; field in HorizontalBreadcrumb.BreadcrumbAdapter
203 mEnv = env; in BreadcrumbAdapter()
223 final RootInfo root = mEnv.getCurrentRoot(); in onBindViewHolder()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestActionHandler.java32 private final TestEnv mEnv; field in TestActionHandler
53 mEnv = env; in TestActionHandler()
83 mEnv.mExecutor.submit(() -> { in getRootDocument()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/inspector/
DInspectorControllerTest.java71 private TestEnv mEnv; field in InspectorControllerTest
85 mEnv = TestEnv.create(); in setUp()