Home
last modified time | relevance | path

Searched refs:cr (Results 1 – 10 of 10) 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.java277 final ContentResolver cr = getContentResolver(); in onActivityResult() local
294 cr.takePersistableUriPermission(uri, Intent.FLAG_GRANT_READ_URI_PERMISSION); in onActivityResult()
300 is = cr.openInputStream(uri); in onActivityResult()
309 cr.takePersistableUriPermission(uri, Intent.FLAG_GRANT_WRITE_URI_PERMISSION); in onActivityResult()
315 os = cr.openOutputStream(uri); in onActivityResult()
325 cr.takePersistableUriPermission(uri, Intent.FLAG_GRANT_READ_URI_PERMISSION); in onActivityResult()
334 Cursor c = cr.query(child, new String[] { in onActivityResult()
345 Uri pic = createDocument(cr, doc, "image/png", "pic.png"); in onActivityResult()
346 Uri dir = createDocument(cr, doc, Document.MIME_TYPE_DIR, "my dir"); in onActivityResult()
347 Uri dirPic = createDocument(cr, dir, "image/png", "pic2.png"); 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/ApiDemos/src/com/example/android/mmslib/pdu/
DPduComposer.java988 InputStream cr = null; in makeMessageBody() local
991 cr = mResolver.openInputStream(part.getDataUri()); in makeMessageBody()
993 while ((len = cr.read(buffer)) != -1) { in makeMessageBody()
1005 if (cr != null) { in makeMessageBody()
1007 cr.close(); in makeMessageBody()
/development/samples/NotePad/src/com/example/android/notepad/
DNoteEditor.java403 ContentResolver cr = getContentResolver(); in performPaste() local
421 if (uri != null && NotePad.Notes.CONTENT_ITEM_TYPE.equals(cr.getType(uri))) { in performPaste()
424 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()