Home
last modified time | relevance | path

Searched refs:Shared (Results 1 – 25 of 54) sorted by relevance

123

/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/
DMetadataUtils.java24 import com.android.documentsui.base.Shared;
36 return hasVideoCoordinates(metadata.getBundle(Shared.METADATA_KEY_VIDEO)) in hasGeoCoordinates()
41 return data != null && (data.containsKey(Shared.METADATA_VIDEO_LATITUDE) in hasVideoCoordinates()
42 && data.containsKey(Shared.METADATA_VIDEO_LONGITUTE)); in hasVideoCoordinates()
61 bundle = metadata.getBundle(Shared.METADATA_KEY_VIDEO); in getGeoCoordinates()
86 data.getFloat(Shared.METADATA_VIDEO_LATITUDE), in getVideoCoords()
87 data.getFloat(Shared.METADATA_VIDEO_LONGITUTE) in getVideoCoords()
DInspectorActivity.java33 import com.android.documentsui.base.Shared;
63 getIntent().getBooleanExtra(Shared.EXTRA_SHOW_DEBUG, false)); in onCreate()
/packages/apps/DocumentsUI/src/com/android/documentsui/ui/
DSnackbars.java27 import com.android.documentsui.base.Shared;
38 String msg = Shared.getQuantityString( in showDocumentsClipped()
44 CharSequence message = Shared.getQuantityString(activity, R.plurals.move_begin, docCount); in showMove()
49 CharSequence message = Shared.getQuantityString(activity, R.plurals.copy_begin, docCount); in showCopy()
54 … CharSequence message = Shared.getQuantityString(activity, R.plurals.compress_begin, docCount); in showCompress()
59 … CharSequence message = Shared.getQuantityString(activity, R.plurals.extract_begin, docCount); in showExtract()
64 CharSequence message = Shared.getQuantityString(activity, R.plurals.deleting, docCount); in showDelete()
DMessageBuilder.java27 import com.android.documentsui.base.Shared;
68 message = Shared.getQuantityString(mContext, in generateDeleteMessage()
72 message = Shared.getQuantityString(mContext, in generateDeleteMessage()
76 message = Shared.getQuantityString(mContext, in generateDeleteMessage()
139 return Shared.getQuantityString(mContext, stringId, quantity); in getQuantityString()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DDirectoryState.java22 import com.android.documentsui.base.Shared;
52 mRoot = bundle.getParcelable(Shared.EXTRA_ROOT); in restore()
53 mDocument = bundle.getParcelable(Shared.EXTRA_DOC); in restore()
61 bundle.putParcelable(Shared.EXTRA_ROOT, mRoot); in save()
62 bundle.putParcelable(Shared.EXTRA_DOC, mDocument); in save()
DAnimationView.java28 import com.android.documentsui.base.Shared;
100 args.putBoolean(Shared.EXTRA_IGNORE_STATE, true); in setupAnimations()
105 args.putBoolean(Shared.EXTRA_IGNORE_STATE, true); in setupAnimations()
DRenameDocumentFragment.java45 import com.android.documentsui.base.Shared;
93 Shared.ensureKeyboardPresent(context, dialog); in onCreateDialog()
139 mDocument = savedInstanceState.getParcelable(Shared.EXTRA_DOC); in onActivityCreated()
153 outState.putParcelable(Shared.EXTRA_DOC, mDocument); in onSaveInstanceState()
DDirectoryFragment.java90 import com.android.documentsui.base.Shared;
477 operation.setDestination(data.getParcelableExtra(Shared.EXTRA_STACK)); in onCopyDestinationPicked()
870 Shared.ACTION_PICK_COPY_DESTINATION, in transferDocuments()
905 intent.putExtra(Shared.EXTRA_DIRECTORY_COPY, hasDirectory(docs)); in transferDocuments()
1073 args.putParcelable(Shared.EXTRA_ROOT, root); in create()
1074 args.putParcelable(Shared.EXTRA_DOC, doc); in create()
1176 && !getArguments().getBoolean(Shared.EXTRA_IGNORE_STATE, true)) { in accept()
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
DLastAccessedStorage.java27 import com.android.documentsui.base.Shared;
62 final String packageName = Shared.getCallingPackageName(activity); in getLastAccessed()
80 String packageName = Shared.getCallingPackageName(activity); in setLastAccessed()
86 final String packageName = Shared.getCallingPackageName(activity); in setLastAccessedToExternalApp()
DPickActivity.java55 import com.android.documentsui.base.Shared;
147 Metrics.logPickerLaunchedFrom(Shared.getCallingPackageName(this)); in onCreate()
160 state.putParcelable(Shared.EXTRA_PICK_RESULT, mInjector.pickResult); in onSaveInstanceState()
177 PickResult result = icicle.getParcelable(Shared.EXTRA_PICK_RESULT); in getPickResult()
228 } else if (Shared.ACTION_PICK_COPY_DESTINATION.equals(action)) { in includeState()
247 Shared.EXTRA_DIRECTORY_COPY, false); in includeState()
DConfirmFragment.java36 import com.android.documentsui.base.Shared;
66 mTarget = arg.getParcelable(Shared.EXTRA_DOC); in onCreateDialog()
115 outState.putParcelable(Shared.EXTRA_DOC, mTarget); in onSaveInstanceState()
139 arg.putParcelable(Shared.EXTRA_DOC, overwriteTarget); in show()
DSaveFragment.java43 import com.android.documentsui.base.Shared;
136 mReplaceTarget = savedInstanceState.getParcelable(Shared.EXTRA_DOC); in onActivityCreated()
144 outBundle.putParcelable(Shared.EXTRA_DOC, mReplaceTarget); in onSaveInstanceState()
/packages/apps/DocumentsUI/src/com/android/documentsui/clipping/
DRuntimeDocumentClipper.java35 import com.android.documentsui.base.Shared;
120 return (uris.size() > Shared.MAX_DOCS_IN_INTENT) in getClipDataForDocuments()
131 assert(uris.size() <= Shared.MAX_DOCS_IN_INTENT); in createStandardClipData()
159 assert(uris.size() > Shared.MAX_DOCS_IN_INTENT); in createJumboClipData()
161 final int capacity = Math.min(uris.size(), Shared.MAX_DOCS_IN_INTENT); in createJumboClipData()
169 if (docCount++ < Shared.MAX_DOCS_IN_INTENT) { in createJumboClipData()
DUrisSupplier.java34 import com.android.documentsui.base.Shared;
99 UrisSupplier urisSupplier = (uris.size() > Shared.MAX_DOCS_IN_INTENT) in create()
122 assert(mSelectionSize > Shared.MAX_DOCS_IN_INTENT); in JumboUrisSupplier()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/inspector/
DMediaViewTest.java27 import com.android.documentsui.base.Shared;
124 Bundle data = mMetadata.getBundle(Shared.METADATA_KEY_VIDEO); in testShowVideoData()
133 Bundle data = mMetadata.getBundle(Shared.METADATA_KEY_AUDIO); in testShowAudioData()
148 Bundle data = mMetadata.getBundle(Shared.METADATA_KEY_VIDEO); in testShowVideoData_HourPlusDuration()
DTestMetadata.java23 import com.android.documentsui.base.Shared;
50 container.putBundle(Shared.METADATA_KEY_VIDEO, data); in populateVideoData()
60 container.putBundle(Shared.METADATA_KEY_AUDIO, data); in populateAudioData()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DBaseActivity.java19 import static com.android.documentsui.base.Shared.EXTRA_BENCHMARK;
59 import com.android.documentsui.base.Shared;
164 Shared.findView(this, R.id.dropdown_breadcrumb, R.id.horizontal_breadcrumb); in onCreate()
347 State state = icicle.<State>getParcelable(Shared.EXTRA_STATE); in getState()
364 state.showAdvanced = Shared.mustShowDeviceRoot(intent) in getState()
368 state.showDeviceStorageOption = !Shared.mustShowDeviceRoot(intent); in getState()
577 String packageName = Shared.getCallingPackageName(this); in getExcludedAuthorities()
747 state.putParcelable(Shared.EXTRA_STATE, mState); in onSaveInstanceState()
DThumbnailCache.java30 import com.android.documentsui.base.Shared;
227 Shared.checkMainLoop(); in obtain()
243 Shared.checkMainLoop(); in recycle()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/queries/
DSearchChipViewManagerTest.java36 import com.android.documentsui.base.Shared;
96 bundle.putIntArray(Shared.EXTRA_QUERY_CHIPS, new int[]{2}); in testRestoreCheckedChipItems_HasCorrectValue()
112 final int[] chipTypes = bundle.getIntArray(Shared.EXTRA_QUERY_CHIPS); in testSaveInstanceState_HasCorrectValue()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/files/
DActionHandlerTest.java59 import com.android.documentsui.base.Shared;
120 expected.putExtra(Shared.EXTRA_STACK, (Parcelable) path); in testOpenSelectedInNewWindow()
392 intent.putExtra(Shared.EXTRA_STACK, (Parcelable) path); in testInitLocation_LaunchToStackLocation()
638 assertHasExtra(intent, Shared.EXTRA_SHOW_DEBUG); in testShowInspector_DebugDisabled()
639 assertFalse(intent.getExtras().getBoolean(Shared.EXTRA_SHOW_DEBUG)); in testShowInspector_DebugDisabled()
649 assertHasExtra(intent, Shared.EXTRA_SHOW_DEBUG); in testShowInspector_DebugEnabled()
650 assertTrue(intent.getExtras().getBoolean(Shared.EXTRA_SHOW_DEBUG)); in testShowInspector_DebugEnabled()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/sorting/
DSortingCursorWrapperTest.java35 import com.android.documentsui.base.Shared;
153 assertTrue(Shared.compareToIgnoreCaseNullable(names.get(i), names.get(i+1)) <= 0); in testSort_names_ascending()
177 assertTrue(Shared.compareToIgnoreCaseNullable(names.get(i), names.get(i+1)) >= 0); in testSort_names_descending()
432 Shared.compareToIgnoreCaseNullable(lhs, rhs) <= 0); in testSort_type_ascending()
464 Shared.compareToIgnoreCaseNullable(lhs, rhs) >= 0); in testSort_type_descending()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DFileManagementUiTest.java31 import com.android.documentsui.base.Shared;
148 for (int i = 0; i <= Shared.MAX_DOCS_IN_INTENT; ++i) { in testCopyLargeAmountOfFiles()
176 final int expectedCount = Shared.MAX_DOCS_IN_INTENT + 1; in testCopyLargeAmountOfFiles()
DFilesActivityDefaultsUiTest.java28 import com.android.documentsui.base.Shared;
109 return Shared.shouldShowDocumentsRoot(context); in docsRootEnabled()
DPickerPreviewTextUiTest.java27 import com.android.documentsui.base.Shared;
45 mHasQuickViewer = Shared.hasQuickViewer(context); in setUp()
/packages/apps/DocumentsUI/src/com/android/documentsui/sorting/
DSortingCursorWrapper.java28 import com.android.documentsui.base.Shared;
215 compare = Shared.compareToIgnoreCaseNullable(lhs, rhs); in binarySort()
218 compare = -Shared.compareToIgnoreCaseNullable(lhs, rhs); in binarySort()

123