Home
last modified time | relevance | path

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

123

/frameworks/base/core/java/android/provider/
DBrowser.java236 public static final Cursor getAllBookmarks(ContentResolver cr) throws in getAllBookmarks() argument
238 return cr.query(Bookmarks.CONTENT_URI, in getAllBookmarks()
251 public static final Cursor getAllVisitedUrls(ContentResolver cr) throws in getAllVisitedUrls() argument
253 return cr.query(Combined.CONTENT_URI, in getAllVisitedUrls()
262 private static final Cursor getVisitedLike(ContentResolver cr, String url) { in getVisitedLike() argument
297 return cr.query(History.CONTENT_URI, new String[] { History._ID, History.VISITS }, in getVisitedLike()
311 public static final void updateVisitedHistory(ContentResolver cr, in updateVisitedHistory() argument
316 c = getVisitedLike(cr, url); in updateVisitedHistory()
326 cr.update(ContentUris.withAppendedId(History.CONTENT_URI, c.getLong(0)), in updateVisitedHistory()
329 truncateHistory(cr); in updateVisitedHistory()
[all …]
DMediaStore.java535 …private static Bitmap getMiniThumbFromFile(Cursor c, Uri baseUri, ContentResolver cr, BitmapFactor… in getMiniThumbFromFile() argument
542 ParcelFileDescriptor pfdInput = cr.openFileDescriptor(thumbUri, "r"); in getMiniThumbFromFile()
567 static void cancelThumbnailRequest(ContentResolver cr, long origId, Uri baseUri, in cancelThumbnailRequest() argument
574 c = cr.query(cancelUri, PROJECTION, null, null, null); in cancelThumbnailRequest()
595 static Bitmap getThumbnail(ContentResolver cr, long origId, long groupId, int kind, in getThumbnail() argument
623 c = cr.query(baseUri, PROJECTION, column + origId, null, null); in getThumbnail()
625 bitmap = getMiniThumbFromFile(c, baseUri, cr, options); in getThumbnail()
637 c = cr.query(blockingUri, PROJECTION, null, null, null); in getThumbnail()
656 bitmap = getMiniThumbFromFile(c, baseUri, cr, options); in getThumbnail()
671 c = cr.query(uri, PROJECTION, null, null, null); in getThumbnail()
[all …]
DSettings.java759 private IContentProvider lazyGetProvider(ContentResolver cr) { in lazyGetProvider() argument
764 cp = mContentProvider = cr.acquireProvider(mUri.getAuthority()); in lazyGetProvider()
770 public boolean putStringForUser(ContentResolver cr, String name, String value, in putStringForUser() argument
776 IContentProvider cp = lazyGetProvider(cr); in putStringForUser()
785 public String getStringForUser(ContentResolver cr, String name, final int userHandle) { in getStringForUser() argument
811 IContentProvider cp = lazyGetProvider(cr); in getStringForUser()
1072 public static int getInt(ContentResolver cr, String name, int def) { in getInt() argument
1073 return getIntForUser(cr, name, def, UserHandle.myUserId()); in getInt()
1077 public static int getIntForUser(ContentResolver cr, String name, int def, int userHandle) { in getIntForUser() argument
1078 String v = getStringForUser(cr, name, userHandle); in getIntForUser()
[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()
DDrmStore.java102 public static final Intent addDrmFile(ContentResolver cr, File file, String title) { in addDrmFile() argument
115 result = addDrmFile(cr, fis, title); in addDrmFile()
138 public static final Intent addDrmFile(ContentResolver cr, FileInputStream fis, String title) { in addDrmFile() argument
167 Uri uri = cr.insert(contentUri, values); in addDrmFile()
169 os = cr.openOutputStream(uri); in addDrmFile()
DCalendarContract.java864 public static final Cursor query(ContentResolver cr, long eventId, String[] projection) { in query() argument
866 return cr.query(CONTENT_URI, projection, ATTENDEES_WHERE, attArgs /* selection args */, in query()
1737 public static final Cursor query(ContentResolver cr, String[] projection, in query() argument
1742 return cr.query(builder.build(), projection, WHERE_CALENDARS_SELECTED, in query()
1766 public static final Cursor query(ContentResolver cr, String[] projection, in query() argument
1772 return cr.query(builder.build(), projection, WHERE_CALENDARS_SELECTED, in query()
2016 public static final Cursor query(ContentResolver cr, int startDay, int numDays, in query() argument
2025 return cr.query(builder.build(), projection, SELECTION, in query()
2100 public static final Cursor query(ContentResolver cr, long eventId, String[] projection) { in query() argument
2102 return cr.query(CONTENT_URI, projection, REMINDERS_WHERE, remArgs /*selection args*/, in query()
[all …]
/frameworks/base/services/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 …]
DDockObserver.java136 final ContentResolver cr = mContext.getContentResolver(); in handleDockStateChange() local
137 if (Settings.Global.getInt(cr, in handleDockStateChange()
150 if (Settings.Global.getInt(cr, in handleDockStateChange()
172 final String soundPath = Settings.Global.getString(cr, whichSound); in handleDockStateChange()
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/
DAsmGenerator.java201 ClassReader cr = new ClassReader(is);
202 byte[] b = transform(cr, true /* stubNativesOnly */);
203 name = classNameToEntryPath(transformName(cr.getClassName()));
208 ClassReader cr = entry.getValue();
209 byte[] b = transform(cr, true /* stubNativesOnly */);
210 String name = classNameToEntryPath(transformName(cr.getClassName()));
215 ClassReader cr = entry.getValue();
216 byte[] b = transform(cr, true /* stubNativesOnly */);
217 String name = classNameToEntryPath(transformName(cr.getClassName()));
287 byte[] transform(ClassReader cr, boolean stubNativesOnly) {
[all …]
DAsmAnalyzer.java115 ClassReader cr = new ClassReader(zip.getInputStream(entry)); in parseZip() local
116 String className = classReaderToClassName(cr); in parseZip()
117 classes.put(className, cr); in parseZip()
285 for (ClassReader cr : inOutKeepClasses.values()) { in findDeps()
286 cr.accept(visitor, 0 /* flags */); in findDeps()
301 for (ClassReader cr : temp.values()) { in findDeps()
302 cr.accept(visitor, 0 /* flags */); in findDeps()
375 ClassReader cr = mZipClasses.get(className); in considerName() local
376 if (cr == null) { in considerName()
394 mOutDeps.put(className, cr); in considerName()
[all …]
/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/av/media/libstagefright/codecs/on2/h264dec/source/arm_neon_asm_gcc/
Dh264bsdWriteMacroblock.S32 #define cr r5 macro
98 LDR cr, [image, #0x14]
129 VST1 {dRow8}, [cr,:64], cwidth
132 VST1 {dRow9}, [cr,:64], cwidth
135 VST1 {dRow10}, [cr,:64], cwidth
138 VST1 {dRow11}, [cr,:64], cwidth
141 VST1 {dRow12}, [cr,:64], cwidth
144 VST1 {dRow13}, [cr,:64], cwidth
146 VST1 {dRow14}, [cr,:64], cwidth
148 VST1 {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/native/opengl/libs/GLES_trace/src/
Dgltrace_transport.cpp72 struct ucred cr; in acceptClientConnection() local
73 socklen_t cr_len = sizeof(cr); in acceptClientConnection()
74 if (getsockopt(clientSocket, SOL_SOCKET, SO_PEERCRED, &cr, &cr_len) != 0) { in acceptClientConnection()
81 if (cr.uid != AID_SHELL && cr.uid != AID_ROOT) { in acceptClientConnection()
82 ALOGE("Unknown peer type (%d), expected shell to be the peer", cr.uid); in acceptClientConnection()
/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/
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()
DDelegateClassAdapterTest.java93 ClassReader cr = new ClassReader(NATIVE_CLASS_NAME); in testNoOp() local
94 cr.accept(cv, 0 /* flags */); in testNoOp()
150 ClassReader cr = new ClassReader(NATIVE_CLASS_NAME); in testConstructorsNotSupported() local
151 cr.accept(cv, 0 /* flags */); in testConstructorsNotSupported()
164 ClassReader cr = new ClassReader(NATIVE_CLASS_NAME); in testDelegateNative() local
165 cr.accept(cv, 0 /* flags */); in testDelegateNative()
212 ClassReader cr = new ClassReader(OUTER_CLASS_NAME); in testDelegateInner() local
213 cr.accept(cvOuter, 0 /* flags */); in testDelegateInner()
220 cr = new ClassReader(INNER_CLASS_NAME); in testDelegateInner()
221 cr.accept(cvInner, 0 /* flags */); in testDelegateInner()
[all …]
DAsmAnalyzerTest.java91 ClassReader cr = mAa.findClass("mock_android.view.ViewGroup$LayoutParams", in testFindClass() local
94 assertNotNull(cr); in testFindClass()
95 assertEquals("mock_android/view/ViewGroup$LayoutParams", cr.getClassName()); in testFindClass()
98 assertArrayEquals(new ClassReader[] { cr }, found.values().toArray()); in testFindClass()
190 ClassReader cr = mAa.findClass("mock_android.widget.TableLayout", zipClasses, keep); in testDependencyVisitor() local
194 cr.accept(visitor, 0 /* flags */); in testDependencyVisitor()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DIntRangeManager.java378 ClientRange cr = clients.get(0); in disableRange() local
379 if (cr.startId == startId && cr.endId == endId && cr.client.equals(client)) { in disableRange()
400 ClientRange cr = clients.get(crIndex); in disableRange() local
401 if (cr.startId == startId && cr.endId == endId && cr.client.equals(client)) { in disableRange()
488 if (cr.endId > largestEndId) { in disableRange()
489 largestEndId = cr.endId; in disableRange()
/frameworks/base/core/jni/android/graphics/
DYuvToJpegEncoder.cpp76 JSAMPROW cr[8]; in compress() local
80 planes[2] = cr; in compress()
105 cr[i/2] = vRows + offset; in compress()
152 JSAMPROW cr[16]; in compress() local
156 planes[2] = cr; in compress()
179 cr[i] = vRows + offset; in compress()
/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()
256 ContentResolver cr = getContext().getContentResolver(); in testIsTagEnabled() local
257 Settings.Global.putString(cr, Settings.Global.DROPBOX_TAG_PREFIX + "DropBoxTest", in testIsTagEnabled()
263 Settings.Global.putString(cr, Settings.Global.DROPBOX_TAG_PREFIX + "DropBoxTest", in testIsTagEnabled()
332 ContentResolver cr = getContext().getContentResolver(); in testSizeLimits() local
333 Settings.Global.putString(cr, Settings.Global.DROPBOX_QUOTA_KB, Integer.toString(kb)); in testSizeLimits()
[all …]
/frameworks/base/core/java/android/webkit/
DWebIconDatabaseClassic.java144 ContentResolver cr = (ContentResolver) map.get("contentResolver"); in bulkRequestIcons() local
149 c = cr.query( in bulkRequestIcons()
217 public void bulkRequestIconForPageUrl(ContentResolver cr, String where, in bulkRequestIconForPageUrl() argument
230 map.put("contentResolver", cr); in bulkRequestIconForPageUrl()
/frameworks/base/core/java/android/database/
DAbstractCursor.java353 public void setNotificationUri(ContentResolver cr, Uri notifyUri) { in setNotificationUri() argument
354 setNotificationUri(cr, notifyUri, UserHandle.myUserId()); in setNotificationUri()
358 public void setNotificationUri(ContentResolver cr, Uri notifyUri, int userHandle) { in setNotificationUri() argument
361 mContentResolver = cr; in setNotificationUri()
/frameworks/av/media/libstagefright/codecs/avc/enc/src/
Dblock.cpp722 void dct_chroma(AVCEncObject *encvid, uint8 *curC, uint8 *orgC, int cr) in dct_chroma() argument
740 if (cr) in dct_chroma()
822 run = encvid->runcdc + (cr << 2); in dct_chroma()
823 level = encvid->levelcdc + (cr << 2); in dct_chroma()
861 encvid->numcoefcdc[cr] = ncoeff; in dct_chroma()
898 if (cr) in dct_chroma()
984 currMB->nz_coeff[16+(cr<<1)] = 0; in dct_chroma()
985 currMB->nz_coeff[17+(cr<<1)] = 0; in dct_chroma()
986 currMB->nz_coeff[20+(cr<<1)] = 0; in dct_chroma()
987 currMB->nz_coeff[21+(cr<<1)] = 0; in dct_chroma()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DQuickSettingsModel.java122 final ContentResolver cr = mContext.getContentResolver(); in startObserving() local
123 cr.registerContentObserver( in startObserving()
140 final ContentResolver cr = mContext.getContentResolver(); in startObserving() local
141 cr.registerContentObserver( in startObserving()
158 final ContentResolver cr = mContext.getContentResolver(); in startObserving() local
159 cr.unregisterContentObserver(this); in startObserving()
160 cr.registerContentObserver( in startObserving()
163 cr.registerContentObserver( in startObserving()
544 final ContentResolver cr = mContext.getContentResolver(); in onBugreportChanged() local
547 enabled = (Settings.Secure.getInt(cr, Settings.Secure.BUGREPORT_IN_POWER_MENU) != 0); in onBugreportChanged()

123