Home
last modified time | relevance | path

Searched refs:sp (Results 1 – 25 of 36) sorted by relevance

12

/packages/apps/Nfc/nci/jni/
DPeerToPeer.h386 android::sp<P2pServer> mServers [sMax];
387 android::sp<P2pClient> mClients [sMax];
434 android::sp<P2pServer> findServerLocked (tNFA_HANDLE nfaP2pServerHandle);
447 android::sp<P2pServer> findServerLocked (tJNI_HANDLE jniHandle);
460 android::sp<P2pServer> findServerLocked (const char *serviceName);
514 android::sp<P2pClient> findClient (tNFA_HANDLE nfaConnHandle);
527 android::sp<P2pClient> findClient (tJNI_HANDLE jniHandle);
540 android::sp<P2pClient> findClientCon (tNFA_HANDLE nfaConnHandle);
553 android::sp<NfaConn> findConnection (tNFA_HANDLE nfaConnHandle);
566 android::sp<NfaConn> findConnection (tJNI_HANDLE jniHandle);
[all …]
DPeerToPeer.cpp123 sp<P2pServer> PeerToPeer::findServerLocked (tNFA_HANDLE nfaP2pServerHandle) in findServerLocked()
150 sp<P2pServer> PeerToPeer::findServerLocked (tJNI_HANDLE jniHandle) in findServerLocked()
177 sp<P2pServer> PeerToPeer::findServerLocked (const char *serviceName) in findServerLocked()
206 sp<P2pServer> pSrv = NULL; in registerServer()
428 sp<NfaConn> *pConn = NULL; in accept()
431 sp<P2pServer> pSrv = NULL; in accept()
463 sp<P2pServer> pSrv = NULL; in deregisterServer()
512 sp<P2pClient> client = NULL; in createClient()
659 sp<P2pClient> pClient = NULL; in createDataLinkConn()
716 sp<P2pClient> PeerToPeer::findClient (tNFA_HANDLE nfaConnHandle) in findClient()
[all …]
/packages/apps/Email/src/org/apache/james/mime4j/field/address/parser/
DJJTAddressListParserState.java9 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/LegacyCamera/jni/feature_mos/src/mosaic/
DDelaunay.cpp63 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 …]
DDelaunay.h56 SitePointer *sp; variable
/packages/apps/Camera/jni/feature_mos/src/mosaic/
DDelaunay.cpp63 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 …]
DDelaunay.h56 SitePointer *sp; variable
/packages/apps/Mms/src/com/android/mms/ui/
DRecipientsEditor.java332 private static String getNumberAt(Spanned sp, int start, int end, Context context) { in getNumberAt() argument
333 String number = getFieldAt("number", sp, start, end, context); in getNumberAt()
349 private static int getSpanLength(Spanned sp, int start, int end, Context context) { in getSpanLength() argument
356 Annotation[] a = sp.getSpans(start, end, Annotation.class); in getSpanLength()
358 return sp.getSpanEnd(a[0]); in getSpanLength()
363 private static String getFieldAt(String field, Spanned sp, int start, int end, in getFieldAt() argument
365 Annotation[] a = sp.getSpans(start, end, Annotation.class); in getFieldAt()
368 fieldValue = TextUtils.substring(sp, start, end); in getFieldAt()
440 SpannableString sp = new SpannableString(text + separator); in terminateToken() local
442 Object.class, sp, 0); in terminateToken() local
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DSettings.java338 final SharedPreferences sp, final Resources res) { in refreshEnablingsOfKeypressSoundAndVibrationSettings() argument
342 final boolean vibrateOnByUser = sp.getBoolean(Settings.PREF_VIBRATE_ON, in refreshEnablingsOfKeypressSoundAndVibrationSettings()
349 final boolean soundOn = sp.getBoolean(Settings.PREF_SOUND_ON, in refreshEnablingsOfKeypressSoundAndVibrationSettings()
356 final SharedPreferences sp, final Resources res) { in updateKeypressVibrationDurationSettingsSummary() argument
359 SettingsValues.getCurrentVibrationDuration(sp, res) in updateKeypressVibrationDurationSettingsSummary()
365 final SharedPreferences sp = getPreferenceManager().getSharedPreferences(); in showKeypressVibrationDurationSettingsDialog() local
375 sp.edit().putInt(Settings.PREF_VIBRATION_DURATION_SETTINGS, ms).apply(); in showKeypressVibrationDurationSettingsDialog()
376 updateKeypressVibrationDurationSettingsSummary(sp, res); in showKeypressVibrationDurationSettingsDialog()
414 private void updateKeypressSoundVolumeSummary(final SharedPreferences sp, final Resources res) { in updateKeypressSoundVolumeSummary() argument
417 (int)(SettingsValues.getCurrentKeypressSoundVolume(sp, res) * 100))); in updateKeypressSoundVolumeSummary()
[all …]
DUserHistoryDictionary.java84 final Context context, final String locale, final SharedPreferences sp) { in getInstance() argument
96 new UserHistoryDictionary(context, locale, sp); in getInstance()
102 final SharedPreferences sp) { in UserHistoryDictionary() argument
105 mPrefs = sp; in UserHistoryDictionary()
/packages/apps/Camera/jni/feature_stab/db_vlvm/
Ddb_framestitching.cpp85 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()
Ddb_utilities.h484 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()
Ddb_image_homography.cpp241 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()
Ddb_utilities_linalg.h186 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()
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_framestitching.cpp85 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()
Ddb_utilities.h484 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()
Ddb_image_homography.cpp241 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()
Ddb_utilities_linalg.h186 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()
/packages/experimental/RpcPerformance/
Drpcperftest.cpp46 sp<IServiceManager> sm = defaultServiceManager(); in main()
66 sp<IBinder> service = sm->checkService(String16(argv[1])); in main()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DTelephonyProvider.java402 SharedPreferences sp = getContext().getSharedPreferences(PREF_FILE, Context.MODE_PRIVATE); in setPreferredApnId() local
403 SharedPreferences.Editor editor = sp.edit(); in setPreferredApnId()
409 SharedPreferences sp = getContext().getSharedPreferences(PREF_FILE, Context.MODE_PRIVATE); in getPreferredApnId() local
410 return sp.getLong(COLUMN_APN_ID, -1); in getPreferredApnId()
414 SharedPreferences sp = getContext().getSharedPreferences(PREF_FILE, Context.MODE_PRIVATE); in getAPNConfigCheckSum() local
415 return sp.getLong(APN_CONFIG_CHECKSUM, -1); in getAPNConfigCheckSum()
419 SharedPreferences sp = getContext().getSharedPreferences(PREF_FILE, Context.MODE_PRIVATE); in setAPNConfigCheckSum() local
420 SharedPreferences.Editor editor = sp.edit(); in setAPNConfigCheckSum()
/packages/apps/Mms/src/com/android/mms/transaction/
DMessagingNotification.java302 SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context); in playInConversationNotificationSound() local
303 String ringtoneStr = sp.getString(MessagingPreferenceActivity.NOTIFICATION_RINGTONE, in playInConversationNotificationSound()
895 SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context); in updateNotification() local
898 if (sp.contains(MessagingPreferenceActivity.NOTIFICATION_VIBRATE)) { in updateNotification()
902 vibrate = sp.getBoolean(MessagingPreferenceActivity.NOTIFICATION_VIBRATE, in updateNotification()
904 } else if (sp.contains(MessagingPreferenceActivity.NOTIFICATION_VIBRATE_WHEN)) { in updateNotification()
910 sp.getString(MessagingPreferenceActivity.NOTIFICATION_VIBRATE_WHEN, null); in updateNotification()
917 String ringtoneStr = sp.getString(MessagingPreferenceActivity.NOTIFICATION_RINGTONE, in updateNotification()
1145 SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context); in notifyFailed() local
1146 boolean vibrate = sp.getBoolean(MessagingPreferenceActivity.NOTIFICATION_VIBRATE, in notifyFailed()
[all …]
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/
DSearch.java118 SearchParser sp = new SearchParser(is, svc, filter); in searchMessages() local
119 sp.parse(); in searchMessages()
120 res = sp.getTotalResults(); in searchMessages()
/packages/apps/Launcher2/src/com/android/launcher2/
DInstallShortcutReceiver.java123 SharedPreferences sp = context.getSharedPreferences(spKey, Context.MODE_PRIVATE); in processInstallShortcut() local
143 found = installShortcut(context, data, items, name, intent, si, exists, sp, in processInstallShortcut()
DLauncherProvider.java213 SharedPreferences sp = getContext().getSharedPreferences(spKey, Context.MODE_PRIVATE); in loadDefaultFavoritesIfNecessary() local
214 if (sp.getBoolean(DB_CREATED_BUT_DEFAULT_WORKSPACE_NOT_LOADED, false)) { in loadDefaultFavoritesIfNecessary()
219 workspaceResId = sp.getInt(DEFAULT_WORKSPACE_RESOURCE_ID, R.xml.default_workspace); in loadDefaultFavoritesIfNecessary()
223 SharedPreferences.Editor editor = sp.edit(); in loadDefaultFavoritesIfNecessary()
311 SharedPreferences sp = mContext.getSharedPreferences(spKey, Context.MODE_PRIVATE); in setFlagToLoadDefaultWorkspaceLater() local
312 SharedPreferences.Editor editor = sp.edit(); in setFlagToLoadDefaultWorkspaceLater()
/packages/providers/CalendarProvider/tests/
DEMMA_README48 -sp ${ANDROID_BUILD_TOP}/packages/providers/CalendarProvider/src \

12