OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:docId
(Results
1 - 9
of
9
) sorted by null
/packages/apps/DocumentsUI/src/com/android/documentsui/
LoadDocStackTask.java
68
final String
docId
= DocumentsContract.getDocumentId(uris[0]);
69
docUri = DocumentsContract.buildDocumentUri(uris[0].getAuthority(),
docId
);
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
SharedMinimal.java
213
final String
docId
= bundle == null ? null : bundle.getString("DOC_ID");
214
if (
docId
== null) {
219
if (DEBUG) Log.d(TAG, "doc id for " + file + ": " +
docId
);
221
final Uri uri = DocumentsContract.buildTreeDocumentUri(Providers.AUTHORITY_STORAGE,
docId
);
223
Log.e(TAG, "Could not get URI for doc id " +
docId
);
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
ModelTest.java
145
String
docId
= DocumentInfo.getCursorString(cOut, Document.COLUMN_DOCUMENT_ID);
149
b0.set(Integer.parseInt(
docId
));
152
b1.set(Integer.parseInt(
docId
));
/cts/hostsidetests/appsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/
MyDocumentsProvider.java
118
private Doc buildDoc(String
docId
, String displayName, String mimeType,
121
doc.
docId
=
docId
;
125
mDocs.put(doc.
docId
, doc);
203
public String
docId
;
215
row.add(Document.COLUMN_DOCUMENT_ID,
docId
);
227
if (doc.
docId
.equals(documentId)) {
231
if (isChildDocument(doc.
docId
, documentId)) {
242
final String
docId
= "doc:" + mNextDocId.getAndIncrement();
243
final Doc doc = buildDoc(
docId
, displayName, mimeType, null)
[
all
...]
/development/samples/Vault/src/com/example/android/vault/
VaultProvider.java
222
private EncryptedDocument getDocument(long
docId
) throws GeneralSecurityException {
223
final File file = new File(mDocumentsDir, String.valueOf(
docId
));
224
return new EncryptedDocument(
docId
, file, mDataKey, mMacKey);
230
private void includeDocument(MatrixCursor result, long
docId
)
232
final EncryptedDocument doc = getDocument(
docId
);
234
throw new FileNotFoundException("Missing document " +
docId
);
332
private void initDocument(long
docId
, String mimeType, String displayName)
334
final EncryptedDocument doc = getDocument(
docId
);
339
meta.put(Document.COLUMN_DOCUMENT_ID,
docId
);
355
final long
docId
= Long.parseLong(documentId)
[
all
...]
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/
ExternalStorageProvider.java
74
//
docId
format: root:path/to/file
92
public String
docId
;
248
root.
docId
= getDocIdForFile(root.path);
279
root.
docId
= getDocIdForFile(root.path);
365
protected File getFileForDocId(String
docId
, boolean visible) throws FileNotFoundException {
366
return getFileForDocId(
docId
, visible, true);
369
private File getFileForDocId(String
docId
, boolean visible, boolean mustExist)
371
RootInfo root = getRootFromDocId(
docId
);
372
return buildFile(root,
docId
, visible, mustExist);
375
private Pair<RootInfo, File> resolveDocId(String
docId
, boolean visible
[
all
...]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DownloadStorageProvider.java
134
public Path findDocumentPath(@Nullable String parentDocId, String
docId
) throws FileNotFoundException {
146
final File doc = getFileForDocId(
docId
);
177
public void deleteDocument(String
docId
) throws FileNotFoundException {
181
if (RawDocumentsHelper.isRawDocId(
docId
)) {
182
super.deleteDocument(
docId
);
185
if (mDm.remove(Long.parseLong(
docId
)) != 1) {
186
throw new IllegalStateException("Failed to delete " +
docId
);
194
public String renameDocument(String
docId
, String displayName)
199
if (RawDocumentsHelper.isRawDocId(
docId
)) {
200
return super.renameDocument(
docId
, displayName)
[
all
...]
/frameworks/base/core/java/com/android/internal/content/
FileSystemProvider.java
81
protected abstract File getFileForDocId(String
docId
, boolean visible)
86
protected abstract Uri buildNotificationUri(String
docId
);
92
protected void onDocIdChanged(String
docId
) {
109
public boolean isChildDocument(String parentDocId, String
docId
) {
112
final File doc = getFileForDocId(
docId
).getCanonicalFile();
116
"Failed to determine if " +
docId
+ " is child of " + parentDocId + ": " + e);
180
public String createDocument(String
docId
, String mimeType, String displayName)
184
final File parent = getFileForDocId(
docId
);
233
public String renameDocument(String
docId
, String displayName) throws FileNotFoundException {
235
//
docId
, we're okay with letting the MIME type change
[
all
...]
/packages/providers/MediaProvider/src/com/android/providers/media/
MediaDocumentsProvider.java
244
private static Ident getIdentForDocId(String
docId
) {
246
final int split =
docId
.indexOf(':');
248
ident.type =
docId
;
251
ident.type =
docId
.substring(0, split);
252
ident.id = Long.parseLong(
docId
.substring(split + 1));
269
private Uri getUriForDocumentId(String
docId
) {
270
final Ident ident = getIdentForDocId(
docId
);
281
throw new UnsupportedOperationException("Unsupported document " +
docId
);
286
public void deleteDocument(String
docId
) throws FileNotFoundException {
287
final Uri target = getUriForDocumentId(
docId
);
[
all
...]
Completed in 1291 milliseconds