OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:dirpic
(Results
1 - 3
of
3
) sorted by null
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/
DocumentsClientTest.java
265
Uri
dirPic
= DocumentsContract.createDocument(resolver, dir, "image/png", "pic2.png");
268
writeFully(
dirPic
, "
dirPic
".getBytes());
281
dirPic
= DocumentsContract.renameDocument(resolver,
dirPic
, "wow");
282
assertNotNull("rename",
dirPic
);
285
assertEquals("wow", getColumn(
dirPic
, Document.COLUMN_DISPLAY_NAME));
286
MoreAsserts.assertEquals("
dirPic
".getBytes(), readFully(
dirPic
));
ScopedDirectoryAccessClientTest.java
291
final Uri
dirPic
= DocumentsContract.createDocument(resolver, dir, "image/png", "pic2.png");
292
assertNotNull("could not create file (pic.png) on child dir (my dir)",
dirPic
);
295
writeFully(
dirPic
, "
dirPic
".getBytes());
299
assertTrue("delete", DocumentsContract.deleteDocument(resolver,
dirPic
));
/development/samples/ApiDemos/src/com/example/android/apis/content/
DocumentsSample.java
306
Uri
dirPic
= DocumentsContract.createDocument(cr, dir, "image/png", "pic2.png");
310
log("created " +
dirPic
);
315
os = cr.openOutputStream(
dirPic
);
Completed in 427 milliseconds