Home
last modified time | relevance | path

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

12345

/frameworks/base/core/java/android/provider/
DMediaStore.java614 Cursor c, Uri baseUri, ContentResolver cr, BitmapFactory.Options options) { in getMiniThumbFromFile() argument
621 ParcelFileDescriptor pfdInput = cr.openFileDescriptor(thumbUri, "r"); in getMiniThumbFromFile()
646 static void cancelThumbnailRequest(ContentResolver cr, long origId, Uri baseUri, in cancelThumbnailRequest() argument
653 c = cr.query(cancelUri, PROJECTION, null, null, null); in cancelThumbnailRequest()
675 static Bitmap getThumbnail(ContentResolver cr, long origId, long groupId, int kind, in getThumbnail() argument
702 c = cr.query(baseUri, PROJECTION, column + origId, null, null); in getThumbnail()
704 bitmap = getMiniThumbFromFile(c, baseUri, cr, options); in getThumbnail()
716 c = cr.query(blockingUri, PROJECTION, null, null, null); in getThumbnail()
736 bitmap = getMiniThumbFromFile(c, baseUri, cr, options); in getThumbnail()
750 c = cr.query(uri, PROJECTION, null, null, null); in getThumbnail()
[all …]
DBrowser.java245 public static final Cursor getAllBookmarks(ContentResolver cr) throws in getAllBookmarks() argument
257 public static final Cursor getAllVisitedUrls(ContentResolver cr) throws in getAllVisitedUrls() argument
266 private static final Cursor getVisitedLike(ContentResolver cr, String url) { in getVisitedLike() argument
301 return cr.query(History.CONTENT_URI, new String[] { History._ID, History.VISITS }, in getVisitedLike()
315 public static final void updateVisitedHistory(ContentResolver cr, in updateVisitedHistory() argument
326 public static final String[] getVisitedHistory(ContentResolver cr) { in getVisitedHistory() argument
340 public static final void truncateHistory(ContentResolver cr) { in truncateHistory() argument
350 public static final boolean canClearHistory(ContentResolver cr) { in canClearHistory() argument
361 public static final void clearHistory(ContentResolver cr) { in clearHistory() argument
375 public static final void deleteHistoryTimeFrame(ContentResolver cr, in deleteHistoryTimeFrame() argument
[all …]
DSettings.java1549 private IContentProvider lazyGetProvider(ContentResolver cr) { in lazyGetProvider() argument
1554 cp = mContentProvider = cr.acquireProvider(mUri.getAuthority()); in lazyGetProvider()
1560 public boolean putStringForUser(ContentResolver cr, String name, String value, in putStringForUser() argument
1566 IContentProvider cp = lazyGetProvider(cr); in putStringForUser()
1567 cp.call(cr.getPackageName(), mCallSetCommand, name, arg); in putStringForUser()
1575 public String getStringForUser(ContentResolver cr, String name, final int userHandle) { in getStringForUser() argument
1584 + cr.getPackageName() +" and user:" + userHandle); in getStringForUser()
1597 IContentProvider cp = lazyGetProvider(cr); in getStringForUser()
1620 + " in package:" + cr.getPackageName() +" and user:" in getStringForUser()
1625 Bundle b = cp.call(cr.getPackageName(), mCallGetCommand, name, args); in getStringForUser()
[all …]
DSearchRecentSuggestions.java189 ContentResolver cr = mContext.getContentResolver(); in saveRecentQueryBlocking() local
201 cr.insert(mSuggestionsUri, values); in saveRecentQueryBlocking()
207 truncateHistory(cr, MAX_HISTORY_COUNT); in saveRecentQueryBlocking()
219 ContentResolver cr = mContext.getContentResolver(); in clearHistory() local
220 truncateHistory(cr, 0); in clearHistory()
229 protected void truncateHistory(ContentResolver cr, int maxEntries) { in truncateHistory() argument
243 cr.delete(mSuggestionsUri, selection, null); in truncateHistory()
DCalendarContract.java873 public static final Cursor query(ContentResolver cr, long eventId, String[] projection) { in query() argument
875 return cr.query(CONTENT_URI, projection, ATTENDEES_WHERE, attArgs /* selection args */, in query()
1751 public static final Cursor query(ContentResolver cr, String[] projection, in query() argument
1756 return cr.query(builder.build(), projection, WHERE_CALENDARS_SELECTED, in query()
1780 public static final Cursor query(ContentResolver cr, String[] projection, in query() argument
1786 return cr.query(builder.build(), projection, WHERE_CALENDARS_SELECTED, in query()
2030 public static final Cursor query(ContentResolver cr, int startDay, int numDays, in query() argument
2039 return cr.query(builder.build(), projection, SELECTION, in query()
2114 public static final Cursor query(ContentResolver cr, long eventId, String[] projection) { in query() argument
2116 return cr.query(CONTENT_URI, projection, REMINDERS_WHERE, remArgs /*selection args*/, in query()
[all …]
/frameworks/base/services/core/java/com/android/server/
DCertBlacklister.java57 public BlacklistObserver(String key, String name, String path, ContentResolver cr) { in BlacklistObserver() argument
63 mContentResolver = cr; in BlacklistObserver()
113 private BlacklistObserver buildPubkeyObserver(ContentResolver cr) { in buildPubkeyObserver() argument
117 cr); in buildPubkeyObserver()
120 private BlacklistObserver buildSerialObserver(ContentResolver cr) { in buildSerialObserver() argument
124 cr); in buildSerialObserver()
127 private void registerObservers(ContentResolver cr) { in registerObservers() argument
129 cr.registerContentObserver( in registerObservers()
132 buildPubkeyObserver(cr) in registerObservers()
136 cr.registerContentObserver( in registerObservers()
[all …]
/frameworks/rs/java/tests/RsCameraDemo/src/com/android/example/rscamera/
DMediaStoreSaver.java54 public static final String insertImage(ContentResolver cr, in insertImage() argument
72 url = cr.insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values); in insertImage()
75 OutputStream imageOut = cr.openOutputStream(url); in insertImage()
84 … Bitmap miniThumb = Images.Thumbnails.getThumbnail(cr, id, Images.Thumbnails.MINI_KIND, null); in insertImage()
86 storeThumbnail(cr, miniThumb, id, 50F, 50F, Images.Thumbnails.MICRO_KIND); in insertImage()
88 cr.delete(url, null, null); in insertImage()
93 cr.delete(url, null, null); in insertImage()
113 ContentResolver cr, in storeThumbnail() argument
140 Uri url = cr.insert(Images.Thumbnails.EXTERNAL_CONTENT_URI, values); in storeThumbnail()
143 OutputStream thumbOut = cr.openOutputStream(url); in storeThumbnail()
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/arm_neon_asm/
Dh264bsdWriteMacroblock.s30 cr RN 5 label
96 LDR cr, [image, #0x14]
122 VLD1 {qRow4, qRow5}, [data]! ;cr rows 0,1,2,3
124 VLD1 {qRow6, qRow7}, [data]! ;cr rows 4,5,6,7
127 VST1 {dRow8}, [cr@64], cwidth
130 VST1 {dRow9}, [cr@64], cwidth
133 VST1 {dRow10}, [cr@64], cwidth
136 VST1 {dRow11}, [cr@64], cwidth
139 VST1 {dRow12}, [cr@64], cwidth
142 VST1 {dRow13}, [cr@64], cwidth
[all …]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DDisplayAdjustmentUtils.java67 final ContentResolver cr = context.getContentResolver(); in hasAdjustments() local
69 if (Settings.Secure.getIntForUser(cr, in hasAdjustments()
74 if (Settings.Secure.getIntForUser(cr, in hasAdjustments()
86 final ContentResolver cr = context.getContentResolver(); in applyAdjustments() local
89 if (Settings.Secure.getIntForUser(cr, in applyAdjustments()
94 if (Settings.Secure.getIntForUser(cr, in applyAdjustments()
96 final int daltonizerMode = Settings.Secure.getIntForUser(cr, in applyAdjustments()
110 String matrix = Settings.Secure.getStringForUser(cr, in applyAdjustments()
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/arm_neon_asm_gcc/
Dh264bsdWriteMacroblock.S32 #define cr r5 macro
98 LDR cr, [image, #0x14]
129 VST1.8 {dRow8}, [cr,:64], cwidth
132 VST1.8 {dRow9}, [cr,:64], cwidth
135 VST1.8 {dRow10}, [cr,:64], cwidth
138 VST1.8 {dRow11}, [cr,:64], cwidth
141 VST1.8 {dRow12}, [cr,:64], cwidth
144 VST1.8 {dRow13}, [cr,:64], cwidth
146 VST1.8 {dRow14}, [cr,:64], cwidth
148 VST1.8 {dRow15}, [cr,:64]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
Dh264bsd_image.c87 u32 *lum, *cb, *cr; in h264bsdWriteMacroblock() local
103 cr = (u32*)image->cr; in h264bsdWriteMacroblock()
106 ASSERT(!((u32)cr&0x3)); in h264bsdWriteMacroblock()
138 *cr++ = tmp1; in h264bsdWriteMacroblock()
139 *cr++ = tmp2; in h264bsdWriteMacroblock()
140 cr += width-2; in h264bsdWriteMacroblock()
179 u8 *lum, *cb, *cr; in h264bsdWriteOutputBlocks() local
205 cr = (cb + picSize * 64); in h264bsdWriteOutputBlocks()
288 imageBlock = cr; in h264bsdWriteOutputBlocks()
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/
DAsmGenerator.java255 ClassReader cr = new ClassReader(is);
256 byte[] b = transform(cr, true);
257 name = classNameToEntryPath(transformName(cr.getClassName()));
262 ClassReader cr = entry.getValue();
263 byte[] b = transform(cr, true);
264 String name = classNameToEntryPath(transformName(cr.getClassName()));
269 ClassReader cr = entry.getValue();
270 byte[] b = transform(cr, true);
271 String name = classNameToEntryPath(transformName(cr.getClassName()));
344 byte[] transform(ClassReader cr, boolean stubNativesOnly) {
[all …]
DAsmAnalyzer.java144 ClassReader cr = new ClassReader(zip.getInputStream(entry)); in parseZip() local
145 String className = classReaderToClassName(cr); in parseZip()
146 classes.put(className, cr); in parseZip()
329 for (ClassReader cr : inOutKeepClasses.values()) { in findDeps()
330 visitor.setClassName(cr.getClassName()); in findDeps()
331 cr.accept(visitor, 0 /* flags */); in findDeps()
346 for (ClassReader cr : temp.values()) { in findDeps()
347 visitor.setClassName(cr.getClassName()); in findDeps()
348 cr.accept(visitor, 0 /* flags */); in findDeps()
434 ClassReader cr = mZipClasses.get(className); in considerName() local
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DComprehensionTlv.java51 protected ComprehensionTlv(int tag, boolean cr, int length, byte[] data, in ComprehensionTlv() argument
54 mCr = cr; in ComprehensionTlv()
122 boolean cr; // Comprehension required flag in decode()
138 cr = (tag & 0x8000) != 0; in decode()
145 cr = (tag & 0x80) != 0; in decode()
195 return new ComprehensionTlv(tag, cr, length, data, curIndex); in decode()
/frameworks/base/tools/layoutlib/create/tests/com/android/tools/layoutlib/create/
DDelegateClassAdapterTest.java94 ClassReader cr = new ClassReader(NATIVE_CLASS_NAME); in testNoOp() local
95 cr.accept(cv, 0 /* flags */); in testNoOp()
158 ClassReader cr = new ClassReader(NATIVE_CLASS_NAME); in testConstructorsNotSupported() local
159 cr.accept(cv, 0 /* flags */); in testConstructorsNotSupported()
172 ClassReader cr = new ClassReader(NATIVE_CLASS_NAME); in testDelegateNative() local
173 cr.accept(cv, 0 /* flags */); in testDelegateNative()
227 ClassReader cr = new ClassReader(OUTER_CLASS_NAME); in testDelegateInner() local
228 cr.accept(cvOuter, 0 /* flags */); in testDelegateInner()
235 cr = new ClassReader(INNER_CLASS_NAME); in testDelegateInner()
236 cr.accept(cvInner, 0 /* flags */); in testDelegateInner()
[all …]
DClassHasNativeVisitorTest.java38 ClassReader cr = new ClassReader(className); in testHasNative() local
40 cr.accept(cv, 0 /* flags */); in testHasNative()
50 ClassReader cr = new ClassReader(className); in testHasNoNative() local
52 cr.accept(cv, 0 /* flags */); in testHasNoNative()
DAsmAnalyzerTest.java105 ClassReader cr = mAa.findClass("mock_android.view.ViewGroup$LayoutParams", in testFindClass() local
108 assertNotNull(cr); in testFindClass()
109 assertEquals("mock_android/view/ViewGroup$LayoutParams", cr.getClassName()); in testFindClass()
112 assertArrayEquals(new ClassReader[] { cr }, found.values().toArray()); in testFindClass()
216 ClassReader cr = mAa.findClass("mock_android.widget.LinearLayout", zipClasses, keep); in testDependencyVisitor() local
220 cr.accept(visitor, 0 /* flags */); in testDependencyVisitor()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DIntRangeManager.java452 ClientRange cr = clients.get(0); in disableRange() local
453 if (cr.mStartId == startId && cr.mEndId == endId && cr.mClient.equals(client)) { in disableRange()
480 ClientRange cr = clients.get(crIndex); in disableRange() local
481 if (cr.mStartId == startId && cr.mEndId == endId && cr.mClient.equals(client)) { in disableRange()
496 clients.add(crIndex, cr); in disableRange()
497 range.mEndId = cr.mEndId; in disableRange()
568 if (cr.mEndId > largestEndId) { in disableRange()
569 largestEndId = cr.mEndId; in disableRange()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiSettingsStore.java137 final ContentResolver cr = mContext.getContentResolver(); in persistWifiState() local
139 Settings.Global.putInt(cr, Settings.Global.WIFI_ON, state); in persistWifiState()
208 final ContentResolver cr = mContext.getContentResolver(); in getPersistedWifiState() local
210 return Settings.Global.getInt(cr, Settings.Global.WIFI_ON); in getPersistedWifiState()
212 Settings.Global.putInt(cr, Settings.Global.WIFI_ON, WIFI_DISABLED); in getPersistedWifiState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/
DBrightnessController.java115 final ContentResolver cr = mContext.getContentResolver(); in startObserving() local
116 cr.unregisterContentObserver(this); in startObserving()
117 cr.registerContentObserver( in startObserving()
120 cr.registerContentObserver( in startObserving()
123 cr.registerContentObserver( in startObserving()
129 final ContentResolver cr = mContext.getContentResolver(); in stopObserving() local
130 cr.unregisterContentObserver(this); in stopObserving()
/frameworks/base/core/java/android/view/accessibility/
DCaptioningManager.java479 public static CaptionStyle getCustomStyle(ContentResolver cr) { in getCustomStyle() argument
482 cr, Secure.ACCESSIBILITY_CAPTIONING_FOREGROUND_COLOR, defStyle.foregroundColor); in getCustomStyle()
484 cr, Secure.ACCESSIBILITY_CAPTIONING_BACKGROUND_COLOR, defStyle.backgroundColor); in getCustomStyle()
486 cr, Secure.ACCESSIBILITY_CAPTIONING_EDGE_TYPE, defStyle.edgeType); in getCustomStyle()
488 cr, Secure.ACCESSIBILITY_CAPTIONING_EDGE_COLOR, defStyle.edgeColor); in getCustomStyle()
490 cr, Secure.ACCESSIBILITY_CAPTIONING_WINDOW_COLOR, defStyle.windowColor); in getCustomStyle()
492 String rawTypeface = Secure.getString(cr, Secure.ACCESSIBILITY_CAPTIONING_TYPEFACE); in getCustomStyle()
/frameworks/base/core/jni/android/graphics/
DYuvToJpegEncoder.cpp78 JSAMPROW cr[8]; in compress() local
82 planes[2] = cr; in compress()
107 cr[i/2] = vRows + offset; in compress()
154 JSAMPROW cr[16]; in compress() local
158 planes[2] = cr; in compress()
181 cr[i] = vRows + offset; in compress()
/frameworks/base/services/core/java/com/android/server/pm/
DUserRestrictionsUtils.java334 final ContentResolver cr = context.getContentResolver(); in applyUserRestriction() local
340 android.provider.Settings.Secure.putIntForUser(cr, in applyUserRestriction()
355 android.provider.Settings.Global.putStringForUser(cr, in applyUserRestriction()
362 android.provider.Settings.Global.putStringForUser(cr, in applyUserRestriction()
368 android.provider.Settings.Secure.putIntForUser(cr, in applyUserRestriction()
379 android.provider.Settings.Global.putStringForUser(cr, in applyUserRestriction()
399 android.provider.Settings.Secure.putIntForUser(cr, in applyUserRestriction()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DDropBoxTest.java47 ContentResolver cr = getContext().getContentResolver(); in tearDown() local
48 Settings.Global.putString(cr, Settings.Global.DROPBOX_AGE_SECONDS, ""); in tearDown()
49 Settings.Global.putString(cr, Settings.Global.DROPBOX_MAX_FILES, ""); in tearDown()
50 Settings.Global.putString(cr, Settings.Global.DROPBOX_QUOTA_KB, ""); in tearDown()
51 Settings.Global.putString(cr, Settings.Global.DROPBOX_TAG_PREFIX + "DropBoxTest", ""); in tearDown()
261 ContentResolver cr = getContext().getContentResolver(); in testIsTagEnabled() local
262 Settings.Global.putString(cr, Settings.Global.DROPBOX_TAG_PREFIX + "DropBoxTest", in testIsTagEnabled()
268 Settings.Global.putString(cr, Settings.Global.DROPBOX_TAG_PREFIX + "DropBoxTest", in testIsTagEnabled()
336 ContentResolver cr = getContext().getContentResolver(); in testSizeLimits() local
337 Settings.Global.putString(cr, Settings.Global.DROPBOX_QUOTA_KB, Integer.toString(kb)); in testSizeLimits()
[all …]
/frameworks/av/media/ndk/
DNdkImage.cpp352 uint8_t* cr = nullptr; in getPlaneData() local
371 cr = mBuffer->data + (mBuffer->stride * mBuffer->height); in getPlaneData()
372 cb = cr + 1; in getPlaneData()
378 (planeIdx == 1) ? cb : cr; in getPlaneData()
390 cr = mBuffer->data + ySize; in getPlaneData()
392 cb = cr + cSize; in getPlaneData()
395 (planeIdx == 1) ? cb : cr; in getPlaneData()

12345