OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:docId
(Results
1 - 12
of
12
) sorted by null
/development/samples/Vault/src/com/example/android/vault/
VaultProvider.java
220
private EncryptedDocument getDocument(long
docId
) throws GeneralSecurityException {
221
final File file = new File(mDocumentsDir, String.valueOf(
docId
));
222
return new EncryptedDocument(
docId
, file, mDataKey, mMacKey);
228
private void includeDocument(MatrixCursor result, long
docId
)
230
final EncryptedDocument doc = getDocument(
docId
);
232
throw new FileNotFoundException("Missing document " +
docId
);
296
private void initDocument(long
docId
, String mimeType, String displayName)
298
final EncryptedDocument doc = getDocument(
docId
);
303
meta.put(Document.COLUMN_DOCUMENT_ID,
docId
);
318
final long
docId
= Long.parseLong(documentId)
[
all
...]
EncryptedDocument.java
95
* @param
docId
the expected {@link Document#COLUMN_DOCUMENT_ID} to be
100
public EncryptedDocument(long
docId
, File file, SecretKey dataKey, SecretKey macKey)
113
mDocId =
docId
;
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DownloadStorageProvider.java
105
public String createDocument(String
docId
, String mimeType, String displayName)
144
public void deleteDocument(String
docId
) throws FileNotFoundException {
148
if (mDm.remove(Long.parseLong(
docId
)) != 1) {
149
throw new IllegalStateException("Failed to delete " +
docId
);
157
public Cursor queryDocument(String
docId
, String[] projection) throws FileNotFoundException {
160
if (DOC_ID_ROOT.equals(
docId
)) {
167
cursor = mDm.query(new Query().setFilterById(Long.parseLong(
docId
)));
181
public Cursor queryChildDocuments(String
docId
, String[] projection, String sortOrder)
260
public ParcelFileDescriptor openDocument(String
docId
, String mode, CancellationSignal signal)
265
final long id = Long.parseLong(
docId
);
[
all
...]
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/
ExternalStorageProvider.java
59
//
docId
format: root:path/to/file
75
public String
docId
;
152
root.
docId
= getDocIdForFile(path);
206
private File getFileForDocId(String
docId
) throws FileNotFoundException {
207
final int splitIndex =
docId
.indexOf(':', 1);
208
final String tag =
docId
.substring(0, splitIndex);
209
final String path =
docId
.substring(splitIndex + 1);
223
throw new FileNotFoundException("Missing file for " +
docId
+ " at " + target);
228
private void includeFile(MatrixCursor result, String
docId
, File file)
230
if (
docId
== null)
[
all
...]
TestDocumentsProvider.java
311
public ParcelFileDescriptor openDocument(String
docId
, String mode, CancellationSignal signal)
319
String
docId
, Point sizeHint, CancellationSignal signal) throws FileNotFoundException {
393
private static void includeFile(MatrixCursor result, String
docId
, int flags) {
395
row.add(Document.COLUMN_DOCUMENT_ID,
docId
);
396
row.add(Document.COLUMN_DISPLAY_NAME,
docId
);
400
if (MY_DOC_ID.equals(
docId
)) {
403
} else if (MY_DOC_NULL.equals(
docId
)) {
/packages/providers/MediaProvider/src/com/android/providers/media/
MediaDocumentsProvider.java
164
private static Ident getIdentForDocId(String
docId
) {
166
final int split =
docId
.indexOf(':');
168
ident.type =
docId
;
171
ident.type =
docId
.substring(0, split);
172
ident.id = Long.parseLong(
docId
.substring(split + 1));
199
public Cursor queryDocument(String
docId
, String[] projection) throws FileNotFoundException {
202
final Ident ident = getIdentForDocId(
docId
);
280
throw new UnsupportedOperationException("Unsupported document " +
docId
);
290
public Cursor queryChildDocuments(String
docId
, String[] projection, String sortOrder)
294
final Ident ident = getIdentForDocId(
docId
);
[
all
...]
/developers/build/prebuilts/gradle/StorageProvider/StorageProviderSample/src/main/java/com/example/android/storageprovider/
MyCloudProvider.java
470
* @param
docId
the document ID representing the desired file (may be null if given file)
471
* @param file the File object representing the desired file (may be null if given
docID
)
474
private void includeFile(MatrixCursor result, String
docId
, File file)
476
if (
docId
== null) {
477
docId
= getDocIdForFile(file);
479
file = getFileForDocId(
docId
);
509
row.add(Document.COLUMN_DOCUMENT_ID,
docId
);
523
* @param
docId
the document ID representing the desired file
527
private File getFileForDocId(String
docId
) throws FileNotFoundException {
529
if (
docId
.equals(ROOT))
[
all
...]
/developers/samples/android/content/documentsUi/StorageProvider/StorageProviderSample/src/main/java/com/example/android/storageprovider/
MyCloudProvider.java
470
* @param
docId
the document ID representing the desired file (may be null if given file)
471
* @param file the File object representing the desired file (may be null if given
docID
)
474
private void includeFile(MatrixCursor result, String
docId
, File file)
476
if (
docId
== null) {
477
docId
= getDocIdForFile(file);
479
file = getFileForDocId(
docId
);
509
row.add(Document.COLUMN_DOCUMENT_ID,
docId
);
523
* @param
docId
the document ID representing the desired file
527
private File getFileForDocId(String
docId
) throws FileNotFoundException {
529
if (
docId
.equals(ROOT))
[
all
...]
/development/samples/browseable/StorageProvider/src/com.example.android.storageprovider/
MyCloudProvider.java
470
* @param
docId
the document ID representing the desired file (may be null if given file)
471
* @param file the File object representing the desired file (may be null if given
docID
)
474
private void includeFile(MatrixCursor result, String
docId
, File file)
476
if (
docId
== null) {
477
docId
= getDocIdForFile(file);
479
file = getFileForDocId(
docId
);
509
row.add(Document.COLUMN_DOCUMENT_ID,
docId
);
523
* @param
docId
the document ID representing the desired file
527
private File getFileForDocId(String
docId
) throws FileNotFoundException {
529
if (
docId
.equals(ROOT))
[
all
...]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
IconUtils.java
211
Context context, String mimeType, String authority, String
docId
, int mode) {
217
&&
docId
.startsWith("album")) {
DirectoryFragment.java
773
final String
docId
= getCursorString(cursor, Document.COLUMN_DOCUMENT_ID);
[
all
...]
/prebuilts/sdk/current/
android.jar
Completed in 1207 milliseconds