/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
D | db_utilities_indexing.h | 88 inline int db_MaxIndex2(double s[2]) in db_MaxIndex2() 90 if(s[0]>=s[1]) return(0); in db_MaxIndex2() 94 inline int db_MaxIndex3(const double s[3]) in db_MaxIndex3() 99 best=s[0];pos=0; in db_MaxIndex3() 100 if(s[1]>best){best=s[1];pos=1;} in db_MaxIndex3() 101 if(s[2]>best){best=s[2];pos=2;} in db_MaxIndex3() 105 inline int db_MaxIndex4(const double s[4]) in db_MaxIndex4() 110 best=s[0];pos=0; in db_MaxIndex4() 111 if(s[1]>best){best=s[1];pos=1;} in db_MaxIndex4() 112 if(s[2]>best){best=s[2];pos=2;} in db_MaxIndex4() [all …]
|
D | db_utilities_linalg.cpp | 33 double s,temp; in db_CholeskyDecomp6x6() local 37 s=A[0]; in db_CholeskyDecomp6x6() 38 d[0]=((s>0.0)?sqrt(s):1.0); in db_CholeskyDecomp6x6() 46 s=A[7]-A[6]*A[6]; in db_CholeskyDecomp6x6() 47 d[1]=((s>0.0)?sqrt(s):1.0); in db_CholeskyDecomp6x6() 54 s=A[14]-A[12]*A[12]-A[13]*A[13]; in db_CholeskyDecomp6x6() 55 d[2]=((s>0.0)?sqrt(s):1.0); in db_CholeskyDecomp6x6() 61 s=A[21]-A[18]*A[18]-A[19]*A[19]-A[20]*A[20]; in db_CholeskyDecomp6x6() 62 d[3]=((s>0.0)?sqrt(s):1.0); in db_CholeskyDecomp6x6() 67 s=A[28]-A[24]*A[24]-A[25]*A[25]-A[26]*A[26]-A[27]*A[27]; in db_CholeskyDecomp6x6() [all …]
|
D | db_utilities_camera.h | 126 double s,mult; in db_OrthonormalizeRotation() local 128 s=db_sqr(R[0])+db_sqr(R[1])+db_sqr(R[2]); in db_OrthonormalizeRotation() 129 mult=sqrt(1.0/(s?s:1)); in db_OrthonormalizeRotation() 132 s=R[0]*R[3]+R[1]*R[4]+R[2]*R[5]; in db_OrthonormalizeRotation() 133 R[3]-=s*R[0]; R[4]-=s*R[1]; R[5]-=s*R[2]; in db_OrthonormalizeRotation() 135 s=db_sqr(R[3])+db_sqr(R[4])+db_sqr(R[5]); in db_OrthonormalizeRotation() 136 mult=sqrt(1.0/(s?s:1)); in db_OrthonormalizeRotation() 263 inline void db_MultiplyScaleOntoImageHomography(double H[9],double s) in db_MultiplyScaleOntoImageHomography() argument 266 H[0]*=s; in db_MultiplyScaleOntoImageHomography() 267 H[1]*=s; in db_MultiplyScaleOntoImageHomography() [all …]
|
/packages/apps/Camera/jni/feature_stab/db_vlvm/ |
D | db_utilities_indexing.h | 88 inline int db_MaxIndex2(double s[2]) in db_MaxIndex2() 90 if(s[0]>=s[1]) return(0); in db_MaxIndex2() 94 inline int db_MaxIndex3(const double s[3]) in db_MaxIndex3() 99 best=s[0];pos=0; in db_MaxIndex3() 100 if(s[1]>best){best=s[1];pos=1;} in db_MaxIndex3() 101 if(s[2]>best){best=s[2];pos=2;} in db_MaxIndex3() 105 inline int db_MaxIndex4(const double s[4]) in db_MaxIndex4() 110 best=s[0];pos=0; in db_MaxIndex4() 111 if(s[1]>best){best=s[1];pos=1;} in db_MaxIndex4() 112 if(s[2]>best){best=s[2];pos=2;} in db_MaxIndex4() [all …]
|
D | db_utilities_linalg.cpp | 33 double s,temp; in db_CholeskyDecomp6x6() local 37 s=A[0]; in db_CholeskyDecomp6x6() 38 d[0]=((s>0.0)?sqrt(s):1.0); in db_CholeskyDecomp6x6() 46 s=A[7]-A[6]*A[6]; in db_CholeskyDecomp6x6() 47 d[1]=((s>0.0)?sqrt(s):1.0); in db_CholeskyDecomp6x6() 54 s=A[14]-A[12]*A[12]-A[13]*A[13]; in db_CholeskyDecomp6x6() 55 d[2]=((s>0.0)?sqrt(s):1.0); in db_CholeskyDecomp6x6() 61 s=A[21]-A[18]*A[18]-A[19]*A[19]-A[20]*A[20]; in db_CholeskyDecomp6x6() 62 d[3]=((s>0.0)?sqrt(s):1.0); in db_CholeskyDecomp6x6() 67 s=A[28]-A[24]*A[24]-A[25]*A[25]-A[26]*A[26]-A[27]*A[27]; in db_CholeskyDecomp6x6() [all …]
|
D | db_utilities_camera.h | 126 double s,mult; in db_OrthonormalizeRotation() local 128 s=db_sqr(R[0])+db_sqr(R[1])+db_sqr(R[2]); in db_OrthonormalizeRotation() 129 mult=sqrt(1.0/(s?s:1)); in db_OrthonormalizeRotation() 132 s=R[0]*R[3]+R[1]*R[4]+R[2]*R[5]; in db_OrthonormalizeRotation() 133 R[3]-=s*R[0]; R[4]-=s*R[1]; R[5]-=s*R[2]; in db_OrthonormalizeRotation() 135 s=db_sqr(R[3])+db_sqr(R[4])+db_sqr(R[5]); in db_OrthonormalizeRotation() 136 mult=sqrt(1.0/(s?s:1)); in db_OrthonormalizeRotation() 263 inline void db_MultiplyScaleOntoImageHomography(double H[9],double s) in db_MultiplyScaleOntoImageHomography() argument 266 H[0]*=s; in db_MultiplyScaleOntoImageHomography() 267 H[1]*=s; in db_MultiplyScaleOntoImageHomography() [all …]
|
/packages/apps/Exchange/exchange2/src/com/android/exchange/utility/ |
D | UriCodec.java | 75 public static void validateSimple(String s, String legal) in validateSimple() argument 77 for (int i = 0; i < s.length(); i++) { in validateSimple() 78 char ch = s.charAt(i); in validateSimple() 83 throw new URISyntaxException(s, "Illegal character", i); in validateSimple() 96 private void appendEncoded(StringBuilder builder, String s, Charset charset, in appendEncoded() argument 98 if (s == null) { in appendEncoded() 103 for (int i = 0; i < s.length(); i++) { in appendEncoded() 104 char c = s.charAt(i); in appendEncoded() 111 appendHex(builder, s.substring(escapeStart, i), charset); in appendEncoded() 116 builder.append(s, i, i + 3); in appendEncoded() [all …]
|
/packages/apps/Browser/src/com/android/browser/ |
D | Preloader.java | 77 PreloaderSession s = null; in takeSession() local 79 s = mSession; in takeSession() 83 if (s != null) { in takeSession() 84 s.cancelTimeout(); in takeSession() 87 return s; in takeSession() 92 PreloaderSession s = getSession(id); in handlePreloadRequest() local 93 if (s == null) { in handlePreloadRequest() 99 s.touch(); // reset timer in handlePreloadRequest() 100 PreloadedTabControl tab = s.getTabControl(); in handlePreloadRequest() 110 PreloaderSession s = getSession(id); in cancelSearchBoxPreload() local [all …]
|
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/include/ |
D | nj_lib.h | 135 #define NJ_GET_CACHEOVER_FROM_SCACHE(s) ((s)->statusFlg & NJ_STATUSFLG_CACHEOVER) argument 136 #define NJ_GET_AIMAI_FROM_SCACHE(s) ((s)->statusFlg & NJ_STATUSFLG_AIMAI) argument 137 #define NJ_SET_CACHEOVER_TO_SCACHE(s) ((s)->statusFlg |= NJ_STATUSFLG_CACHEOVER) argument 138 #define NJ_SET_AIMAI_TO_SCACHE(s) ((s)->statusFlg |= NJ_STATUSFLG_AIMAI) argument 139 #define NJ_UNSET_CACHEOVER_TO_SCACHE(s) ((s)->statusFlg &= ~NJ_STATUSFLG_CACHEOVER) argument 140 #define NJ_UNSET_AIMAI_TO_SCACHE(s) ((s)->statusFlg &= ~NJ_STATUSFLG_AIMAI) argument 287 #define NJ_GET_FPOS_FROM_STEM(s) ((NJ_UINT16)((s)->stem.info1 >> 7)) argument 288 #define NJ_GET_BPOS_FROM_STEM(s) ((NJ_UINT16)((s)->stem.info2 >> 7)) argument 291 #define NJ_SET_FPOS_TO_STEM(s,v) ((s)->stem.info1 = ((s)->stem.info1 & 0x007F) | (NJ_UINT16)((v) <<… argument 292 #define NJ_GET_YLEN_FROM_STEM(s) ((NJ_UINT8)((s)->stem.info1 & 0x7F)) argument [all …]
|
/packages/apps/Email/tests/src/com/android/email/mail/store/imap/ |
D | ImapStringTest.java | 62 final ImapSimpleString s = new ImapSimpleString("AbcD"); in testBasics() local 63 assertFalse(s.isEmpty()); in testBasics() 64 assertEquals("AbcD", s.getString()); in testBasics() 65 assertEquals("AbcD", Utility.fromAscii(IOUtils.toByteArray(s.getAsStream()))); in testBasics() 67 assertFalse(s.isNumber()); in testBasics() 68 assertFalse(s.isDate()); in testBasics() 70 assertFalse(s.is(null)); in testBasics() 71 assertFalse(s.is("")); in testBasics() 72 assertTrue(s.is("abcd")); in testBasics() 73 assertFalse(s.is("abc")); in testBasics() [all …]
|
/packages/apps/Email/src/org/apache/james/mime4j/ |
D | MimeBoundaryInputStream.java | 39 private PushbackInputStream s = null; field in MimeBoundaryInputStream 51 public MimeBoundaryInputStream(InputStream s, String boundary) in MimeBoundaryInputStream() argument 54 this.s = new PushbackInputStream(s, boundary.length() + 4); in MimeBoundaryInputStream() 68 this.s.unread(b); in MimeBoundaryInputStream() 78 s.close(); in close() 128 int b1 = s.read(); in read() 129 int b2 = s.read(); in read() 138 s.unread(b2); in read() 150 int b = s.read(); in matchBoundary() 153 s.unread(b); in matchBoundary() [all …]
|
/packages/apps/Gallery2/tests/src/com/android/gallery3d/data/ |
D | PathTest.java | 41 String[] s = p.split(); in testSplit() local 42 assertEquals(2, s.length); in testSplit() 43 assertEquals("hello", s[0]); in testSplit() 44 assertEquals("world", s[1]); in testSplit() 70 String[] s = Path.splitSequence("{a,bb,ccc}"); in testSplitSequence() local 71 assertEquals(3, s.length); in testSplitSequence() 72 assertEquals("a", s[0]); in testSplitSequence() 73 assertEquals("bb", s[1]); in testSplitSequence() 74 assertEquals("ccc", s[2]); in testSplitSequence() 76 s = Path.splitSequence("{a,{bb,ccc},d}"); in testSplitSequence() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | StringUtilsTests.java | 106 final int s = TextUtils.CAP_MODE_SENTENCES; in allPathsForCaps() local 107 onePathForCaps(cs, expectedResult, c | w | s, l, hasSpaceBefore); in allPathsForCaps() 108 onePathForCaps(cs, expectedResult, w | s, l, hasSpaceBefore); in allPathsForCaps() 109 onePathForCaps(cs, expectedResult, c | s, l, hasSpaceBefore); in allPathsForCaps() 113 onePathForCaps(cs, expectedResult, s, l, hasSpaceBefore); in allPathsForCaps() 119 final int s = TextUtils.CAP_MODE_SENTENCES; in testGetCapsMode() local 121 allPathsForCaps("", c | w | s, l, false); in testGetCapsMode() 125 allPathsForCaps("Word. ", c | w | s, l, false); in testGetCapsMode() 127 allPathsForCaps("Word.. ", c | w | s, l, false); in testGetCapsMode() 128 allPathsForCaps("Word... ", c | w | s, l, false); in testGetCapsMode() [all …]
|
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/ |
D | ContactsSyncAdapter.java | 151 public void sendSyncOptions(Double protocolVersion, Serializer s, boolean initialSync) in sendSyncOptions() argument 156 s.start(Tags.SYNC_SUPPORTED); in sendSyncOptions() 157 s.tag(Tags.CONTACTS_FIRST_NAME); in sendSyncOptions() 158 s.tag(Tags.CONTACTS_LAST_NAME); in sendSyncOptions() 159 s.tag(Tags.CONTACTS_MIDDLE_NAME); in sendSyncOptions() 160 s.tag(Tags.CONTACTS_SUFFIX); in sendSyncOptions() 161 s.tag(Tags.CONTACTS_COMPANY_NAME); in sendSyncOptions() 162 s.tag(Tags.CONTACTS_JOB_TITLE); in sendSyncOptions() 163 s.tag(Tags.CONTACTS_EMAIL1_ADDRESS); in sendSyncOptions() 164 s.tag(Tags.CONTACTS_EMAIL2_ADDRESS); in sendSyncOptions() [all …]
|
D | Search.java | 83 Serializer s = new Serializer(); in searchMessages() local 84 s.start(Tags.SEARCH_SEARCH).start(Tags.SEARCH_STORE); in searchMessages() 85 s.data(Tags.SEARCH_NAME, "Mailbox"); in searchMessages() 86 s.start(Tags.SEARCH_QUERY).start(Tags.SEARCH_AND); in searchMessages() 87 s.data(Tags.SYNC_CLASS, "Email"); in searchMessages() 93 s.data(Tags.SYNC_COLLECTION_ID, inbox.mServerId); in searchMessages() 96 s.data(Tags.SEARCH_FREE_TEXT, filter); in searchMessages() 97 s.end().end(); // SEARCH_AND, SEARCH_QUERY in searchMessages() 98 s.start(Tags.SEARCH_OPTIONS); in searchMessages() 100 s.tag(Tags.SEARCH_REBUILD_RESULTS); in searchMessages() [all …]
|
/packages/apps/Exchange/tests/src/com/android/exchange/adapter/ |
D | SerializerTests.java | 40 Serializer s = new Serializer(); in testSerializer() local 41 s.start(Tags.COMPOSE_SEND_MAIL); in testSerializer() 44 s.writeStringValue(values, KEY, Tags.COMPOSE_ACCOUNT_ID); in testSerializer() 46 s.writeStringValue(values, KEY, Tags.COMPOSE_ACCOUNT_ID); in testSerializer() 48 s.data(Tags.COMPOSE_CLIENT_ID, ID); in testSerializer() 49 s.tag(Tags.COMPOSE_SAVE_IN_SENT_ITEMS); in testSerializer() 50 s.start(Tags.COMPOSE_MIME); in testSerializer() 51 s.opaque(new ByteArrayInputStream(BYTE_ARRAY), BYTE_ARRAY_LENGTH); in testSerializer() 52 s.end(); // COMPOSE_MIME in testSerializer() 53 s.end(); // COMPOSE_SEND_MAIL in testSerializer() [all …]
|
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/adapter/ |
D | SerializerTests.java | 40 Serializer s = new Serializer(); in testSerializer() local 41 s.start(Tags.COMPOSE_SEND_MAIL); in testSerializer() 44 s.writeStringValue(values, KEY, Tags.COMPOSE_ACCOUNT_ID); in testSerializer() 46 s.writeStringValue(values, KEY, Tags.COMPOSE_ACCOUNT_ID); in testSerializer() 48 s.data(Tags.COMPOSE_CLIENT_ID, ID); in testSerializer() 49 s.tag(Tags.COMPOSE_SAVE_IN_SENT_ITEMS); in testSerializer() 50 s.start(Tags.COMPOSE_MIME); in testSerializer() 51 s.opaque(new ByteArrayInputStream(BYTE_ARRAY), BYTE_ARRAY_LENGTH); in testSerializer() 52 s.end(); // COMPOSE_MIME in testSerializer() 53 s.end(); // COMPOSE_SEND_MAIL in testSerializer() [all …]
|
/packages/providers/CalendarProvider/ |
D | maketests.py | 55 def fixInstance(s): argument 56 m = TIME.match(s[0]) 65 m = TIMEZ.match(s[0]) 69 return s[0] 84 s = "" variable 86 s = s + c.nodeValue variable 87 lines = stripTimezone(s) 88 for s in lines: 89 re_dtstart = DTSTART_TZID.match(s) 93 re_dtstart = DTSTART.match(s) [all …]
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/internet/ |
D | MimeUtility.java | 55 public static String unfold(String s) { in unfold() argument 56 if (s == null) { in unfold() 59 Matcher patternMatcher = PATTERN_CR_OR_LF.matcher(s); in unfold() 62 s = patternMatcher.replaceAll(""); in unfold() 64 return s; in unfold() 67 public static String decode(String s) { in decode() argument 68 if (s == null) { in decode() 71 return DecoderUtil.decodeEncodedWords(s); in decode() 74 public static String unfoldAndDecode(String s) { in unfoldAndDecode() argument 75 return decode(unfold(s)); in unfoldAndDecode() [all …]
|
/packages/apps/Email/tests/src/com/android/email/mail/transport/ |
D | DiscourseLoggerTest.java | 35 private static String[] s(String... strings) { in s() method in DiscourseLoggerTest 45 checkDiscourseStore(4, o(), s()); in testDiscourseLogger() 50 s( in testDiscourseLogger() 60 s( in testDiscourseLogger() 74 s( in testDiscourseLogger() 84 s( in testDiscourseLogger() 91 s( in testDiscourseLogger() 100 s( in testDiscourseLogger() 116 s( in testDiscourseLogger()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | Path.java | 100 public static Path fromString(String s) { in fromString() argument 102 String[] segments = split(s); in fromString() 126 public static String[] split(String s) { in split() argument 127 int n = s.length(); in split() 129 if (s.charAt(0) != '/') { in split() 130 throw new RuntimeException("malformed path:" + s); in split() 138 char c = s.charAt(j); in split() 144 throw new RuntimeException("unbalanced brace in path:" + s); in split() 146 segments.add(s.substring(i, j)); in split() 156 public static String[] splitSequence(String s) { in splitSequence() argument [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
D | ColorSpaceMatrix.java | 165 public void changeSaturation(float s) { in changeSaturation() argument 166 mMatrix[0] = (1 - s) * RLUM + s; in changeSaturation() 167 mMatrix[1] = (1 - s) * RLUM; in changeSaturation() 168 mMatrix[2] = (1 - s) * RLUM; in changeSaturation() 169 mMatrix[4] = (1 - s) * GLUM; in changeSaturation() 170 mMatrix[5] = (1 - s) * GLUM + s; in changeSaturation() 171 mMatrix[6] = (1 - s) * GLUM; in changeSaturation() 172 mMatrix[8] = (1 - s) * BLUM; in changeSaturation() 173 mMatrix[9] = (1 - s) * BLUM; in changeSaturation() 174 mMatrix[10] = (1 - s) * BLUM + s; in changeSaturation()
|
/packages/apps/Email/tests/src/com/android/email/ |
D | RefreshManagerTest.java | 80 RefreshManager.Status s = new RefreshManager.Status(); in testRefreshStatus() local 81 assertFalse(s.isRefreshing()); in testRefreshStatus() 82 assertTrue(s.canRefresh()); in testRefreshStatus() 83 assertEquals(0, s.getLastRefreshTime()); in testRefreshStatus() 86 s.onRefreshRequested(); in testRefreshStatus() 87 assertTrue(s.isRefreshing()); in testRefreshStatus() 88 assertFalse(s.canRefresh()); in testRefreshStatus() 89 assertEquals(0, s.getLastRefreshTime()); in testRefreshStatus() 92 s.onCallback(null, 0, mClock); in testRefreshStatus() 93 assertTrue(s.isRefreshing()); in testRefreshStatus() [all …]
|
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/ |
D | necode.c | 25 #define CHAR_TO_WCHAR(s) \ argument 26 ((NJ_UINT16)( (((NJ_UINT8*)(s))[0] << 8) | ((NJ_UINT8*)(s))[1] )) 28 #define SET_WCHAR_TO_CHAR(s, c) \ argument 30 ((NJ_UINT8*)(s))[0] = (NJ_UINT8)(((c) >> 8) & 0x00ff); \ 31 ((NJ_UINT8*)(s))[1] = (NJ_UINT8)(((c)) & 0x00ff); \
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | AlbumLabelMaker.java | 148 AlbumSetSlotRenderer.LabelSpec s = mSpec; in run() local 165 s.labelBackgroundHeight + borders, Config.ARGB_8888); in run() 178 int x = s.leftMargin + s.iconSize; in run() 181 int y = (s.labelBackgroundHeight - s.titleFontSize) / 2; in run() 182 drawText(canvas, x, y, title, labelWidth - s.leftMargin - x - in run() 183 s.titleRightMargin, mTitlePaint); in run() 187 x = labelWidth - s.titleRightMargin; in run() 188 y = (s.labelBackgroundHeight - s.countFontSize) / 2; in run() 195 float scale = (float) s.iconSize / icon.getWidth(); in run() 196 canvas.translate(s.leftMargin, (s.labelBackgroundHeight - in run()
|