Home
last modified time | relevance | path

Searched refs:cr (Results 1 – 11 of 11) sorted by relevance

/development/tools/mkstubs/tests/com/android/mkstubs/sourcer/
DClassSourcerTest.java49 ClassReader cr = new ClassReader("data/TestBaseClass"); in testBaseClassSource() local
52 cr.accept(jw, 0); in testBaseClassSource()
79 ClassReader cr = new ClassReader("data/TestInnerClass"); in testInnerClassSource() local
82 cr.accept(jw, 0); in testInnerClassSource()
107 ClassReader cr = new ClassReader("data/TestTemplateClass"); in testTemplateClassSource() local
110 cr.accept(jw, 0); in testTemplateClassSource()
/development/tools/mkstubs/src/com/android/mkstubs/
DSourceGenerator.java57 ClassReader cr = entry.getValue(); in generateSource() local
59 String name = classNameToJavaPath(cr.getClassName()); in generateSource()
62 visitClassSource(fw, cr, filter); in generateSource()
88 void visitClassSource(Writer fw, ClassReader cr, Filter filter) { in visitClassSource() argument
89 mLog.debug("Dump " + cr.getClassName()); in visitClassSource()
93 cr.accept(classFilter, 0 /*flags*/); in visitClassSource()
DStubGenerator.java61 ClassReader cr = entry.getValue(); in generateStubbedJar() local
63 byte[] b = visitClassStubber(cr, filter); in generateStubbedJar()
64 String name = classNameToEntryPath(cr.getClassName()); in generateStubbedJar()
101 byte[] visitClassStubber(ClassReader cr, Filter filter) { in visitClassStubber() argument
102 mLog.debug("Stub " + cr.getClassName()); in visitClassStubber()
110 cr.accept(classFilter, 0 /*flags*/); in visitClassStubber()
DAsmAnalyzer.java53 ClassReader cr = new ClassReader(zip.getInputStream(entry)); in parseInputJar() local
54 String className = classReaderToAsmName(cr); in parseInputJar()
55 classes.put(className, cr); in parseInputJar()
/development/samples/ApiDemos/src/com/example/android/apis/content/
DDocumentsSample.java241 final ContentResolver cr = getContentResolver(); in onActivityResult() local
258 cr.takePersistableUriPermission(uri, Intent.FLAG_GRANT_READ_URI_PERMISSION); in onActivityResult()
264 is = cr.openInputStream(uri); in onActivityResult()
273 cr.takePersistableUriPermission(uri, Intent.FLAG_GRANT_WRITE_URI_PERMISSION); in onActivityResult()
279 os = cr.openOutputStream(uri); in onActivityResult()
293 Cursor c = cr.query(child, new String[] { in onActivityResult()
304 Uri pic = DocumentsContract.createDocument(cr, doc, "image/png", "pic.png"); in onActivityResult()
305 Uri dir = DocumentsContract.createDocument(cr, doc, Document.MIME_TYPE_DIR, "my dir"); in onActivityResult()
306 Uri dirPic = DocumentsContract.createDocument(cr, dir, "image/png", "pic2.png"); in onActivityResult()
315 os = cr.openOutputStream(dirPic); in onActivityResult()
[all …]
/development/tools/mkstubs/tests/com/android/mkstubs/
DSourceGeneratorTest.java50 ClassReader cr = new ClassReader("data/TestBaseClass"); in testDumpClass() local
52 mGen.visitClassSource(sw, cr, new Filter()); in testDumpClass()
/development/samples/WiFiDirectDemo/src/com/example/android/wifidirect/
DFileTransferService.java60 ContentResolver cr = context.getContentResolver(); in onHandleIntent() local
63 is = cr.openInputStream(Uri.parse(fileUri)); in onHandleIntent()
/development/samples/RandomMusicPlayer/src/com/example/android/musicplayer/
DMusicRetriever.java46 public MusicRetriever(ContentResolver cr) { in MusicRetriever() argument
47 mContentResolver = cr; in MusicRetriever()
/development/samples/NotePad/src/com/example/android/notepad/
DNoteEditor.java463 ContentResolver cr = getContentResolver(); in performPaste() local
481 if (uri != null && NotePad.Notes.CONTENT_ITEM_TYPE.equals(cr.getType(uri))) { in performPaste()
484 Cursor orig = cr.query( in performPaste()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DLoaderThrottle.java428 final ContentResolver cr = getActivity().getContentResolver(); in onOptionsItemSelected() local
445 cr.insert(MainTable.CONTENT_URI, values); in onOptionsItemSelected()
466 cr.delete(MainTable.CONTENT_URI, null, null); in onOptionsItemSelected()
/development/samples/Support4Demos/src/com/example/android/supportv4/app/
DLoaderThrottleSupport.java429 final ContentResolver cr = getActivity().getContentResolver(); in onOptionsItemSelected() local
446 cr.insert(MainTable.CONTENT_URI, values); in onOptionsItemSelected()
466 cr.delete(MainTable.CONTENT_URI, null, null); in onOptionsItemSelected()