Home
last modified time | relevance | path

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

12345678910>>...14

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/settings/
DSpacingAndPunctuationsTests.java120 private static void testingStandardWordSeparator(final SpacingAndPunctuations sp) { in testingStandardWordSeparator() argument
121 assertTrue("Tab", sp.isWordSeparator('\t')); in testingStandardWordSeparator()
122 assertTrue("Newline", sp.isWordSeparator('\n')); in testingStandardWordSeparator()
123 assertTrue("Space", sp.isWordSeparator(' ')); in testingStandardWordSeparator()
124 assertTrue("Exclamation", sp.isWordSeparator('!')); in testingStandardWordSeparator()
125 assertTrue("Quotation", sp.isWordSeparator('"')); in testingStandardWordSeparator()
126 assertFalse("Number", sp.isWordSeparator('#')); in testingStandardWordSeparator()
127 assertFalse("Dollar", sp.isWordSeparator('$')); in testingStandardWordSeparator()
128 assertFalse("Percent", sp.isWordSeparator('%')); in testingStandardWordSeparator()
129 assertTrue("Ampersand", sp.isWordSeparator('&')); in testingStandardWordSeparator()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DCapsModeUtilsTests.java41 final int mask, final SpacingAndPunctuations sp, final boolean hasSpaceBefore) { in onePathForCaps() argument
44 CapsModeUtils.getCapsMode(cs, mask, sp, hasSpaceBefore)); in onePathForCaps()
48 final SpacingAndPunctuations sp, final boolean hasSpaceBefore) { in allPathsForCaps() argument
52 onePathForCaps(cs, expectedResult, c | w | s, sp, hasSpaceBefore); in allPathsForCaps()
53 onePathForCaps(cs, expectedResult, w | s, sp, hasSpaceBefore); in allPathsForCaps()
54 onePathForCaps(cs, expectedResult, c | s, sp, hasSpaceBefore); in allPathsForCaps()
55 onePathForCaps(cs, expectedResult, c | w, sp, hasSpaceBefore); in allPathsForCaps()
56 onePathForCaps(cs, expectedResult, c, sp, hasSpaceBefore); in allPathsForCaps()
57 onePathForCaps(cs, expectedResult, w, sp, hasSpaceBefore); in allPathsForCaps()
58 onePathForCaps(cs, expectedResult, s, sp, hasSpaceBefore); in allPathsForCaps()
[all …]
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/
Dmetrics_manager_util_test.cpp39 using android::sp;
382 sp<UidMap> uidMap = new UidMap(); in TEST()
383 sp<StatsPullerManager> pullerManager = new StatsPullerManager(); in TEST()
384 sp<AlarmMonitor> anomalyAlarmMonitor; in TEST()
385 sp<AlarmMonitor> periodicAlarmMonitor; in TEST()
388 vector<sp<AtomMatchingTracker>> allAtomMatchingTrackers; in TEST()
390 vector<sp<ConditionTracker>> allConditionTrackers; in TEST()
392 vector<sp<MetricProducer>> allMetricProducers; in TEST()
394 std::vector<sp<AnomalyTracker>> allAnomalyTrackers; in TEST()
395 std::vector<sp<AlarmTracker>> allAlarmTrackers; in TEST()
[all …]
/packages/modules/StatsD/statsd/src/metrics/parsing_utils/
Dmetrics_manager_util.h42 sp<AtomMatchingTracker> createAtomMatchingTracker(const AtomMatcher& logMatcher, const int index,
43 const sp<UidMap>& uidMap);
52 sp<ConditionTracker> createConditionTracker(
67 const std::vector<sp<AtomMatchingTracker>>& allAtomMatchingTrackers,
78 const std::vector<sp<ConditionTracker>>& allConditionTrackers, int& conditionIndex,
98 optional<sp<MetricProducer>> createCountMetricProducerAndUpdateMetadata(
101 const std::vector<sp<AtomMatchingTracker>>& allAtomMatchingTrackers,
103 std::vector<sp<ConditionTracker>>& allConditionTrackers,
105 const std::vector<ConditionState>& initialConditionCache, const sp<ConditionWizard>& wizard,
117 optional<sp<MetricProducer>> createDurationMetricProducerAndUpdateMetadata(
[all …]
Dconfig_update_utils.h51 const std::vector<sp<AtomMatchingTracker>>& oldAtomMatchingTrackers,
65 bool updateAtomMatchingTrackers(const StatsdConfig& config, const sp<UidMap>& uidMap,
67 const std::vector<sp<AtomMatchingTracker>>& oldAtomMatchingTrackers,
70 std::vector<sp<AtomMatchingTracker>>& newAtomMatchingTrackers,
88 const std::vector<sp<ConditionTracker>>& oldConditionTrackers,
112 const std::vector<sp<ConditionTracker>>& oldConditionTrackers,
114 std::vector<sp<ConditionTracker>>& newConditionTrackers,
139 const vector<sp<MetricProducer>>& oldMetricProducers,
167 const int64_t currentTimeNs, const sp<StatsPullerManager>& pullerManager,
171 const std::vector<sp<AtomMatchingTracker>>& allAtomMatchingTrackers,
[all …]
Dmetrics_manager_util.cpp66 sp<AtomMatchingTracker> createAtomMatchingTracker(const AtomMatcher& logMatcher, const int index, in createAtomMatchingTracker()
67 const sp<UidMap>& uidMap) { in createAtomMatchingTracker()
86 sp<ConditionTracker> createConditionTracker( in createConditionTracker()
135 const vector<sp<AtomMatchingTracker>>& allAtomMatchingTrackers, in handleMetricWithAtomMatchingTrackers()
161 const vector<sp<ConditionTracker>>& allConditionTrackers, int& conditionIndex, in handleMetricWithConditions()
351 optional<sp<MetricProducer>> createCountMetricProducerAndUpdateMetadata( in createCountMetricProducerAndUpdateMetadata()
354 const vector<sp<AtomMatchingTracker>>& allAtomMatchingTrackers, in createCountMetricProducerAndUpdateMetadata()
356 vector<sp<ConditionTracker>>& allConditionTrackers, in createCountMetricProducerAndUpdateMetadata()
358 const vector<ConditionState>& initialConditionCache, const sp<ConditionWizard>& wizard, in createCountMetricProducerAndUpdateMetadata()
433 optional<sp<MetricProducer>> createDurationMetricProducerAndUpdateMetadata( in createDurationMetricProducerAndUpdateMetadata()
[all …]
Dconfig_update_utils.cpp37 const vector<sp<AtomMatchingTracker>>& oldAtomMatchingTrackers, in determineMatcherUpdateStatus()
110 bool updateAtomMatchingTrackers(const StatsdConfig& config, const sp<UidMap>& uidMap, in updateAtomMatchingTrackers()
112 const vector<sp<AtomMatchingTracker>>& oldAtomMatchingTrackers, in updateAtomMatchingTrackers()
115 vector<sp<AtomMatchingTracker>>& newAtomMatchingTrackers, in updateAtomMatchingTrackers()
156 const sp<AtomMatchingTracker>& tracker = in updateAtomMatchingTrackers()
169 sp<AtomMatchingTracker> tracker = createAtomMatchingTracker(matcher, i, uidMap); in updateAtomMatchingTrackers()
202 const vector<sp<ConditionTracker>>& oldConditionTrackers, in determineConditionUpdateStatus()
302 const vector<sp<ConditionTracker>>& oldConditionTrackers, in updateConditions()
304 vector<sp<ConditionTracker>>& newConditionTrackers, in updateConditions()
356 sp<ConditionTracker> tracker = in updateConditions()
[all …]
/packages/services/Car/cpp/watchdog/server/tests/
DWatchdogProcessServiceTest.cpp32 using ::android::sp;
42 sp<MockBinder> getBinder() const { return mBinder; } in getBinder()
47 sp<MockBinder> mBinder;
53 sp<MockBinder> getBinder() const { return mBinder; } in getBinder()
58 sp<MockBinder> mBinder;
66 sp<Looper> looper(Looper::prepare(/*opts=*/0)); in SetUp()
72 sp<WatchdogProcessService> mWatchdogProcessService;
75 sp<MockCarWatchdogClient> createMockCarWatchdogClient(status_t linkToDeathResult) { in createMockCarWatchdogClient()
76 sp<MockCarWatchdogClient> client = new MockCarWatchdogClient(); in createMockCarWatchdogClient()
77 sp<MockBinder> binder = client->getBinder(); in createMockCarWatchdogClient()
[all …]
DWatchdogBinderMediatorTest.cpp36 using ::android::sp;
50 const std::function<android::base::Result<void>(const char*, const android::sp<android::IBinder>&)>
52 [](const char*, const android::sp<android::IBinder>&) -> Result<void> { in __anon6dfd99110202()
79 explicit WatchdogBinderMediatorPeer(const sp<WatchdogBinderMediator>& mediator) : in WatchdogBinderMediatorPeer()
83 Result<void> init(const sp<IIoOveruseMonitor>& ioOveruseMonitor) { in init()
89 sp<WatchdogBinderMediator> mMediator;
97 mMockWatchdogProcessService = sp<MockWatchdogProcessService>::make(); in SetUp()
98 mMockWatchdogPerfService = sp<MockWatchdogPerfService>::make(); in SetUp()
100 sp<WatchdogBinderMediator>::make(mMockWatchdogProcessService, in SetUp()
102 sp<MockWatchdogServiceHelper>::make(), in SetUp()
[all …]
DWatchdogInternalHandlerTest.cpp51 using ::android::sp;
63 MockWatchdogBinderMediator(const android::sp<WatchdogProcessService>& watchdogProcessService, in MockWatchdogBinderMediator()
64 const android::sp<WatchdogPerfServiceInterface>& watchdogPerfService, in MockWatchdogBinderMediator()
65 const android::sp<IWatchdogServiceHelper>& watchdogServiceHelper) : in MockWatchdogBinderMediator()
67 [](const char*, const android::sp<android::IBinder>&) in MockWatchdogBinderMediator()
105 mMockWatchdogProcessService = sp<MockWatchdogProcessService>::make(); in SetUp()
106 mMockWatchdogPerfService = sp<MockWatchdogPerfService>::make(); in SetUp()
107 mMockWatchdogServiceHelper = sp<MockWatchdogServiceHelper>::make(); in SetUp()
108 mMockIoOveruseMonitor = sp<MockIoOveruseMonitor>::make(); in SetUp()
110 sp<MockWatchdogBinderMediator>::make(mMockWatchdogProcessService, in SetUp()
[all …]
DIoOveruseMonitorTest.cpp37 using ::android::sp;
171 explicit IoOveruseMonitorPeer(const sp<IoOveruseMonitor>& ioOveruseMonitor) : in IoOveruseMonitorPeer()
174 Result<void> init(const sp<IIoOveruseConfigs>& ioOveruseConfigs, in init()
175 const sp<IPackageInfoResolver>& packageInfoResolver) { in init()
188 sp<IoOveruseMonitor> mIoOveruseMonitor;
196 mMockWatchdogServiceHelper = sp<MockWatchdogServiceHelper>::make(); in SetUp()
197 mMockIoOveruseConfigs = sp<MockIoOveruseConfigs>::make(); in SetUp()
198 mMockPackageInfoResolver = sp<MockPackageInfoResolver>::make(); in SetUp()
199 mIoOveruseMonitor = sp<IoOveruseMonitor>::make(mMockWatchdogServiceHelper); in SetUp()
200 mIoOveruseMonitorPeer = sp<internal::IoOveruseMonitorPeer>::make(mIoOveruseMonitor); in SetUp()
[all …]
DWatchdogPerfServiceTest.cpp42 using ::android::sp;
68 explicit WatchdogPerfServicePeer(sp<WatchdogPerfService> service) : service(service) {} in WatchdogPerfServicePeer()
73 looperStub = sp<LooperStub>::make(); in injectFakes()
74 mockUidIoStats = sp<NiceMock<MockUidIoStats>>::make(); in injectFakes()
75 mockProcDiskStats = sp<NiceMock<MockProcDiskStats>>::make(); in injectFakes()
76 mockProcStat = sp<NiceMock<MockProcStat>>::make(); in injectFakes()
77 mockProcPidStat = sp<NiceMock<MockProcPidStat>>::make(); in injectFakes()
78 mockDataProcessor = sp<StrictMock<MockDataProcessor>>::make(); in injectFakes()
123 sp<WatchdogPerfService> service;
125 sp<LooperStub> looperStub;
[all …]
/packages/services/Car/cpp/watchdog/server/src/
DWatchdogProcessService.h48 explicit WatchdogProcessService(const android::sp<Looper>& handlerLooper);
58 const android::sp<IWatchdogServiceHelper>& helper);
60 virtual android::binder::Status registerClient(const android::sp<ICarWatchdogClient>& client,
62 virtual android::binder::Status unregisterClient(const android::sp<ICarWatchdogClient>& client);
63 virtual android::binder::Status registerCarWatchdogService(const android::sp<IBinder>& binder);
64 virtual void unregisterCarWatchdogService(const android::sp<IBinder>& binder);
66 const android::sp<android::automotive::watchdog::internal::ICarWatchdogMonitor>&
69 const android::sp<android::automotive::watchdog::internal::ICarWatchdogMonitor>&
71 virtual android::binder::Status tellClientAlive(const android::sp<ICarWatchdogClient>& client,
74 const android::sp<
[all …]
DWatchdogBinderMediator.h59 WatchdogBinderMediator(const android::sp<WatchdogProcessService>& watchdogProcessService,
60 const android::sp<WatchdogPerfServiceInterface>& watchdogPerfService,
61 const android::sp<IWatchdogServiceHelper>& watchdogServiceHelper,
63 const char*, const android::sp<android::IBinder>&)>&
69 android::binder::Status registerClient(const android::sp<ICarWatchdogClient>& client,
72 const android::sp<ICarWatchdogClient>& client) override;
73 android::binder::Status tellClientAlive(const android::sp<ICarWatchdogClient>& client,
77 const android::sp<IResourceOveruseListener>& listener);
79 const android::sp<IResourceOveruseListener>& listener);
86 const android::sp<ICarWatchdogClient>& mediator) override;
[all …]
DServiceManager.cpp28 using ::android::sp;
32 sp<WatchdogProcessService> ServiceManager::sWatchdogProcessService = nullptr;
33 sp<WatchdogPerfServiceInterface> ServiceManager::sWatchdogPerfService = nullptr;
34 sp<WatchdogBinderMediator> ServiceManager::sWatchdogBinderMediator = nullptr;
35 sp<IWatchdogServiceHelper> ServiceManager::sWatchdogServiceHelper = nullptr;
37 Result<void> ServiceManager::startServices(const sp<Looper>& looper) { in startServices()
48 sp<IPackageInfoResolver> packageInfoResolver = PackageInfoResolver::getInstance(); in startServices()
55 sWatchdogServiceHelper = sp<WatchdogServiceHelper>::make(); in startServices()
86 Result<void> ServiceManager::startProcessAnrMonitor(const sp<Looper>& looper) { in startProcessAnrMonitor()
87 sp<WatchdogProcessService> service = sp<WatchdogProcessService>::make(looper); in startProcessAnrMonitor()
[all …]
DWatchdogInternalHandler.h47 const android::sp<WatchdogBinderMediator>& binderMediator, in WatchdogInternalHandler()
48 const android::sp<IWatchdogServiceHelper>& watchdogServiceHelper, in WatchdogInternalHandler()
49 const android::sp<WatchdogProcessService>& watchdogProcessService, in WatchdogInternalHandler()
50 const android::sp<WatchdogPerfServiceInterface>& watchdogPerfService, in WatchdogInternalHandler()
51 const android::sp<IIoOveruseMonitor>& ioOveruseMonitor) : in WatchdogInternalHandler()
61 const android::sp<
65 const android::sp<
69 const android::sp<android::automotive::watchdog::internal::ICarWatchdogMonitor>&
72 const android::sp<android::automotive::watchdog::internal::ICarWatchdogMonitor>&
75 const android::sp<
[all …]
DWatchdogBinderMediator.cpp34 using ::android::sp;
48 const android::sp<android::IBinder>&)>;
70 Result<void> addToServiceManager(const char* serviceName, sp<IBinder> service) { in addToServiceManager()
81 const android::sp<WatchdogProcessService>& watchdogProcessService, in WatchdogBinderMediator()
82 const android::sp<WatchdogPerfServiceInterface>& watchdogPerfService, in WatchdogBinderMediator()
83 const android::sp<IWatchdogServiceHelper>& watchdogServiceHelper, in WatchdogBinderMediator()
92 mIoOveruseMonitor = sp<IoOveruseMonitor>::make(watchdogServiceHelper); in WatchdogBinderMediator()
94 sp<WatchdogInternalHandler>::make(this, watchdogServiceHelper, in WatchdogBinderMediator()
205 Status WatchdogBinderMediator::registerClient(const sp<ICarWatchdogClient>& client, in registerClient()
213 Status WatchdogBinderMediator::unregisterClient(const sp<ICarWatchdogClient>& client) { in unregisterClient()
[all …]
/packages/services/Car/cpp/powerpolicy/server/src/
DCarPowerPolicyServer.h45 CallbackInfo(const android::sp<ICarPowerPolicyChangeCallback>& callback, in CallbackInfo()
51 android::sp<ICarPowerPolicyChangeCallback> callback;
68 explicit BinderDeathRecipient(const android::sp<CarPowerPolicyServer>& service);
73 android::sp<CarPowerPolicyServer> mService;
78 explicit HidlDeathRecipient(const android::sp<CarPowerPolicyServer>& service);
84 sp<CarPowerPolicyServer> mService;
90 explicit PropertyChangeListener(const android::sp<CarPowerPolicyServer>& service);
102 android::sp<CarPowerPolicyServer> mService;
107 explicit MessageHandlerImpl(const android::sp<CarPowerPolicyServer>& service);
112 android::sp<CarPowerPolicyServer> mService;
[all …]
/packages/services/Car/cpp/evs/support_library/
DResourceManager.h33 using ::android::sp;
48 static sp<ResourceManager> getInstance();
67 sp<StreamHandler> obtainStreamHandler(string pCameraId);
89 sp<IEvsDisplay> openDisplay();
96 void closeDisplay(sp<IEvsDisplay>);
108 static sp<IEvsEnumerator> getEvsEnumerator(string serviceName = kDefaultServiceName);
112 static sp<ResourceManager> sInstance;
113 static sp<IEvsEnumerator> sEvs;
120 sp<IEvsCamera> camera;
121 sp<StreamHandler> handler;
[all …]
/packages/services/Car/cpp/evs/manager/1.0/
DEnumerator.cpp64 Return<sp<IEvsCamera>> Enumerator::openCamera(const hidl_string& cameraId) { in openCamera()
71 sp<HalCamera> hwCamera; in openCamera()
89 sp<IEvsCamera> device = mHwEnumerator->openCamera(cameraId); in openCamera()
102 sp<VirtualCamera> clientCamera; in openCamera()
119 Return<void> Enumerator::closeCamera(const ::android::sp<IEvsCamera>& clientCamera) { in closeCamera()
128 sp<VirtualCamera> virtualCamera = reinterpret_cast<VirtualCamera*>(clientCamera.get()); in closeCamera()
131 sp<HalCamera> halCamera = virtualCamera->getHalCamera(); in closeCamera()
150 Return<sp<IEvsDisplay>> Enumerator::openDisplay() { in openDisplay()
163 sp<IEvsDisplay> pActiveDisplay = mHwEnumerator->openDisplay(); in openDisplay()
175 sp<IEvsDisplay> pHalDisplay = new HalDisplay(pActiveDisplay); in openDisplay()
[all …]
/packages/services/Car/cpp/watchdog/vts/
DVtsAidlWatchdogTargetTest.cpp47 using ::android::sp;
106 MOCK_METHOD(status_t, linkToDeath, (const sp<DeathRecipient>&, void*, uint32_t), (override));
114 MockResourceOveruseListener() : mMockBinder(sp<MockBinder>::make()) {} in MockResourceOveruseListener()
125 sp<MockBinder> mMockBinder;
138 sp<ICarWatchdog> watchdogServer;
142 sp<MockCarWatchdogClient> mockClient = sp<MockCarWatchdogClient>::make(); in TEST_P()
161 sp<MockCarWatchdogClient> mockClient = sp<MockCarWatchdogClient>::make(); in TEST_P()
167 sp<MockCarWatchdogClient> mockClient = sp<MockCarWatchdogClient>::make(); in TEST_P()
173 sp<MockResourceOveruseListener> mockListener = sp<MockResourceOveruseListener>::make(); in TEST_P()
183 sp<MockResourceOveruseListener> mockListener = sp<MockResourceOveruseListener>::make(); in TEST_P()
[all …]
/packages/modules/StatsD/statsd/tests/
Dindexed_priority_queue_test.cpp33 bool operator()(const sp<const AATest> a, const sp<const AATest> b) const { in operator ()()
44 sp<const AATest> aa4 = new AATest{4, emptyMetricId, emptyDimensionId}; in TEST()
45 sp<const AATest> aa8 = new AATest{8, emptyMetricId, emptyDimensionId}; in TEST()
71 sp<const AATest> aa2 = new AATest{2, emptyMetricId, emptyDimensionId}; in TEST()
72 sp<const AATest> aa4 = new AATest{4, emptyMetricId, emptyDimensionId}; in TEST()
73 sp<const AATest> aa8 = new AATest{8, emptyMetricId, emptyDimensionId}; in TEST()
74 sp<const AATest> aa12 = new AATest{12, emptyMetricId, emptyDimensionId}; in TEST()
75 sp<const AATest> aa16 = new AATest{16, emptyMetricId, emptyDimensionId}; in TEST()
76 sp<const AATest> aa20 = new AATest{20, emptyMetricId, emptyDimensionId}; in TEST()
125 sp<const AATest> aa4_a = new AATest{4, emptyMetricId, emptyDimensionId}; in TEST()
[all …]
/packages/apps/Nfc/nci/jni/
DPeerToPeer.h391 android::sp<P2pServer> mServers[sMax];
392 android::sp<P2pClient> mClients[sMax];
428 android::sp<P2pServer> findServerLocked(tNFA_HANDLE nfaP2pServerHandle);
440 android::sp<P2pServer> findServerLocked(tJNI_HANDLE jniHandle);
452 android::sp<P2pServer> findServerLocked(const char* serviceName);
503 android::sp<P2pClient> findClient(tNFA_HANDLE nfaConnHandle);
515 android::sp<P2pClient> findClient(tJNI_HANDLE jniHandle);
527 android::sp<P2pClient> findClientCon(tNFA_HANDLE nfaConnHandle);
539 android::sp<NfaConn> findConnection(tNFA_HANDLE nfaConnHandle);
551 android::sp<NfaConn> findConnection(tJNI_HANDLE jniHandle);
[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/modules/StatsD/statsd/src/anomaly/
Dindexed_priority_queue.h32 size_t operator()(const sp<const AA>& k) const { in operator()
48 void push(sp<const AA> a);
53 bool remove(sp<const AA> a);
59 bool contains(sp<const AA> a) const;
61 sp<const AA> top() const;
73 std::vector<sp<const AA>> pq;
75 std::unordered_map<sp<const AA>, size_t, SpHash<AA>> indices;
93 void indexed_priority_queue<AA, Comparator>::push(sp<const AA> a) { in push()
103 bool indexed_priority_queue<AA, Comparator>::remove(sp<const AA> a) { in remove()
116 sp<const AA> last_a = pq.back(); in remove()
[all …]

12345678910>>...14