Home
last modified time | relevance | path

Searched refs:c (Results 1 – 25 of 485) sorted by relevance

12345678910>>...20

/packages/apps/Email/tests/src/com/android/email/activity/
DAccountSelectorAdapterTest.java99 AccountSelectorAdapter.CursorWithExtras c = createCursorWithExtras(); in testCursorWithExtras_setAccountMailboxInfo() local
100 c.setAccountMailboxInfo(context, a1.mId, Mailbox.NO_MAILBOX); in testCursorWithExtras_setAccountMailboxInfo()
102 assertTrue(c.accountExists()); in testCursorWithExtras_setAccountMailboxInfo()
103 assertEquals(a1.mId, c.getAccountId()); in testCursorWithExtras_setAccountMailboxInfo()
104 assertEquals("a1", c.getAccountDisplayName()); in testCursorWithExtras_setAccountMailboxInfo()
105 assertEquals(Mailbox.NO_MAILBOX, c.getMailboxId()); in testCursorWithExtras_setAccountMailboxInfo()
106 assertNull(c.getMailboxDisplayName()); in testCursorWithExtras_setAccountMailboxInfo()
107 assertEquals(0, c.getMailboxMessageCount()); in testCursorWithExtras_setAccountMailboxInfo()
110 c = createCursorWithExtras(); in testCursorWithExtras_setAccountMailboxInfo()
111 c.setAccountMailboxInfo(context, a1.mId, m1.mId); in testCursorWithExtras_setAccountMailboxInfo()
[all …]
DMailboxFragmentAdapterTest.java47 final Context c = mMockContext; in testBuildCombinedMailboxes() local
50 Account a1 = ProviderTestUtils.setupAccount("a1", true, c); in testBuildCombinedMailboxes()
51 Account a2 = ProviderTestUtils.setupAccount("a2", true, c); in testBuildCombinedMailboxes()
52 Account a3 = ProviderTestUtils.setupAccount("a3", true, c); in testBuildCombinedMailboxes()
54 Mailbox b1i = ProviderTestUtils.setupMailbox("box1i", a1.mId, true, c, Mailbox.TYPE_INBOX); in testBuildCombinedMailboxes()
55 Mailbox b2i = ProviderTestUtils.setupMailbox("box2i", a2.mId, true, c, Mailbox.TYPE_INBOX); in testBuildCombinedMailboxes()
56 Mailbox b3i = ProviderTestUtils.setupMailbox("box3i", a3.mId, true, c, Mailbox.TYPE_INBOX); in testBuildCombinedMailboxes()
57 Mailbox b1o = ProviderTestUtils.setupMailbox("box1i", a1.mId, true, c, Mailbox.TYPE_OUTBOX); in testBuildCombinedMailboxes()
58 Mailbox b2o = ProviderTestUtils.setupMailbox("box2i", a2.mId, true, c, Mailbox.TYPE_OUTBOX); in testBuildCombinedMailboxes()
59 Mailbox b1d = ProviderTestUtils.setupMailbox("box1d", a1.mId, true, c, Mailbox.TYPE_DRAFTS); in testBuildCombinedMailboxes()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/
Dchar_utils.h25 inline static bool isAsciiUpper(unsigned short c) { in isAsciiUpper() argument
28 return (c >= 'A' && c <= 'Z'); in isAsciiUpper()
31 inline static unsigned short toAsciiLower(unsigned short c) { in toAsciiLower() argument
32 return c - 'A' + 'a'; in toAsciiLower()
35 inline static bool isAscii(unsigned short c) { in isAscii() argument
36 return isascii(static_cast<int>(c)) != 0; in isAscii()
39 unsigned short latin_tolower(const unsigned short c);
51 inline static unsigned short toBaseChar(unsigned short c) { in toBaseChar() argument
52 if (c < BASE_CHARS_SIZE) { in toBaseChar()
53 return BASE_CHARS[c]; in toBaseChar()
[all …]
/packages/apps/Browser/tests/src/com/android/browser/tests/
DBP1to2UpgradeTests.java55 Cursor c = mBp1.query(Browser.BOOKMARKS_URI, in testStockUpgrade() local
58 ArrayList<String> urls = new ArrayList<String>(c.getCount()); in testStockUpgrade()
59 while (c.moveToNext()) { in testStockUpgrade()
60 urls.add(c.getString(0)); in testStockUpgrade()
62 c.close(); in testStockUpgrade()
64 c = getMockContentResolver().query(Browser.BOOKMARKS_URI, in testStockUpgrade()
67 assertEquals(urls.size(), c.getCount()); in testStockUpgrade()
69 while (c.moveToNext()) { in testStockUpgrade()
70 assertEquals(urls.get(i++), c.getString(0)); in testStockUpgrade()
72 c.close(); in testStockUpgrade()
[all …]
DBookmarksTests.java43 Cursor c = null; in testQueryCombinedForUrl() local
47 c = Bookmarks.queryCombinedForUrl(cr, null, url); in testQueryCombinedForUrl()
48 assertEquals(1, c.getCount()); in testQueryCombinedForUrl()
49 assertTrue(c.moveToFirst()); in testQueryCombinedForUrl()
50 assertEquals(url, c.getString(0)); in testQueryCombinedForUrl()
51 c.close(); in testQueryCombinedForUrl()
55 c = Bookmarks.queryCombinedForUrl(cr, null, url); in testQueryCombinedForUrl()
56 assertEquals(0, c.getCount()); in testQueryCombinedForUrl()
57 assertFalse(c.moveToFirst()); in testQueryCombinedForUrl()
58 c.close(); in testQueryCombinedForUrl()
[all …]
DBP2ProviderTests.java85 Cursor c = getMockContentResolver().query(insertedUri, in doTestIsValidParent() local
88 assertNotNull(c); in doTestIsValidParent()
89 assertTrue(c.moveToFirst()); in doTestIsValidParent()
90 long insertedParentId = c.getLong(INDEX_PARENT); in doTestIsValidParent()
91 String insertedAccountName = c.getString(INDEX_ACCOUNT_NAME); in doTestIsValidParent()
92 String insertedAccountType = c.getString(INDEX_ACCOUNT_TYPE); in doTestIsValidParent()
103 c.close(); in doTestIsValidParent()
104 c = getMockContentResolver().query(insertedUri, in doTestIsValidParent()
106 assertNotNull(c); in doTestIsValidParent()
107 assertTrue(c.moveToFirst()); in doTestIsValidParent()
[all …]
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DtrsMatrix.cpp24 void mult33d(double a[3][3], double b[3][3], double c[3][3]) in mult33d()
26 a[0][0] = b[0][0]*c[0][0] + b[0][1]*c[1][0] + b[0][2]*c[2][0]; in mult33d()
27 a[0][1] = b[0][0]*c[0][1] + b[0][1]*c[1][1] + b[0][2]*c[2][1]; in mult33d()
28 a[0][2] = b[0][0]*c[0][2] + b[0][1]*c[1][2] + b[0][2]*c[2][2]; in mult33d()
29 a[1][0] = b[1][0]*c[0][0] + b[1][1]*c[1][0] + b[1][2]*c[2][0]; in mult33d()
30 a[1][1] = b[1][0]*c[0][1] + b[1][1]*c[1][1] + b[1][2]*c[2][1]; in mult33d()
31 a[1][2] = b[1][0]*c[0][2] + b[1][1]*c[1][2] + b[1][2]*c[2][2]; in mult33d()
32 a[2][0] = b[2][0]*c[0][0] + b[2][1]*c[1][0] + b[2][2]*c[2][0]; in mult33d()
33 a[2][1] = b[2][0]*c[0][1] + b[2][1]*c[1][1] + b[2][2]*c[2][1]; in mult33d()
34 a[2][2] = b[2][0]*c[0][2] + b[2][1]*c[1][2] + b[2][2]*c[2][2]; in mult33d()
/packages/apps/Camera/jni/feature_mos/src/mosaic/
DtrsMatrix.cpp24 void mult33d(double a[3][3], double b[3][3], double c[3][3]) in mult33d()
26 a[0][0] = b[0][0]*c[0][0] + b[0][1]*c[1][0] + b[0][2]*c[2][0]; in mult33d()
27 a[0][1] = b[0][0]*c[0][1] + b[0][1]*c[1][1] + b[0][2]*c[2][1]; in mult33d()
28 a[0][2] = b[0][0]*c[0][2] + b[0][1]*c[1][2] + b[0][2]*c[2][2]; in mult33d()
29 a[1][0] = b[1][0]*c[0][0] + b[1][1]*c[1][0] + b[1][2]*c[2][0]; in mult33d()
30 a[1][1] = b[1][0]*c[0][1] + b[1][1]*c[1][1] + b[1][2]*c[2][1]; in mult33d()
31 a[1][2] = b[1][0]*c[0][2] + b[1][1]*c[1][2] + b[1][2]*c[2][2]; in mult33d()
32 a[2][0] = b[2][0]*c[0][0] + b[2][1]*c[1][0] + b[2][2]*c[2][0]; in mult33d()
33 a[2][1] = b[2][0]*c[0][1] + b[2][1]*c[1][1] + b[2][2]*c[2][1]; in mult33d()
34 a[2][2] = b[2][0]*c[0][2] + b[2][1]*c[1][2] + b[2][2]*c[2][2]; in mult33d()
/packages/apps/Camera/jni/feature_stab/db_vlvm/
Ddb_utilities_geometry.h31 inline void db_PointCentroid2D(double c[2],const double *X,int nr_points) in db_PointCentroid2D()
45 c[0]=cx*m; in db_PointCentroid2D()
46 c[1]=cy*m; in db_PointCentroid2D()
48 else c[0]=c[1]=0; in db_PointCentroid2D()
51 inline void db_PointCentroid2D(double c[2],const double * const *X,int nr_points) in db_PointCentroid2D()
67 c[0]=cx*m; in db_PointCentroid2D()
68 c[1]=cy*m; in db_PointCentroid2D()
70 else c[0]=c[1]=0; in db_PointCentroid2D()
75 inline void db_PointCentroid3D(double c[3],const double *X,int nr_points) in db_PointCentroid3D()
90 c[0]=cx*m; in db_PointCentroid3D()
[all …]
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_utilities_geometry.h31 inline void db_PointCentroid2D(double c[2],const double *X,int nr_points) in db_PointCentroid2D()
45 c[0]=cx*m; in db_PointCentroid2D()
46 c[1]=cy*m; in db_PointCentroid2D()
48 else c[0]=c[1]=0; in db_PointCentroid2D()
51 inline void db_PointCentroid2D(double c[2],const double * const *X,int nr_points) in db_PointCentroid2D()
67 c[0]=cx*m; in db_PointCentroid2D()
68 c[1]=cy*m; in db_PointCentroid2D()
70 else c[0]=c[1]=0; in db_PointCentroid2D()
75 inline void db_PointCentroid3D(double c[3],const double *X,int nr_points) in db_PointCentroid3D()
90 c[0]=cx*m; in db_PointCentroid3D()
[all …]
/packages/apps/Email/tests/src/com/android/emailcommon/provider/
DMailboxTests.java78 private static Message createMessage(Context c, Mailbox b, boolean starred, boolean read, in createMessage() argument
81 "1", b.mAccountKey, b.mId, true, false, c, starred, read); in createMessage()
83 message.save(c); in createMessage()
95 final Context c = mMockContext; in testSave() local
97 Account account1 = ProviderTestUtils.setupAccount("mailbox-save", true, c); in testSave()
99 Mailbox box1 = ProviderTestUtils.setupMailbox("box1", account1Id, true, c); in testSave()
102 Mailbox box2 = Mailbox.restoreMailboxWithId(c, box1Id); in testSave()
111 final Context c = mMockContext; in testDelete() local
113 Account account1 = ProviderTestUtils.setupAccount("mailbox-delete", true, c); in testDelete()
115 Mailbox box1 = ProviderTestUtils.setupMailbox("box1", account1Id, true, c); in testDelete()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DStringUtilsTests.java104 final int c = TextUtils.CAP_MODE_CHARACTERS; in allPathsForCaps() local
107 onePathForCaps(cs, expectedResult, c | w | s, l, hasSpaceBefore); in allPathsForCaps()
109 onePathForCaps(cs, expectedResult, c | s, l, hasSpaceBefore); in allPathsForCaps()
110 onePathForCaps(cs, expectedResult, c | w, l, hasSpaceBefore); in allPathsForCaps()
111 onePathForCaps(cs, expectedResult, c, l, hasSpaceBefore); in allPathsForCaps()
117 final int c = TextUtils.CAP_MODE_CHARACTERS; in testGetCapsMode() local
121 allPathsForCaps("", c | w | s, l, false); in testGetCapsMode()
122 allPathsForCaps("Word", c, l, false); in testGetCapsMode()
123 allPathsForCaps("Word.", c, l, false); in testGetCapsMode()
124 allPathsForCaps("Word ", c | w, l, false); in testGetCapsMode()
[all …]
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/provider/
DMockProviderTests.java117 Cursor c = mMockResolver.query(MockProvider.uri(uri), PONY_PROJECTION, null, null, null); in testInsertQueryandDelete() local
118 assertNotNull(c); in testInsertQueryandDelete()
119 assertEquals(2, c.getCount()); in testInsertQueryandDelete()
122 while (c.moveToNext()) { in testInsertQueryandDelete()
123 String name = c.getString(PONY_NAME); in testInsertQueryandDelete()
125 assertEquals("Flicka", c.getString(PONY_NAME)); in testInsertQueryandDelete()
126 assertEquals("wayward", c.getString(PONY_TYPE)); in testInsertQueryandDelete()
127 assertEquals(4, c.getInt(PONY_LEGS)); in testInsertQueryandDelete()
128 assertEquals(1, c.getInt(PONY_CAN_RIDE)); in testInsertQueryandDelete()
129 flickaId = c.getLong(PONY_ID); in testInsertQueryandDelete()
[all …]
DExchangeDirectoryProviderTests.java59 Cursor c = provider.buildGalResultCursor(GAL_RESULT_PROJECTION, result); in testBuildSimpleGalResultCursor() local
60 assertNotNull(c); in testBuildSimpleGalResultCursor()
61 assertEquals(MatrixCursor.class, c.getClass()); in testBuildSimpleGalResultCursor()
62 assertEquals(4, c.getCount()); in testBuildSimpleGalResultCursor()
65 assertTrue(c.moveToNext()); in testBuildSimpleGalResultCursor()
66 assertEquals(data.displayName, c.getString(GAL_RESULT_COLUMN_DISPLAY_NAME)); in testBuildSimpleGalResultCursor()
67 assertEquals(data.emailAddress, c.getString(GAL_RESULT_COLUMN_EMAIL_ADDRESS)); in testBuildSimpleGalResultCursor()
68 assertNull(c.getString(GAL_RESULT_COLUMN_CONTENT_TYPE)); in testBuildSimpleGalResultCursor()
102 Cursor c = provider.buildGalResultCursor(GAL_RESULT_PROJECTION, result); in testDisplayNameLogic() local
103 assertNotNull(c); in testDisplayNameLogic()
[all …]
/packages/apps/Exchange/tests/src/com/android/exchange/provider/
DMockProviderTests.java117 Cursor c = mMockResolver.query(MockProvider.uri(uri), PONY_PROJECTION, null, null, null); in testInsertQueryandDelete() local
118 assertNotNull(c); in testInsertQueryandDelete()
119 assertEquals(2, c.getCount()); in testInsertQueryandDelete()
122 while (c.moveToNext()) { in testInsertQueryandDelete()
123 String name = c.getString(PONY_NAME); in testInsertQueryandDelete()
125 assertEquals("Flicka", c.getString(PONY_NAME)); in testInsertQueryandDelete()
126 assertEquals("wayward", c.getString(PONY_TYPE)); in testInsertQueryandDelete()
127 assertEquals(4, c.getInt(PONY_LEGS)); in testInsertQueryandDelete()
128 assertEquals(1, c.getInt(PONY_CAN_RIDE)); in testInsertQueryandDelete()
129 flickaId = c.getLong(PONY_ID); in testInsertQueryandDelete()
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DJavaNetHttpHelper.java83 HttpURLConnection c = null; in get() local
85 c = createConnection(url, requestHeaders); in get()
86 c.setRequestMethod("GET"); in get()
87 c.connect(); in get()
88 return getResponseFrom(c); in get()
90 if (c != null) { in get()
91 c.disconnect(); in get()
103 HttpURLConnection c = null; in post() local
110 c = createConnection(url, requestHeaders); in post()
111 c.setDoOutput(content != null); in post()
[all …]
/packages/apps/Gallery2/jni/
DAndroid.mk28 LOCAL_SRC_FILES := filters/bw.c \
29 filters/gradient.c \
30 filters/saturated.c \
31 filters/exposure.c \
32 filters/contrast.c \
33 filters/hue.c \
34 filters/shadows.c \
35 filters/hsv.c \
36 filters/vibrance.c \
37 filters/geometry.c \
[all …]
/packages/apps/Exchange/exchange2/src/com/android/exchange/utility/
DUriCodec.java39 protected abstract boolean isRetained(char c); in isRetained() argument
104 char c = s.charAt(i); in appendEncoded() local
105 if ((c >= 'a' && c <= 'z') in appendEncoded()
106 || (c >= 'A' && c <= 'Z') in appendEncoded()
107 || (c >= '0' && c <= '9') in appendEncoded()
108 || isRetained(c) in appendEncoded()
109 || (c == '%' && isPartiallyEncoded)) { in appendEncoded()
114 if (c == '%' && isPartiallyEncoded) { in appendEncoded()
118 } else if (c == ' ') { in appendEncoded()
121 builder.append(c); in appendEncoded()
[all …]
/packages/apps/Gallery2/jni/filters/
Dcontrast.c20 unsigned char clamp(int c) in clamp() argument
23 c &= ~(c >> 31); in clamp()
24 c -= N; in clamp()
25 c &= (c >> 31); in clamp()
26 c += N; in clamp()
27 return (unsigned char) c; in clamp()
38 float c = 127-m*127; in JNIFUNCF() local
41 rgb[RED] = clamp((int)(m*rgb[RED]+c)); in JNIFUNCF()
42 rgb[GREEN] = clamp((int)(m*rgb[GREEN]+c)); in JNIFUNCF()
43 rgb[BLUE] = clamp((int)(m*rgb[BLUE]+c)); in JNIFUNCF()
/packages/apps/Browser/src/com/android/browser/
DAutofillHandler.java98 Cursor c = autoFillDb.getProfile(mAutoFillActiveProfileId); in run() local
100 if (c.getCount() > 0) { in run()
101 c.moveToFirst(); in run()
103 String fullName = c.getString(c.getColumnIndex( in run()
105 String email = c.getString(c.getColumnIndex( in run()
107 String company = c.getString(c.getColumnIndex( in run()
109 String addressLine1 = c.getString(c.getColumnIndex( in run()
111 String addressLine2 = c.getString(c.getColumnIndex( in run()
113 String city = c.getString(c.getColumnIndex( in run()
115 String state = c.getString(c.getColumnIndex( in run()
[all …]
/packages/apps/Mms/src/com/android/mms/data/
DConversation.java339 Cursor c = mContext.getContentResolver().query(threadUri, in markAsRead() local
341 if (c != null) { in markAsRead()
343 needUpdate = c.getCount() > 0; in markAsRead()
345 c.close(); in markAsRead()
568 for (Contact c : list) { in getOrCreateThreadId()
569 cacheContact = Contact.get(c.getNumber(), false); in getOrCreateThreadId()
573 recipients.add(c.getNumber()); in getOrCreateThreadId()
864 Cursor c, boolean allowQuery) { in fillFromCursor() argument
866 conv.mThreadId = c.getLong(ID); in fillFromCursor()
867 conv.mDate = c.getLong(DATE); in fillFromCursor()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactLookupKey.java132 char c = 0; in parse() local
137 c = string.charAt(offset++); in parse()
138 if (c < '0' || c > '9') { in parse()
141 hashCode = hashCode * 10 + (c - '0'); in parse()
145 if (c == 'i') { in parse()
148 } else if (c == 'e') { in parse()
151 } else if (c == 'n') { in parse()
153 } else if (c == 'r') { in parse()
165 c = string.charAt(offset++); in parse()
167 if (c == '.') { in parse()
[all …]
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/
DAndroid.mk11 OpenWnnDictionaryImplJni.c \
12 engine/ndapi.c \
13 engine/neapi.c \
14 engine/ndbdic.c \
15 engine/ndfdic.c \
16 engine/ndldic.c \
17 engine/ndrdic.c \
18 engine/necode.c \
19 engine/ndcommon.c \
20 engine/nj_str.c
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DBaseContactsProvider2Test.java603 Cursor c = queryRawContact(rawContactId); in queryContactId() local
604 assertTrue(c.moveToFirst()); in queryContactId()
605 long contactId = c.getLong(c.getColumnIndex(RawContacts.CONTACT_ID)); in queryContactId()
606 c.close(); in queryContactId()
611 Cursor c = queryContact(contactId); in queryPhotoId() local
612 assertTrue(c.moveToFirst()); in queryPhotoId()
613 long photoId = c.getInt(c.getColumnIndex(Contacts.PHOTO_ID)); in queryPhotoId()
614 c.close(); in queryPhotoId()
624 Cursor c = queryRawContact(rawContactId); in queryRawContactIsStarred() local
626 assertTrue(c.moveToFirst()); in queryRawContactIsStarred()
[all …]
/packages/apps/Email/src/com/android/email/activity/
DAccountSelectorAdapter.java138 Cursor c = getCursor(); in getView() local
139 c.moveToPosition(position); in getView()
141 if (c.getInt(c.getColumnIndex(ROW_TYPE)) == ROW_TYPE_HEADER) { in getView()
144 final String displayName = getDisplayName(c); in getView()
153 final String displayName = getDisplayName(c); in getView()
154 final String emailAddress = getAccountEmailAddress(c); in getView()
159 boolean isAccount = isAccountItem(c); in getView()
167 long id = getId(c); in getView()
171 getAccountUnreadCount(c), true)); in getView()
176 ((CursorWithExtras) c).getAccountId() == Account.ACCOUNT_ID_COMBINED_VIEW; in getView()
[all …]

12345678910>>...20