/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
D | MtpDatabaseConstants.java | 22 import android.provider.DocumentsContract.Root; 62 Root.COLUMN_ROOT_ID); 118 static final String SELECTION_ROOT_ID = Root.COLUMN_ROOT_ID + " = ?"; 141 Root.COLUMN_ROOT_ID + " INTEGER PRIMARY KEY," + 142 Root.COLUMN_FLAGS + " INTEGER NOT NULL," + 143 Root.COLUMN_AVAILABLE_BYTES + " INTEGER," + 144 Root.COLUMN_CAPACITY_BYTES + " INTEGER," + 145 Root.COLUMN_MIME_TYPES + " TEXT NOT NULL);"; 157 COLUMN_MAP_ROOTS.put(Root.COLUMN_ROOT_ID, TABLE_ROOT_EXTRA + "." + Root.COLUMN_ROOT_ID); in COLUMN_MAP_ROOTS.put() 158 COLUMN_MAP_ROOTS.put(Root.COLUMN_FLAGS, TABLE_ROOT_EXTRA + "." + Root.COLUMN_FLAGS); in COLUMN_MAP_ROOTS.put() [all …]
|
D | MtpDatabase.java | 38 import android.provider.DocumentsContract.Root; 169 storageCursor.getColumnIndex(Root.COLUMN_CAPACITY_BYTES); in queryRoots() 171 storageCursor.getColumnIndex(Root.COLUMN_AVAILABLE_BYTES); in queryRoots() 182 values.put(Root.COLUMN_CAPACITY_BYTES, capacityBytes); in queryRoots() 183 values.put(Root.COLUMN_AVAILABLE_BYTES, availableBytes); in queryRoots() 185 values.putNull(Root.COLUMN_CAPACITY_BYTES); in queryRoots() 186 values.putNull(Root.COLUMN_AVAILABLE_BYTES); in queryRoots() 188 if (storageCursor.getCount() == 1 && values.containsKey(Root.COLUMN_TITLE)) { in queryRoots() 192 Root.COLUMN_TITLE, in queryRoots() 195 values.getAsString(Root.COLUMN_TITLE), in queryRoots() [all …]
|
D | MtpDocumentsProvider.java | 38 import android.provider.DocumentsContract.Root; 66 Root.COLUMN_ROOT_ID, Root.COLUMN_FLAGS, Root.COLUMN_ICON, 67 Root.COLUMN_TITLE, Root.COLUMN_DOCUMENT_ID, 68 Root.COLUMN_AVAILABLE_BYTES,
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/model/ |
D | RootInfo.java | 33 import android.provider.DocumentsContract.Root; 181 root.rootId = getCursorString(cursor, Root.COLUMN_ROOT_ID); in fromRootsCursor() 182 root.flags = getCursorInt(cursor, Root.COLUMN_FLAGS); in fromRootsCursor() 183 root.icon = getCursorInt(cursor, Root.COLUMN_ICON); in fromRootsCursor() 184 root.title = getCursorString(cursor, Root.COLUMN_TITLE); in fromRootsCursor() 185 root.summary = getCursorString(cursor, Root.COLUMN_SUMMARY); in fromRootsCursor() 186 root.documentId = getCursorString(cursor, Root.COLUMN_DOCUMENT_ID); in fromRootsCursor() 187 root.availableBytes = getCursorLong(cursor, Root.COLUMN_AVAILABLE_BYTES); in fromRootsCursor() 188 root.mimeTypes = getCursorString(cursor, Root.COLUMN_MIME_TYPES); in fromRootsCursor() 282 return (flags & Root.FLAG_HAS_SETTINGS) != 0; in hasSettings() [all …]
|
/frameworks/base/packages/Shell/src/com/android/shell/ |
D | BugreportStorageProvider.java | 28 import android.provider.DocumentsContract.Root; 41 Root.COLUMN_ROOT_ID, Root.COLUMN_FLAGS, Root.COLUMN_ICON, Root.COLUMN_TITLE, 42 Root.COLUMN_DOCUMENT_ID, 64 row.add(Root.COLUMN_ROOT_ID, DOC_ID_ROOT); in queryRoots() 65 row.add(Root.COLUMN_FLAGS, Root.FLAG_LOCAL_ONLY | Root.FLAG_ADVANCED); in queryRoots() 66 row.add(Root.COLUMN_ICON, android.R.mipmap.sym_def_app_icon); in queryRoots() 67 row.add(Root.COLUMN_TITLE, getContext().getString(R.string.bugreport_storage_title)); in queryRoots() 68 row.add(Root.COLUMN_DOCUMENT_ID, DOC_ID_ROOT); in queryRoots()
|
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/ |
D | MtpDatabaseTest.java | 27 import android.provider.DocumentsContract.Root; 117 Root.COLUMN_ROOT_ID, in testPutSingleStorageDocuments() 118 Root.COLUMN_FLAGS, in testPutSingleStorageDocuments() 119 Root.COLUMN_ICON, in testPutSingleStorageDocuments() 120 Root.COLUMN_TITLE, in testPutSingleStorageDocuments() 121 Root.COLUMN_SUMMARY, in testPutSingleStorageDocuments() 122 Root.COLUMN_DOCUMENT_ID, in testPutSingleStorageDocuments() 123 Root.COLUMN_AVAILABLE_BYTES, in testPutSingleStorageDocuments() 124 Root.COLUMN_CAPACITY_BYTES in testPutSingleStorageDocuments() 129 assertEquals(1, getInt(cursor, Root.COLUMN_ROOT_ID)); in testPutSingleStorageDocuments() [all …]
|
D | MtpDocumentsProviderTest.java | 27 import android.provider.DocumentsContract.Root; 148 DocumentsContract.Root.COLUMN_TITLE, in testOpenDeviceOnDemand() 149 DocumentsContract.Root.COLUMN_DOCUMENT_ID in testOpenDeviceOnDemand() 213 assertEquals(Root.FLAG_SUPPORTS_IS_CHILD | Root.FLAG_SUPPORTS_CREATE, cursor.getInt(1)); in testQueryRoots() 228 assertEquals(Root.FLAG_SUPPORTS_IS_CHILD, cursor.getInt(1)); in testQueryRoots() 274 assertEquals(Root.FLAG_SUPPORTS_IS_CHILD | Root.FLAG_SUPPORTS_CREATE, cursor.getInt(1)); in testQueryRoots_error() 282 assertEquals(Root.FLAG_SUPPORTS_IS_CHILD | Root.FLAG_SUPPORTS_CREATE, cursor.getInt(1)); in testQueryRoots_error() 797 return getStrings(mProvider.queryRoots(strings(DocumentsContract.Root.COLUMN_ROOT_ID))); in setupRoots()
|
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/ |
D | TestDocumentsProvider.java | 41 import android.provider.DocumentsContract.Root; 83 Root.COLUMN_ROOT_ID, Root.COLUMN_FLAGS, Root.COLUMN_ICON, 84 Root.COLUMN_TITLE, Root.COLUMN_SUMMARY, Root.COLUMN_DOCUMENT_ID, 85 Root.COLUMN_AVAILABLE_BYTES, 134 row.add(Root.COLUMN_ROOT_ID, MY_ROOT_ID); in queryRoots() 135 row.add(Root.COLUMN_FLAGS, Root.FLAG_SUPPORTS_RECENTS | Root.FLAG_SUPPORTS_CREATE); in queryRoots() 136 row.add(Root.COLUMN_TITLE, "_Test title which is really long"); in queryRoots() 137 row.add(Root.COLUMN_SUMMARY, in queryRoots() 139 row.add(Root.COLUMN_DOCUMENT_ID, MY_DOC_ID); in queryRoots() 140 row.add(Root.COLUMN_AVAILABLE_BYTES, 1024); in queryRoots()
|
D | ExternalStorageProvider.java | 42 import android.provider.DocumentsContract.Root; 78 Root.COLUMN_ROOT_ID, Root.COLUMN_FLAGS, Root.COLUMN_ICON, Root.COLUMN_TITLE, 79 Root.COLUMN_DOCUMENT_ID, Root.COLUMN_AVAILABLE_BYTES, 185 root.flags = Root.FLAG_LOCAL_ONLY in updateVolumesLocked() 186 | Root.FLAG_SUPPORTS_SEARCH | Root.FLAG_SUPPORTS_IS_CHILD; in updateVolumesLocked() 191 root.flags |= Root.FLAG_REMOVABLE_SD; in updateVolumesLocked() 193 root.flags |= Root.FLAG_REMOVABLE_USB; in updateVolumesLocked() 199 root.flags |= Root.FLAG_ADVANCED; in updateVolumesLocked() 203 root.flags |= Root.FLAG_SUPPORTS_CREATE; in updateVolumesLocked() 207 root.flags |= Root.FLAG_HAS_SETTINGS; in updateVolumesLocked() [all …]
|
/frameworks/base/packages/DocumentsUI/perf-tests/src/com/android/documentsui/ |
D | StressProvider.java | 30 import android.provider.DocumentsContract.Root; 71 Root.COLUMN_ROOT_ID, Root.COLUMN_FLAGS, Root.COLUMN_TITLE, Root.COLUMN_DOCUMENT_ID, 72 Root.COLUMN_AVAILABLE_BYTES 180 row.add(Root.COLUMN_ROOT_ID, root.id); in includeRoot() 181 row.add(Root.COLUMN_FLAGS, 0); in includeRoot() 182 row.add(Root.COLUMN_TITLE, root.id); in includeRoot() 183 row.add(Root.COLUMN_DOCUMENT_ID, root.documentId); in includeRoot()
|
/frameworks/base/tools/preload/ |
D | Root.java | 38 public class Root implements Serializable { class 151 static Root fromFile(String fileName) in fromFile() 157 Root root = (Root) oin.readObject(); in fromFile()
|
D | PrintPsTree.java | 38 Root root = (Root) oin.readObject(); in main()
|
D | WritePreloadedClassFile.java | 49 Root root = Root.fromFile(rootFile); in main() 133 private static void addAllClassesFrom(String processName, Root root, in addAllClassesFrom()
|
D | Compile.java | 39 Root root = new Root(); in main()
|
D | PrintCsv.java | 40 Root root = Root.fromFile(args[0]); in main()
|
D | PrintHtmlDiff.java | 36 Root root = Root.fromFile(args[0]); in main()
|
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/ |
D | StubProvider.java | 34 import android.provider.DocumentsContract.Root; 79 Root.COLUMN_ROOT_ID, Root.COLUMN_FLAGS, Root.COLUMN_TITLE, Root.COLUMN_DOCUMENT_ID, 80 Root.COLUMN_AVAILABLE_BYTES 155 row.add(Root.COLUMN_ROOT_ID, id); in queryRoots() 156 row.add(Root.COLUMN_FLAGS, info.flags); in queryRoots() 157 row.add(Root.COLUMN_TITLE, id); in queryRoots() 158 row.add(Root.COLUMN_DOCUMENT_ID, info.document.documentId); in queryRoots() 159 row.add(Root.COLUMN_AVAILABLE_BYTES, info.getRemainingCapacity()); in queryRoots() 716 private static final int DEFAULT_ROOTS_FLAGS = Root.FLAG_SUPPORTS_SEARCH 717 | Root.FLAG_SUPPORTS_CREATE | Root.FLAG_SUPPORTS_IS_CHILD; [all …]
|
/frameworks/base/docs/html-intl/intl/ru/guide/topics/providers/ |
D | document-provider.jd | 124 …trong>Рисунок 1.</strong> Модель данных поставщика документов. На рисунке Root (Корневой каталог) … 132 …талог имеет уникальный идентификатор {@link android.provider.DocumentsContract.Root#COLUMN_ROOT_ID} 680 <li>{@link android.provider.DocumentsContract.Root}</li> 687 new String[]{Root.COLUMN_ROOT_ID, Root.COLUMN_MIME_TYPES, 688 Root.COLUMN_FLAGS, Root.COLUMN_ICON, Root.COLUMN_TITLE, 689 Root.COLUMN_SUMMARY, Root.COLUMN_DOCUMENT_ID, 690 Root.COLUMN_AVAILABLE_BYTES,}; 722 {@link android.provider.DocumentsContract.Root}.</p> 750 row.add(Root.COLUMN_ROOT_ID, ROOT); 751 row.add(Root.COLUMN_SUMMARY, getContext().getString(R.string.root_summary)); [all …]
|
/frameworks/base/docs/html-intl/intl/zh-cn/guide/topics/providers/ |
D | document-provider.jd | 131 {@link android.provider.DocumentsContract.Root#COLUMN_ROOT_ID},并且指向表示该根目录下内容的文档(目录)。根目录采用动态设计,以支持多个… 680 <li>{@link android.provider.DocumentsContract.Root}</li> 687 new String[]{Root.COLUMN_ROOT_ID, Root.COLUMN_MIME_TYPES, 688 Root.COLUMN_FLAGS, Root.COLUMN_ICON, Root.COLUMN_TITLE, 689 Root.COLUMN_SUMMARY, Root.COLUMN_DOCUMENT_ID, 690 Root.COLUMN_AVAILABLE_BYTES,}; 722 {@link android.provider.DocumentsContract.Root} 中定义的列返回一个指向文档提供程序所有根目录的 {@link android.database.Cur… 750 row.add(Root.COLUMN_ROOT_ID, ROOT); 751 row.add(Root.COLUMN_SUMMARY, getContext().getString(R.string.root_summary)); 758 row.add(Root.COLUMN_FLAGS, Root.FLAG_SUPPORTS_CREATE | [all …]
|
/frameworks/base/docs/html-intl/intl/zh-tw/guide/topics/providers/ |
D | document-provider.jd | 130 <li>每個文件供應程式都會回報一或多個「根目錄」(也就是文件樹狀結構的起始點)。每個根目錄都有專屬的 {@link android.provider.DocumentsContract.Root#… 680 <li>{@link android.provider.DocumentsContract.Root}</li> 687 new String[]{Root.COLUMN_ROOT_ID, Root.COLUMN_MIME_TYPES, 688 Root.COLUMN_FLAGS, Root.COLUMN_ICON, Root.COLUMN_TITLE, 689 Root.COLUMN_SUMMARY, Root.COLUMN_DOCUMENT_ID, 690 Root.COLUMN_AVAILABLE_BYTES,}; 720 queryRoots()} 後系統會使用 {@link android.provider.DocumentsContract.Root} 中定義的資料欄,傳回指向文件供應程式所有根目錄的 {@lin… 750 row.add(Root.COLUMN_ROOT_ID, ROOT); 751 row.add(Root.COLUMN_SUMMARY, getContext().getString(R.string.root_summary)); 758 row.add(Root.COLUMN_FLAGS, Root.FLAG_SUPPORTS_CREATE | [all …]
|
/frameworks/base/docs/html-intl/intl/ja/guide/topics/providers/ |
D | document-provider.jd | 130 …点である 1 つ以上の「ルート」を報告します。各ルートは一意の {@link android.provider.DocumentsContract.Root#COLUMN_ROOT_ID} を持ち… 680 <li>{@link android.provider.DocumentsContract.Root}</li> 687 new String[]{Root.COLUMN_ROOT_ID, Root.COLUMN_MIME_TYPES, 688 Root.COLUMN_FLAGS, Root.COLUMN_ICON, Root.COLUMN_TITLE, 689 Root.COLUMN_SUMMARY, Root.COLUMN_DOCUMENT_ID, 690 Root.COLUMN_AVAILABLE_BYTES,}; 720 queryRoots()} を実装すると、{@link android.provider.DocumentsContract.Root} で定義される列を使って、ドキュメント プロバイダのすべてのル… 750 row.add(Root.COLUMN_ROOT_ID, ROOT); 751 row.add(Root.COLUMN_SUMMARY, getContext().getString(R.string.root_summary)); 758 row.add(Root.COLUMN_FLAGS, Root.FLAG_SUPPORTS_CREATE | [all …]
|
/frameworks/base/docs/html-intl/intl/ko/guide/topics/providers/ |
D | document-provider.jd | 132 각 루트에는 고유한 {@link android.provider.DocumentsContract.Root#COLUMN_ROOT_ID}가 있으며, 680 <li>{@link android.provider.DocumentsContract.Root}</li> 687 new String[]{Root.COLUMN_ROOT_ID, Root.COLUMN_MIME_TYPES, 688 Root.COLUMN_FLAGS, Root.COLUMN_ICON, Root.COLUMN_TITLE, 689 Root.COLUMN_SUMMARY, Root.COLUMN_DOCUMENT_ID, 690 Root.COLUMN_AVAILABLE_BYTES,}; 722 {@link android.provider.DocumentsContract.Root}에서 정의한 열을 사용합니다.</p> 750 row.add(Root.COLUMN_ROOT_ID, ROOT); 751 row.add(Root.COLUMN_SUMMARY, getContext().getString(R.string.root_summary)); 758 row.add(Root.COLUMN_FLAGS, Root.FLAG_SUPPORTS_CREATE | [all …]
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
D | RootsCache.java | 38 import android.provider.DocumentsContract.Root; 98 flags = Root.FLAG_LOCAL_ONLY | Root.FLAG_SUPPORTS_IS_CHILD in RootsCache() 99 | Root.FLAG_SUPPORTS_CREATE; in RootsCache() 136 assert(mRecentsRoot.flags == (Root.FLAG_LOCAL_ONLY in updateAsync() 137 | Root.FLAG_SUPPORTS_IS_CHILD in updateAsync() 138 | Root.FLAG_SUPPORTS_CREATE)); in updateAsync()
|
/frameworks/base/docs/html-intl/intl/in/guide/topics/providers/ |
D | document-provider.jd | 124 <p class="img-caption"><strong>Gambar 1.</strong> Model data penyedia dokumen. Root menunjuk ke sat… 132 Masing-masing akar memiliki sebuah {@link android.provider.DocumentsContract.Root#COLUMN_ROOT_ID} y… 680 <li>{@link android.provider.DocumentsContract.Root}</li> 687 new String[]{Root.COLUMN_ROOT_ID, Root.COLUMN_MIME_TYPES, 688 Root.COLUMN_FLAGS, Root.COLUMN_ICON, Root.COLUMN_TITLE, 689 Root.COLUMN_SUMMARY, Root.COLUMN_DOCUMENT_ID, 690 Root.COLUMN_AVAILABLE_BYTES,}; 722 {@link android.provider.DocumentsContract.Root}.</p> 750 row.add(Root.COLUMN_ROOT_ID, ROOT); 751 row.add(Root.COLUMN_SUMMARY, getContext().getString(R.string.root_summary)); [all …]
|
/frameworks/base/docs/html/guide/topics/providers/ |
D | document-provider.jd | 124 <p class="img-caption"><strong>Figure 1.</strong> Document provider data model. A Root points to a … 132 Each root has a unique {@link android.provider.DocumentsContract.Root#COLUMN_ROOT_ID}, 682 <li>{@link android.provider.DocumentsContract.Root}</li> 689 new String[]{Root.COLUMN_ROOT_ID, Root.COLUMN_MIME_TYPES, 690 Root.COLUMN_FLAGS, Root.COLUMN_ICON, Root.COLUMN_TITLE, 691 Root.COLUMN_SUMMARY, Root.COLUMN_DOCUMENT_ID, 692 Root.COLUMN_AVAILABLE_BYTES,}; 724 {@link android.provider.DocumentsContract.Root}.</p> 752 row.add(Root.COLUMN_ROOT_ID, ROOT); 753 row.add(Root.COLUMN_SUMMARY, getContext().getString(R.string.root_summary)); [all …]
|