Home
last modified time | relevance | path

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

123

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/settings/
DSpacingAndPunctuationsTests.java105 private static void testingStandardWordSeparator(final SpacingAndPunctuations sp) { in testingStandardWordSeparator() argument
106 assertTrue("Tab", sp.isWordSeparator('\t')); in testingStandardWordSeparator()
107 assertTrue("Newline", sp.isWordSeparator('\n')); in testingStandardWordSeparator()
108 assertTrue("Space", sp.isWordSeparator(' ')); in testingStandardWordSeparator()
109 assertTrue("Exclamation", sp.isWordSeparator('!')); in testingStandardWordSeparator()
110 assertTrue("Quotation", sp.isWordSeparator('"')); in testingStandardWordSeparator()
111 assertFalse("Number", sp.isWordSeparator('#')); in testingStandardWordSeparator()
112 assertFalse("Dollar", sp.isWordSeparator('$')); in testingStandardWordSeparator()
113 assertFalse("Percent", sp.isWordSeparator('%')); in testingStandardWordSeparator()
114 assertTrue("Ampersand", sp.isWordSeparator('&')); in testingStandardWordSeparator()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DCapsModeUtilsTests.java32 final int mask, final SpacingAndPunctuations sp, final boolean hasSpaceBefore) { in onePathForCaps() argument
35 CapsModeUtils.getCapsMode(cs, mask, sp, hasSpaceBefore)); in onePathForCaps()
39 final SpacingAndPunctuations sp, final boolean hasSpaceBefore) { in allPathsForCaps() argument
43 onePathForCaps(cs, expectedResult, c | w | s, sp, hasSpaceBefore); in allPathsForCaps()
44 onePathForCaps(cs, expectedResult, w | s, sp, hasSpaceBefore); in allPathsForCaps()
45 onePathForCaps(cs, expectedResult, c | s, sp, hasSpaceBefore); in allPathsForCaps()
46 onePathForCaps(cs, expectedResult, c | w, sp, hasSpaceBefore); in allPathsForCaps()
47 onePathForCaps(cs, expectedResult, c, sp, hasSpaceBefore); in allPathsForCaps()
48 onePathForCaps(cs, expectedResult, w, sp, hasSpaceBefore); in allPathsForCaps()
49 onePathForCaps(cs, expectedResult, s, sp, hasSpaceBefore); in allPathsForCaps()
[all …]
DDictionaryInfoUtilsTests.java38 final SpacingAndPunctuations sp = job.runInLocale(res, Locale.ENGLISH); in testLooksValidForDictionaryInsertion() local
39 assertTrue(DictionaryInfoUtils.looksValidForDictionaryInsertion("aochaueo", sp)); in testLooksValidForDictionaryInsertion()
40 assertFalse(DictionaryInfoUtils.looksValidForDictionaryInsertion("", sp)); in testLooksValidForDictionaryInsertion()
41 assertTrue(DictionaryInfoUtils.looksValidForDictionaryInsertion("ao-ch'aueo", sp)); in testLooksValidForDictionaryInsertion()
42 assertFalse(DictionaryInfoUtils.looksValidForDictionaryInsertion("2908743256", sp)); in testLooksValidForDictionaryInsertion()
43 assertTrue(DictionaryInfoUtils.looksValidForDictionaryInsertion("31aochaueo", sp)); in testLooksValidForDictionaryInsertion()
45 sp)); in testLooksValidForDictionaryInsertion()
46 assertFalse(DictionaryInfoUtils.looksValidForDictionaryInsertion("!!!", sp)); in testLooksValidForDictionaryInsertion()
/packages/services/Car/vehicle_network_service/
DVehicleNetworkService.h71 VehicleHalMessageHandler(const sp<Looper>& mLooper, VehicleNetworkService& service);
85 const sp<Looper> mLooper;
112 HalClient(const sp<IVehicleNetworkListener> &listener, pid_t pid, uid_t uid) : in HalClient()
183 const sp<IVehicleNetworkListener>& getListener() { in getListener()
187 const sp<IBinder> getListenerAsBinder() { in getListenerAsBinder()
209 sp<VehiclePropValueListHolder> events(new VehiclePropValueListHolder(&mEvents, in dispatchEvents()
227 const sp<IVehicleNetworkListener> mListener;
236 class HalClientSpVector : public SortedVector<sp<HalClient> >, public RefBase {
239 sp<HalClient>& lh = * (sp<HalClient> * )(lhs); in do_compare()
240 sp<HalClient>& rh = * (sp<HalClient> * )(rhs); in do_compare()
[all …]
DVehicleNetworkService.cpp44 VehicleHalMessageHandler::VehicleHalMessageHandler(const sp<Looper>& looper, in VehicleHalMessageHandler()
91 sp<MessageHandler> self(this); in handleMockStart()
240 sp<HalClientSpVector> clients = mPropertyToClientsMap.valueAt(i); in dump()
288 sp<HalClientSpVector> clients = mPropertyToClientsMap.editValueAt(i); in ~VehicleNetworkService()
300 sp<IBinder> ibinder = who.promote(); in binderDied()
307 sp<HalClient> currentClient = mBinderToClientMap.editValueAt(index); in binderDied()
313 sp<HalClientSpVector>& clients = mPropertyToClientsMap.editValueAt(i); in binderDied()
333 sp<IBinder> ibinder = who.promote(); in handleHalMockDeath()
369 sp<VehicleHalMessageHandler> handler(new VehicleHalMessageHandler(mHandlerThread->getLooper(), in onFirstRef()
472 sp<VehiclePropertiesHolder> VehicleNetworkService::listProperties(int32_t property) { in listProperties()
[all …]
/packages/services/Car/libvehiclenetwork/include/
DVehicleNetwork.h46 virtual void onEvents(sp<VehiclePropValueListHolder>& events) = 0;
61 VehicleNetworkEventMessageHandler(const sp<Looper>& looper,
62 sp<VehicleNetworkListener>& listener);
65 void handleHalEvents(sp<VehiclePropValueListHolder>& events);
80 sp<Looper> mLooper;
81 sp<VehicleNetworkListener>& mListener;
82 List<sp<VehiclePropValueListHolder>> mEvents;
100 static sp<VehicleNetwork> createVehicleNetwork(sp<VehicleNetworkListener> &listener);
114 sp<VehiclePropertiesHolder> listProperties(int32_t property = 0);
126 status_t startMocking(const sp<IVehicleNetworkHalMock>& mock);
[all …]
DIVehicleNetwork.h48 virtual sp<VehiclePropertiesHolder> listProperties(int32_t property = 0) = 0;
51 virtual status_t subscribe(const sp<IVehicleNetworkListener> &listener, int32_t property,
53 virtual void unsubscribe(const sp<IVehicleNetworkListener> &listener, int32_t property) = 0;
59 virtual status_t startMocking(const sp<IVehicleNetworkHalMock>& mock) = 0;
60 virtual void stopMocking(const sp<IVehicleNetworkHalMock>& mock) = 0;
67 virtual status_t startErrorListening(const sp<IVehicleNetworkListener> &listener) = 0;
68 virtual void stopErrorListening(const sp<IVehicleNetworkListener> &listener) = 0;
73 virtual status_t startHalRestartMonitoring(const sp<IVehicleNetworkListener> &listener) = 0;
74 virtual void stopHalRestartMonitoring(const sp<IVehicleNetworkListener> &listener) = 0;
/packages/services/Car/tests/libvehiclenetwork-native-test/
DIVehicleNetworkTest.cpp38 sp<IVehicleNetwork> connectToService() { in connectToService()
39 sp<IBinder> binder = defaultServiceManager()->getService( in connectToService()
42 sp<IVehicleNetwork> vn(interface_cast<IVehicleNetwork>(binder)); in connectToService()
45 sp<IVehicleNetwork> dummy; in connectToService()
49 sp<IVehicleNetwork> getDefaultVN() { in getDefaultVN()
59 sp<IVehicleNetwork> mDefaultVN;
63 sp<IVehicleNetwork> vn = connectToService(); in TEST_F()
68 sp<IVehicleNetwork> vn = getDefaultVN(); in TEST_F()
69 sp<VehiclePropertiesHolder> properties = vn->listProperties(); in TEST_F()
77 sp<VehiclePropertiesHolder> propertiesIvalid = vn->listProperties(-1); // no such property in TEST_F()
[all …]
DIVehicleNetworkMockedTest.cpp40 sp<IVehicleNetwork> connectToService() { in connectToService()
41 sp<IBinder> binder = defaultServiceManager()->getService( in connectToService()
44 sp<IVehicleNetwork> vn(interface_cast<IVehicleNetwork>(binder)); in connectToService()
47 sp<IVehicleNetwork> dummy; in connectToService()
63 sp<VehicleHalMock> mHalMock;
64 sp<IVehicleNetwork> mVN;
70 sp<IVehicleNetwork> vn = connectToService(); in TEST_F()
76 sp<VehiclePropertiesHolder> properties = mVN->listProperties(); in TEST_F()
82 sp<IVehicleNetworkTestListener> listener(new IVehicleNetworkTestListener()); in TEST_F()
94 sp<IVehicleNetworkTestListener> listener(new IVehicleNetworkTestListener()); in TEST_F()
[all …]
DVehicleNetworkTest.cpp47 sp<VehicleNetwork> getDefaultVN() { in getDefaultVN()
62 sp<VehicleNetworkListener> listener(mListener.get()); in SetUp()
69 sp<VehicleNetwork> mVN;
70 sp<VehicleNetworkTestListener> mListener;
75 sp<VehicleNetwork> vn = getDefaultVN(); in TEST_F()
76 sp<VehiclePropertiesHolder> properties = vn->listProperties(); in TEST_F()
84 sp<VehiclePropertiesHolder> propertiesIvalid = vn->listProperties(-1); // no such property in TEST_F()
89 sp<VehiclePropertiesHolder> singleProperty = vn->listProperties(config->prop); in TEST_F()
100 sp<VehicleNetwork> vn = getDefaultVN(); in TEST_F()
101 sp<VehiclePropertiesHolder> properties = vn->listProperties(); in TEST_F()
[all …]
DVehicleNetworkAudioHelperTest.cpp44 VehicleHalMockForAudioFocus(sp<VehicleNetwork>& vn) in VehicleHalMockForAudioFocus()
60 virtual sp<VehiclePropertiesHolder> onListProperties() { in onListProperties()
106 sp<VehicleNetwork> mVN;
108 sp<VehiclePropertiesHolder> mAudioProperties;
126 sp<VehicleNetworkListener> listener(mListener.get()); in SetUp()
130 sp<VehicleHalMock> halMock = mHalMock; in SetUp()
138 sp<VehicleHalMock> halMock = mHalMock; in TearDown()
148 sp<VehicleHalMockForAudioFocus> mHalMock;
149 sp<VehicleNetwork> mVN;
150 sp<VehicleNetworkTestListener> mListener;
[all …]
DVehicleHalMock.h41 virtual sp<VehiclePropertiesHolder> onListProperties() { in onListProperties()
61 bool isTheSameProperties(sp<VehiclePropertiesHolder>& list) { in isTheSameProperties()
78 sp<VehiclePropertiesHolder> mProperties;
/packages/apps/Nfc/nci/jni/
DPeerToPeer.h410 android::sp<P2pServer> mServers [sMax];
411 android::sp<P2pClient> mClients [sMax];
445 android::sp<P2pServer> findServerLocked (tNFA_HANDLE nfaP2pServerHandle);
458 android::sp<P2pServer> findServerLocked (tJNI_HANDLE jniHandle);
471 android::sp<P2pServer> findServerLocked (const char *serviceName);
525 android::sp<P2pClient> findClient (tNFA_HANDLE nfaConnHandle);
538 android::sp<P2pClient> findClient (tJNI_HANDLE jniHandle);
551 android::sp<P2pClient> findClientCon (tNFA_HANDLE nfaConnHandle);
564 android::sp<NfaConn> findConnection (tNFA_HANDLE nfaConnHandle);
577 android::sp<NfaConn> findConnection (tJNI_HANDLE jniHandle);
[all …]
DPeerToPeer.cpp134 sp<P2pServer> PeerToPeer::findServerLocked (tNFA_HANDLE nfaP2pServerHandle) in findServerLocked()
161 sp<P2pServer> PeerToPeer::findServerLocked (tJNI_HANDLE jniHandle) in findServerLocked()
188 sp<P2pServer> PeerToPeer::findServerLocked (const char *serviceName) in findServerLocked()
216 sp<P2pServer> pSrv = NULL; in registerServer()
447 sp<P2pServer> pSrv = NULL; in accept()
479 sp<P2pServer> pSrv = NULL; in deregisterServer()
539 sp<P2pClient> client = NULL; in createClient()
685 sp<P2pClient> pClient = NULL; in createDataLinkConn()
742 sp<P2pClient> PeerToPeer::findClient (tNFA_HANDLE nfaConnHandle) in findClient()
764 sp<P2pClient> PeerToPeer::findClient (tJNI_HANDLE jniHandle) in findClient()
[all …]
/packages/services/Car/libvehiclenetwork/native/
DVehicleNetwork.cpp28 VehicleNetworkEventMessageHandler::VehicleNetworkEventMessageHandler(const sp<Looper>& looper, in VehicleNetworkEventMessageHandler()
29 sp<VehicleNetworkListener>& listener) : in VehicleNetworkEventMessageHandler()
45 void VehicleNetworkEventMessageHandler::handleHalEvents(sp<VehiclePropValueListHolder>& events) { in handleHalEvents()
70 sp<VehiclePropValueListHolder> values; in doHandleHalEvents()
133 sp<VehicleNetwork> VehicleNetwork::createVehicleNetwork(sp<VehicleNetworkListener>& listener) { in createVehicleNetwork()
134 sp<IBinder> binder = defaultServiceManager()->getService( in createVehicleNetwork()
136 sp<VehicleNetwork> vn; in createVehicleNetwork()
138 sp<IVehicleNetwork> ivn(interface_cast<IVehicleNetwork>(binder)); in createVehicleNetwork()
148 VehicleNetwork::VehicleNetwork(sp<IVehicleNetwork>& vehicleNetwork, in VehicleNetwork()
149 sp<VehicleNetworkListener> &listener) : in VehicleNetwork()
[all …]
DIVehicleNetwork.cpp59 BpVehicleNetwork(const sp<IBinder> & impl) in BpVehicleNetwork()
63 virtual sp<VehiclePropertiesHolder> listProperties(int32_t property) { in listProperties()
64 sp<VehiclePropertiesHolder> holder; in listProperties()
143 virtual status_t subscribe(const sp<IVehicleNetworkListener> &listener, int32_t property, in subscribe()
155 virtual void unsubscribe(const sp<IVehicleNetworkListener> &listener, int32_t property) { in unsubscribe()
183 virtual status_t startMocking(const sp<IVehicleNetworkHalMock>& mock) { in startMocking()
191 virtual void stopMocking(const sp<IVehicleNetworkHalMock>& mock) { in stopMocking()
211 virtual status_t startErrorListening(const sp<IVehicleNetworkListener> &listener) { in startErrorListening()
219 virtual void stopErrorListening(const sp<IVehicleNetworkListener> &listener) { in stopErrorListening()
229 virtual status_t startHalRestartMonitoring(const sp<IVehicleNetworkListener> &listener) { in startHalRestartMonitoring()
[all …]
/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 …]
/packages/services/Telephony/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/UnifiedEmail/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/services/Car/libvehiclenetwork/libvehiclenetwork-audio-helper/include/
DVehicleNetworkAudioHelper.h46 VehicleNetworkAudioHelper(int64_t timeoutNs, sp<VehicleNetworkAudioFocusListener> listener);
61 virtual void onEvents(sp<VehiclePropValueListHolder>& events) ;
80 sp<VehicleNetworkAudioFocusListener> mListener;
83 sp<VehicleNetwork> mService;
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
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_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()
/packages/services/Car/libvehiclenetwork/libvehiclenetwork-audio-helper/src/
DVehicleNetworkAudioHelper.cpp40 sp<VehicleNetworkAudioFocusListener> listener) in VehicleNetworkAudioHelper()
52 sp<VehicleNetworkListener> listener(this); in init()
65 sp<VehiclePropertiesHolder> holder = mService->listProperties(VEHICLE_PROPERTY_AUDIO_FOCUS); in updatePropertiesLocked()
203 void VehicleNetworkAudioHelper::onEvents(sp<VehiclePropValueListHolder>& events) { in onEvents()
204 sp<VehicleNetworkAudioFocusListener> listener; in onEvents()
/packages/apps/Launcher3/src/com/android/launcher3/testing/
DToggleWeightWatcher.java19 SharedPreferences sp = Utilities.getPrefs(this); in onCreate() local
20 boolean show = sp.getBoolean(TestingUtils.SHOW_WEIGHT_WATCHER, true); in onCreate()
23 sp.edit().putBoolean(TestingUtils.SHOW_WEIGHT_WATCHER, show).apply(); in onCreate()
/packages/apps/Launcher2/src/com/android/launcher2/
DInstallShortcutReceiver.java208 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()

123