/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
D | Delaunay.cpp | 63 sp[i] = (SitePointer) i; in buildTriangulation() 66 spsortx( sp, 0, size-1 ); in buildTriangulation() 84 minx = sp[low]; in build() 85 maxx = sp[high]; in build() 87 spsorty( sp, low, high); in build() 106 a = makeEdge(sp[low], sp[high]); in build() 111 a = makeEdge((s1 = sp[low]), (s2 = sp[low+1])); in build() 112 b = makeEdge(s2, (s3 = sp[high])); in build() 200 sp = (SitePointer *) (sa + n); in allocMemory() 201 ev = (SEdgeVector *) (org = sp + n); in allocMemory() [all …]
|
/packages/apps/Camera/jni/feature_mos/src/mosaic/ |
D | Delaunay.cpp | 63 sp[i] = (SitePointer) i; in buildTriangulation() 66 spsortx( sp, 0, size-1 ); in buildTriangulation() 84 minx = sp[low]; in build() 85 maxx = sp[high]; in build() 87 spsorty( sp, low, high); in build() 106 a = makeEdge(sp[low], sp[high]); in build() 111 a = makeEdge((s1 = sp[low]), (s2 = sp[low+1])); in build() 112 b = makeEdge(s2, (s3 = sp[high])); in build() 200 sp = (SitePointer *) (sa + n); in allocMemory() 201 ev = (SEdgeVector *) (org = sp + n); in allocMemory() [all …]
|
/packages/apps/Camera2/jni/feature_mos/src/mosaic/ |
D | Delaunay.cpp | 63 sp[i] = (SitePointer) i; in buildTriangulation() 66 spsortx( sp, 0, size-1 ); in buildTriangulation() 84 minx = sp[low]; in build() 85 maxx = sp[high]; in build() 87 spsorty( sp, low, high); in build() 106 a = makeEdge(sp[low], sp[high]); in build() 111 a = makeEdge((s1 = sp[low]), (s2 = sp[low+1])); in build() 112 b = makeEdge(s2, (s3 = sp[high])); in build() 200 sp = (SitePointer *) (sa + n); in allocMemory() 201 ev = (SEdgeVector *) (org = sp + n); in allocMemory() [all …]
|
/packages/apps/Nfc/nci/jni/ |
D | PeerToPeer.h | 386 android::sp<P2pServer> mServers [sMax]; 387 android::sp<P2pClient> mClients [sMax]; 421 android::sp<P2pServer> findServerLocked (tNFA_HANDLE nfaP2pServerHandle); 434 android::sp<P2pServer> findServerLocked (tJNI_HANDLE jniHandle); 447 android::sp<P2pServer> findServerLocked (const char *serviceName); 501 android::sp<P2pClient> findClient (tNFA_HANDLE nfaConnHandle); 514 android::sp<P2pClient> findClient (tJNI_HANDLE jniHandle); 527 android::sp<P2pClient> findClientCon (tNFA_HANDLE nfaConnHandle); 540 android::sp<NfaConn> findConnection (tNFA_HANDLE nfaConnHandle); 553 android::sp<NfaConn> findConnection (tJNI_HANDLE jniHandle); [all …]
|
D | PeerToPeer.cpp | 132 sp<P2pServer> PeerToPeer::findServerLocked (tNFA_HANDLE nfaP2pServerHandle) in findServerLocked() 159 sp<P2pServer> PeerToPeer::findServerLocked (tJNI_HANDLE jniHandle) in findServerLocked() 186 sp<P2pServer> PeerToPeer::findServerLocked (const char *serviceName) in findServerLocked() 214 sp<P2pServer> pSrv = NULL; in registerServer() 442 sp<P2pServer> pSrv = NULL; in accept() 474 sp<P2pServer> pSrv = NULL; in deregisterServer() 523 sp<P2pClient> client = NULL; in createClient() 669 sp<P2pClient> pClient = NULL; in createDataLinkConn() 726 sp<P2pClient> PeerToPeer::findClient (tNFA_HANDLE nfaConnHandle) in findClient() 748 sp<P2pClient> PeerToPeer::findClient (tJNI_HANDLE jniHandle) in findClient() [all …]
|
/packages/apps/Mms/src/com/android/mms/ui/ |
D | RecipientsEditor.java | 334 private static String getNumberAt(Spanned sp, int start, int end, Context context) { in getNumberAt() argument 335 String number = getFieldAt("number", sp, start, end, context); in getNumberAt() 351 private static int getSpanLength(Spanned sp, int start, int end, Context context) { in getSpanLength() argument 358 Annotation[] a = sp.getSpans(start, end, Annotation.class); in getSpanLength() 360 return sp.getSpanEnd(a[0]); in getSpanLength() 365 private static String getFieldAt(String field, Spanned sp, int start, int end, in getFieldAt() argument 367 Annotation[] a = sp.getSpans(start, end, Annotation.class); in getFieldAt() 370 fieldValue = TextUtils.substring(sp, start, end); in getFieldAt() 442 SpannableString sp = new SpannableString(text + separator); in terminateToken() local 444 Object.class, sp, 0); in terminateToken() local [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
D | SettingsFragment.java | 353 final SharedPreferences sp, final Resources res) { in refreshEnablingsOfKeypressSoundAndVibrationSettings() argument 355 Settings.readVibrationEnabled(sp, res)); in refreshEnablingsOfKeypressSoundAndVibrationSettings() 357 Settings.readKeypressSoundEnabled(sp, res)); in refreshEnablingsOfKeypressSoundAndVibrationSettings() 360 private void setupKeypressVibrationDurationSettings(final SharedPreferences sp, in setupKeypressVibrationDurationSettings() argument 370 sp.edit().putInt(key, value).apply(); in setupKeypressVibrationDurationSettings() 375 sp.edit().remove(key).apply(); in setupKeypressVibrationDurationSettings() 380 return Settings.readKeypressVibrationDuration(sp, res); in setupKeypressVibrationDurationSettings() 403 private void setupKeyLongpressTimeoutSettings(final SharedPreferences sp, in setupKeyLongpressTimeoutSettings() argument 413 sp.edit().putInt(key, value).apply(); in setupKeyLongpressTimeoutSettings() 418 sp.edit().remove(key).apply(); in setupKeyLongpressTimeoutSettings() [all …]
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/parser/ |
D | JJTAddressListParserState.java | 9 private int sp; // number of nodes on stack field in JJTAddressListParserState 16 sp = 0; in JJTAddressListParserState() 32 sp = 0; in reset() 45 ++sp; in pushNode() 51 if (--sp < mk) { in popNode() 65 return sp - mk; in nodeArity() 70 while (sp > mk) { in clearNodeScope() 79 mk = sp; in openNodeScope()
|
/packages/apps/Camera/jni/feature_stab/db_vlvm/ |
D | db_utilities.h | 484 double sp,so,sk,om_sp2,om_so2,om_sk2,cp,co,ck,sp_so,cp_so; in db_IncrementalRotationMatrix() local 487 sp=dx[0]; so=dx[1]; sk=dx[2]; in db_IncrementalRotationMatrix() 488 om_sp2=1.0-sp*sp; in db_IncrementalRotationMatrix() 496 sp_so=sp*so; in db_IncrementalRotationMatrix() 498 R[0]=sp_so*sk+cp*ck; R[1]=co*sk; R[2]=cp_so*sk-sp*ck; in db_IncrementalRotationMatrix() 499 R[3]=sp_so*ck-cp*sk; R[4]=co*ck; R[5]=cp_so*ck+sp*sk; in db_IncrementalRotationMatrix() 500 R[6]=sp*co; R[7]= -so; R[8]=cp*co; in db_IncrementalRotationMatrix()
|
D | db_framestitching.cpp | 85 double c[3],cp[3],r[3],rp[3],M[9],s,sp,sc; in db_StitchSimilarity3DRaw() local 101 s=sp=0; in db_StitchSimilarity3DRaw() 124 sp+=db_sqr(rp[0])+db_sqr(rp[1])+db_sqr(rp[2]); in db_StitchSimilarity3DRaw() 128 if(allow_scaling) sc=sqrt(db_SafeDivision(sp,s)); in db_StitchSimilarity3DRaw()
|
D | db_utilities_linalg.h | 186 double m,sp,sp_m; in db_OrthogonalizePair7() local 189 sp=db_ScalarProduct7(x,v); in db_OrthogonalizePair7() 190 sp_m=sp*m; in db_OrthogonalizePair7() 192 return(sp*sp_m); in db_OrthogonalizePair7() 200 double m,sp,sp_m; in db_OrthogonalizePair9() local 203 sp=db_ScalarProduct9(x,v); in db_OrthogonalizePair9() 204 sp_m=sp*m; in db_OrthogonalizePair9() 206 return(sp*sp_m); in db_OrthogonalizePair9()
|
D | db_image_homography.cpp | 241 double c[2],cp[2],r[2],rp[2],M[4],s,sp,sc; in db_StitchSimilarity2DRaw() local 257 s=sp=0; in db_StitchSimilarity2DRaw() 273 sp+=db_sqr(rp[0])+db_sqr(rp[1]); in db_StitchSimilarity2DRaw() 277 if(allow_scaling) sc=sqrt(db_SafeDivision(sp,s)); in db_StitchSimilarity2DRaw()
|
/packages/apps/Camera2/jni/feature_stab/db_vlvm/ |
D | db_utilities.h | 484 double sp,so,sk,om_sp2,om_so2,om_sk2,cp,co,ck,sp_so,cp_so; in db_IncrementalRotationMatrix() local 487 sp=dx[0]; so=dx[1]; sk=dx[2]; in db_IncrementalRotationMatrix() 488 om_sp2=1.0-sp*sp; in db_IncrementalRotationMatrix() 496 sp_so=sp*so; in db_IncrementalRotationMatrix() 498 R[0]=sp_so*sk+cp*ck; R[1]=co*sk; R[2]=cp_so*sk-sp*ck; in db_IncrementalRotationMatrix() 499 R[3]=sp_so*ck-cp*sk; R[4]=co*ck; R[5]=cp_so*ck+sp*sk; in db_IncrementalRotationMatrix() 500 R[6]=sp*co; R[7]= -so; R[8]=cp*co; in db_IncrementalRotationMatrix()
|
D | db_framestitching.cpp | 85 double c[3],cp[3],r[3],rp[3],M[9],s,sp,sc; in db_StitchSimilarity3DRaw() local 101 s=sp=0; in db_StitchSimilarity3DRaw() 124 sp+=db_sqr(rp[0])+db_sqr(rp[1])+db_sqr(rp[2]); in db_StitchSimilarity3DRaw() 128 if(allow_scaling) sc=sqrt(db_SafeDivision(sp,s)); in db_StitchSimilarity3DRaw()
|
D | db_utilities_linalg.h | 186 double m,sp,sp_m; in db_OrthogonalizePair7() local 189 sp=db_ScalarProduct7(x,v); in db_OrthogonalizePair7() 190 sp_m=sp*m; in db_OrthogonalizePair7() 192 return(sp*sp_m); in db_OrthogonalizePair7() 200 double m,sp,sp_m; in db_OrthogonalizePair9() local 203 sp=db_ScalarProduct9(x,v); in db_OrthogonalizePair9() 204 sp_m=sp*m; in db_OrthogonalizePair9() 206 return(sp*sp_m); in db_OrthogonalizePair9()
|
D | db_image_homography.cpp | 241 double c[2],cp[2],r[2],rp[2],M[4],s,sp,sc; in db_StitchSimilarity2DRaw() local 257 s=sp=0; in db_StitchSimilarity2DRaw() 273 sp+=db_sqr(rp[0])+db_sqr(rp[1]); in db_StitchSimilarity2DRaw() 277 if(allow_scaling) sc=sqrt(db_SafeDivision(sp,s)); in db_StitchSimilarity2DRaw()
|
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
D | db_utilities.h | 484 double sp,so,sk,om_sp2,om_so2,om_sk2,cp,co,ck,sp_so,cp_so; in db_IncrementalRotationMatrix() local 487 sp=dx[0]; so=dx[1]; sk=dx[2]; in db_IncrementalRotationMatrix() 488 om_sp2=1.0-sp*sp; in db_IncrementalRotationMatrix() 496 sp_so=sp*so; in db_IncrementalRotationMatrix() 498 R[0]=sp_so*sk+cp*ck; R[1]=co*sk; R[2]=cp_so*sk-sp*ck; in db_IncrementalRotationMatrix() 499 R[3]=sp_so*ck-cp*sk; R[4]=co*ck; R[5]=cp_so*ck+sp*sk; in db_IncrementalRotationMatrix() 500 R[6]=sp*co; R[7]= -so; R[8]=cp*co; in db_IncrementalRotationMatrix()
|
D | db_framestitching.cpp | 85 double c[3],cp[3],r[3],rp[3],M[9],s,sp,sc; in db_StitchSimilarity3DRaw() local 101 s=sp=0; in db_StitchSimilarity3DRaw() 124 sp+=db_sqr(rp[0])+db_sqr(rp[1])+db_sqr(rp[2]); in db_StitchSimilarity3DRaw() 128 if(allow_scaling) sc=sqrt(db_SafeDivision(sp,s)); in db_StitchSimilarity3DRaw()
|
D | db_utilities_linalg.h | 186 double m,sp,sp_m; in db_OrthogonalizePair7() local 189 sp=db_ScalarProduct7(x,v); in db_OrthogonalizePair7() 190 sp_m=sp*m; in db_OrthogonalizePair7() 192 return(sp*sp_m); in db_OrthogonalizePair7() 200 double m,sp,sp_m; in db_OrthogonalizePair9() local 203 sp=db_ScalarProduct9(x,v); in db_OrthogonalizePair9() 204 sp_m=sp*m; in db_OrthogonalizePair9() 206 return(sp*sp_m); in db_OrthogonalizePair9()
|
D | db_image_homography.cpp | 241 double c[2],cp[2],r[2],rp[2],M[4],s,sp,sc; in db_StitchSimilarity2DRaw() local 257 s=sp=0; in db_StitchSimilarity2DRaw() 273 sp+=db_sqr(rp[0])+db_sqr(rp[1]); in db_StitchSimilarity2DRaw() 277 if(allow_scaling) sc=sqrt(db_SafeDivision(sp,s)); in db_StitchSimilarity2DRaw()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/ |
D | PersonalizationHelper.java | 44 final Context context, final String locale, final SharedPreferences sp) { in getUserHistoryDictionary() argument 58 final UserHistoryDictionary dict = new UserHistoryDictionary(context, locale, sp); in getUserHistoryDictionary() 89 final Context context, final String locale, final SharedPreferences sp) { in getPersonalizationDictionary() argument 103 new PersonalizationDictionary(context, locale, sp); in getPersonalizationDictionary() 111 final Context context, final String locale, final SharedPreferences sp) { in getPersonalizationPredictionDictionary() argument 125 new PersonalizationPredictionDictionary(context, locale, sp); in getPersonalizationPredictionDictionary()
|
/packages/apps/Mms/src/com/android/mms/transaction/ |
D | MessagingNotification.java | 305 SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context); in playInConversationNotificationSound() local 306 String ringtoneStr = sp.getString(MessagingPreferenceActivity.NOTIFICATION_RINGTONE, in playInConversationNotificationSound() 906 SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context); in updateNotification() local 909 if (sp.contains(MessagingPreferenceActivity.NOTIFICATION_VIBRATE)) { in updateNotification() 913 vibrate = sp.getBoolean(MessagingPreferenceActivity.NOTIFICATION_VIBRATE, in updateNotification() 915 } else if (sp.contains(MessagingPreferenceActivity.NOTIFICATION_VIBRATE_WHEN)) { in updateNotification() 921 sp.getString(MessagingPreferenceActivity.NOTIFICATION_VIBRATE_WHEN, null); in updateNotification() 928 String ringtoneStr = sp.getString(MessagingPreferenceActivity.NOTIFICATION_RINGTONE, in updateNotification() 1160 SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context); in notifyFailed() local 1161 boolean vibrate = sp.getBoolean(MessagingPreferenceActivity.NOTIFICATION_VIBRATE, in notifyFailed() [all …]
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | InstallShortcutReceiver.java | 208 SharedPreferences sp = context.getSharedPreferences(spKey, Context.MODE_PRIVATE); in onReceive() local 209 addToInstallQueue(sp, info); in onReceive() 224 SharedPreferences sp = context.getSharedPreferences(spKey, Context.MODE_PRIVATE); in flushInstallQueue() local 225 ArrayList<PendingInstallShortcutInfo> installQueue = getAndClearInstallQueue(sp); in flushInstallQueue() 235 SharedPreferences sp = context.getSharedPreferences(spKey, Context.MODE_PRIVATE); in processInstallShortcut() local 259 found = installShortcut(context, data, items, name, intent, si, exists, sp, in processInstallShortcut()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherProvider.java | 274 SharedPreferences sp = getContext().getSharedPreferences(spKey, Context.MODE_PRIVATE); in justLoadedOldDb() local 279 if (sp.getBoolean(UPGRADED_FROM_OLD_DATABASE, false)) { in justLoadedOldDb() 281 SharedPreferences.Editor editor = sp.edit(); in justLoadedOldDb() 294 SharedPreferences sp = getContext().getSharedPreferences(spKey, Context.MODE_PRIVATE); in loadDefaultFavoritesIfNecessary() local 296 if (sp.getBoolean(EMPTY_DATABASE_CREATED, false)) { in loadDefaultFavoritesIfNecessary() 303 sp.getInt(DEFAULT_WORKSPACE_RESOURCE_ID, getDefaultWorkspaceResourceId()); in loadDefaultFavoritesIfNecessary() 307 SharedPreferences.Editor editor = sp.edit(); in loadDefaultFavoritesIfNecessary() 485 SharedPreferences sp = mContext.getSharedPreferences(spKey, Context.MODE_PRIVATE); in setFlagJustLoadedOldDb() local 486 SharedPreferences.Editor editor = sp.edit(); in setFlagJustLoadedOldDb() 494 SharedPreferences sp = mContext.getSharedPreferences(spKey, Context.MODE_PRIVATE); in setFlagEmptyDbCreated() local [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | Utils.java | 520 Spannable sp = new SpannableString(pattern); in get12ModeFormat() local 521 sp.setSpan(new StyleSpan(android.graphics.Typeface.BOLD), amPmPos, amPmPos + 1, in get12ModeFormat() 523 sp.setSpan(new AbsoluteSizeSpan(amPmFontSize), amPmPos, amPmPos + 1, in get12ModeFormat() 525 sp.setSpan(new TypefaceSpan("sans-serif-condensed"), amPmPos, amPmPos + 1, in get12ModeFormat() 527 return sp; in get12ModeFormat()
|