HomeSort by relevance Sort by last modified time
    Searched refs:cr (Results 1 - 25 of 261) sorted by null

1 2 3 4 5 6 7 8 91011

  /libcore/luni/src/test/java/tests/api/java/io/
CharArrayReaderTest.java 33 CharArrayReader cr; field in class:CharArrayReaderTest
48 cr = new CharArrayReader(hw);
49 assertTrue("Failed to create reader", cr.ready());
65 cr = new CharArrayReader(null, 0, 0);
71 cr = new CharArrayReader(hw, -1, 0);
77 cr = new CharArrayReader(hw, 0, -1);
83 cr = new CharArrayReader(hw, hw.length + 1, 1);
89 cr = new CharArrayReader(hw, 5, 5);
90 assertTrue("Test 5: Failed to create reader", cr.ready());
92 'W', cr.read())
    [all...]
CharArrayWriterTest.java 37 CharArrayReader cr; field in class:CharArrayWriterTest
117 cr = new CharArrayReader(cw.toCharArray());
120 cr.read(c, 0, 5);
156 cr = new CharArrayReader(cw.toCharArray());
159 cr.read(c, 0, 10);
179 cr = new CharArrayReader(cw.toCharArray());
195 cr = new CharArrayReader(cw.toCharArray());
198 cr.read(c, 0, 5);
257 cr = new CharArrayReader(cw.toCharArray());
259 assertEquals("Writer failed to write char", 'T', cr.read())
    [all...]
  /external/webkit/WebCore/platform/graphics/cairo/
GraphicsContextCairo.cpp 69 static inline void setColor(cairo_t* cr, const Color& col)
73 cairo_set_source_rgba(cr, red, green, blue, alpha);
76 static inline void setPlatformFill(GraphicsContext* context, cairo_t* cr, GraphicsContextPrivate* gcp)
78 cairo_save(cr);
81 cairo_set_source(cr, gcp->state.fillPattern->createPlatformPattern(affine));
83 cairo_set_source(cr, gcp->state.fillGradient->platformGradient());
85 setColor(cr, context->fillColor());
86 cairo_clip_preserve(cr);
87 cairo_paint_with_alpha(cr, gcp->state.globalAlpha);
88 cairo_restore(cr);
213 cairo_t* cr = platformContext(); local
397 cairo_t* cr = m_data->cr; local
621 cairo_t* cr = m_data->cr; local
708 cairo_t* cr = m_data->cr; local
739 cairo_t* cr = m_data->cr; local
821 cairo_t* cr = m_data->cr; local
851 cairo_t* cr = m_data->cr; local
    [all...]
FontCairo.cpp 47 cairo_t* cr = context->platformContext(); local
48 cairo_save(cr);
50 cairo_set_scaled_font(cr, font->platformData().scaledFont());
66 cairo_transform(cr, &mat);
68 cairo_translate(cr, point.x(), point.y());
83 cairo_save(cr);
87 cairo_set_source_rgba(cr, red, green, blue, alpha);
114 cairo_translate(cr, 0.0, -extents.height);
117 cairo_translate(cr, shadowSize.width(), shadowSize.height());
118 cairo_show_glyphs(cr, glyphs, numGlyphs)
    [all...]
PathCairo.cpp 54 cairo_t* cr = platformPath()->m_cr; local
56 cairo_append_path(cr, p);
66 cairo_t* cr = platformPath()->m_cr; local
68 cairo_append_path(cr, p);
75 cairo_t* cr = platformPath()->m_cr; local
76 cairo_new_path(cr);
91 cairo_t* cr = platformPath()->m_cr; local
92 cairo_translate(cr, p.width(), p.height());
97 cairo_t* cr = platformPath()->m_cr; local
98 cairo_move_to(cr, p.x(), p.y())
103 cairo_t* cr = platformPath()->m_cr; local
109 cairo_t* cr = platformPath()->m_cr; local
118 cairo_t* cr = platformPath()->m_cr; local
133 cairo_t* cr = platformPath()->m_cr; local
231 cairo_t* cr = platformPath()->m_cr; local
243 cairo_t* cr = platformPath()->m_cr; local
249 cairo_t* cr = platformPath()->m_cr; local
257 cairo_t* cr = platformPath()->m_cr; local
284 cairo_t* cr = platformPath()->m_cr; local
293 cairo_t* cr = platformPath()->m_cr; local
    [all...]
GraphicsContextPlatformPrivateCairo.h 47 : cr(0)
61 cairo_destroy(cr);
78 void syncContext(PlatformGraphicsContext* cr);
93 void syncContext(PlatformGraphicsContext* cr) {}
96 cairo_t* cr; member in class:WebCore::GraphicsContextPlatformPrivate
GradientCairo.cpp 81 cairo_t* cr = context->platformContext(); local
84 cairo_set_source(cr, platformGradient());
85 cairo_rectangle(cr, rect.x(), rect.y(), rect.width(), rect.height());
86 cairo_fill(cr);
  /cts/tests/tests/provider/src/android/provider/cts/
Settings_SystemTest.java 34 private ContentResolver cr; field in class:Settings_SystemTest
40 cr = mContext.getContentResolver();
41 assertNotNull(cr);
115 Cursor c = cr.query(System.CONTENT_URI, null, null, null, null);
128 assertTrue(System.putInt(cr, intField, 10));
129 assertTrue(System.putLong(cr, longField, 20l));
130 assertTrue(System.putFloat(cr, floatField, 30.0f));
131 assertTrue(System.putString(cr, stringField, stringValue));
132 System.setShowGTalkServiceStatus(cr, true);
134 c = cr.query(System.CONTENT_URI, null, null, null, null)
    [all...]
Settings_SecureTest.java 34 private ContentResolver cr; field in class:Settings_SecureTest
40 cr = mContext.getContentResolver();
41 assertNotNull(cr);
96 Cursor c = cr.query(Secure.CONTENT_URI, null, null, null, null);
103 assertTrue(Secure.putInt(cr, "IntField", 10));
104 assertTrue(Secure.putLong(cr, "LongField", 20));
105 assertTrue(Secure.putFloat(cr, "FloatField", 30));
106 assertTrue(Secure.putString(cr, "StringField", "cts"));
108 c = cr.query(Secure.CONTENT_URI, null, null, null, null);
114 assertEquals(10, Secure.getInt(cr, "IntField"))
    [all...]
Settings_NameValueTableTest.java 39 ContentResolver cr = mContext.getContentResolver(); local
45 Cursor c = cr.query(uri, null, null, null, null);
51 MyNameValueTable.putString(cr, uri, name, value);
52 c = cr.query(uri, null, null, null, null);
59 c = cr.query(uri, null, selection, null, null);
68 cr.delete(uri, selection, null);
69 c = cr.query(uri, null, null, null, null);
  /packages/providers/CalendarProvider/src/com/android/providers/calendar/
CalendarReceiver.java 38 ContentResolver cr = context.getContentResolver(); local
40 cr.update(CalendarProvider2.SCHEDULE_ALARM_URI, null /* values */, null /* where */,
49 cr.update(CalendarProvider2.SCHEDULE_ALARM_REMOVE_URI,
  /external/webkit/WebCore/platform/graphics/win/
GraphicsContextCairoWin.cpp 72 m_data->cr = createCairoContextWithHDC(dc, hasAlpha);
76 m_data->cr = 0;
80 if (m_data->cr) {
114 cairo_translate(m_data->cr, 0, dstRect.height());
115 cairo_scale(m_data->cr, dstRect.width(), -dstRect.height());
116 cairo_set_source_surface (m_data->cr, image, dstRect.x(), dstRect.y());
119 cairo_paint_with_alpha(m_data->cr, m_data->layers.last());
121 cairo_paint(m_data->cr);
129 void GraphicsContextPlatformPrivate::syncContext(PlatformGraphicsContext* cr)
131 if (!cr)
    [all...]
  /packages/apps/Camera/src/com/android/camera/gallery/
Image.java 30 public Image(ContentResolver cr,
34 super(cr, id, uri, miniThumbMagic,
  /development/tools/mkstubs/tests/com/android/mkstubs/sourcer/
ClassSourcerTest.java 49 ClassReader cr = new ClassReader("data/TestBaseClass"); local
52 cr.accept(jw, 0);
79 ClassReader cr = new ClassReader("data/TestInnerClass"); local
82 cr.accept(jw, 0);
107 ClassReader cr = new ClassReader("data/TestTemplateClass"); local
110 cr.accept(jw, 0);
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/voice/
SettingsUtil.java 80 * @param cr The content resolver to use
85 public static String getSettingsString(ContentResolver cr, String key, String defaultValue) {
86 String result = Settings.Secure.getString(cr, key);
93 * @param cr The content resolver to use
98 public static int getSettingsInt(ContentResolver cr, String key, int defaultValue) {
99 return Settings.Secure.getInt(cr, key, defaultValue);
105 * @param cr The content resolver to use
110 public static float getSettingsFloat(ContentResolver cr, String key, float defaultValue) {
111 return Settings.Secure.getFloat(cr, key, defaultValue);
  /frameworks/base/core/java/android/provider/
Browser.java 186 * @param cr The ContentResolver used to access the database.
188 public static final Cursor getAllBookmarks(ContentResolver cr) throws
190 return cr.query(BOOKMARKS_URI,
198 * @param cr The ContentResolver used to access the database.
200 public static final Cursor getAllVisitedUrls(ContentResolver cr) throws
202 return cr.query(BOOKMARKS_URI,
214 * @param cr The ContentResolver used to access the database.
218 public static final Cursor getVisitedLike(ContentResolver cr, String url) {
253 return cr.query(BOOKMARKS_URI, HISTORY_PROJECTION,
262 * @param cr The ContentResolver used to access the database
    [all...]
SearchRecentSuggestions.java 170 ContentResolver cr = mContext.getContentResolver(); local
182 cr.insert(mSuggestionsUri, values);
188 truncateHistory(cr, MAX_HISTORY_COUNT);
200 ContentResolver cr = mContext.getContentResolver(); local
201 truncateHistory(cr, 0);
207 * @param cr Convenience copy of the content resolver.
210 protected void truncateHistory(ContentResolver cr, int maxEntries) {
224 cr.delete(mSuggestionsUri, selection, null);
MediaStore.java 271 private static Bitmap getMiniThumbFromFile(Cursor c, Uri baseUri, ContentResolver cr, BitmapFactory.Options options) {
278 ParcelFileDescriptor pfdInput = cr.openFileDescriptor(thumbUri, "r");
298 * @param cr ContentResolver
303 static void cancelThumbnailRequest(ContentResolver cr, long origId, Uri baseUri,
310 c = cr.query(cancelUri, PROJECTION, null, null, null);
323 * @param cr ContentResolver
331 static Bitmap getThumbnail(ContentResolver cr, long origId, long groupId, int kind,
358 c = cr.query(baseUri, PROJECTION, column + origId, null, null);
360 bitmap = getMiniThumbFromFile(c, baseUri, cr, options);
376 c = cr.query(blockingUri, PROJECTION, null, null, null)
    [all...]
  /external/bluetooth/bluez/tools/
hcitool.c 515 struct hci_conn_info_req *cr; local
667 cr = malloc(sizeof(*cr) + sizeof(struct hci_conn_info));
668 if (cr) {
669 bacpy(&cr->bdaddr, &(info+i)->bdaddr);
670 cr->type = ACL_LINK;
671 if (ioctl(dd, HCIGETCONNINFO, (unsigned long) cr) < 0) {
675 handle = htobs(cr->conn_info->handle);
678 free(cr);
837 struct hci_conn_info_req *cr; local
1265 struct hci_conn_info_req *cr; local
1404 struct hci_conn_info_req *cr; local
1478 struct hci_conn_info_req *cr; local
1552 struct hci_conn_info_req *cr; local
1629 struct hci_conn_info_req *cr; local
1713 struct hci_conn_info_req *cr; local
1801 struct hci_conn_info_req *cr; local
1900 struct hci_conn_info_req *cr; local
1991 struct hci_conn_info_req *cr; local
2062 struct hci_conn_info_req *cr; local
2136 struct hci_conn_info_req *cr; local
2207 struct hci_conn_info_req *cr; local
2281 struct hci_conn_info_req *cr; local
    [all...]
  /development/tools/mkstubs/src/com/android/mkstubs/
SourceGenerator.java 50 ClassReader cr = entry.getValue(); local
52 String name = classNameToJavaPath(cr.getClassName());
57 visitClassSource(fw, cr, filter);
85 void visitClassSource(Writer fw, ClassReader cr, Filter filter) {
86 System.out.println("Dump " + cr.getClassName());
90 cr.accept(classFilter, 0 /*flags*/);
StubGenerator.java 54 ClassReader cr = entry.getValue(); local
56 byte[] b = visitClassStubber(cr, filter);
57 String name = classNameToEntryPath(cr.getClassName());
94 byte[] visitClassStubber(ClassReader cr, Filter filter) {
95 System.out.println("Stub " + cr.getClassName());
103 cr.accept(classFilter, 0 /*flags*/);
  /development/tools/mkstubs/tests/com/android/mkstubs/
SourceGeneratorTest.java 48 ClassReader cr = new ClassReader("data/TestBaseClass"); local
50 mGen.visitClassSource(sw, cr, new Filter());
  /external/webkit/WebCore/platform/graphics/gtk/
IconGtk.cpp 119 cairo_t* cr = context->platformContext();
120 cairo_save(cr);
121 gdk_cairo_set_source_pixbuf(cr, m_icon, rect.x(), rect.y());
122 cairo_paint(cr);
123 cairo_restore(cr);
  /frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/
AsmGenerator.java 184 ClassReader cr = new ClassReader(is);
185 byte[] b = transform(cr, true /* stubNativesOnly */);
186 name = classNameToEntryPath(transformName(cr.getClassName()));
191 ClassReader cr = entry.getValue();
192 byte[] b = transform(cr, true /* stubNativesOnly */);
193 String name = classNameToEntryPath(transformName(cr.getClassName()));
198 ClassReader cr = entry.getValue();
199 byte[] b = transform(cr, true /* stubNativesOnly */);
200 String name = classNameToEntryPath(transformName(cr.getClassName()));
270 byte[] transform(ClassReader cr, boolean stubNativesOnly)
    [all...]
  /frameworks/base/telephony/java/com/android/internal/telephony/gsm/stk/
ComprehensionTlv.java 43 * @param cr Comprehension Required flag
48 protected ComprehensionTlv(int tag, boolean cr, int length, byte[] data,
51 mCr = cr;
114 boolean cr; // Comprehension required flag
125 cr = (tag & 0x8000) != 0;
132 cr = (tag & 0x80) != 0;
169 return new ComprehensionTlv(tag, cr, length, data, curIndex);

Completed in 251 milliseconds

1 2 3 4 5 6 7 8 91011