Home
last modified time | relevance | path

Searched refs:detector (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/location/
DLocationBasedCountryDetectorTest.java186 TestCountryDetector detector = new TestCountryDetector(country, provider); in testFindingCountryCommon() local
189 detector.setAcceptableProvider(acceptableProviders); in testFindingCountryCommon()
192 detector.setCountryListener(countryListener); in testFindingCountryCommon()
193 detector.detectCountry(); in testFindingCountryCommon()
196 assertEquals(acceptableProviders.size(), detector.getListenersCount()); in testFindingCountryCommon()
197 Map<String, LocationListener> listeners = detector.getListeners(); in testFindingCountryCommon()
202 assertEquals(TestCountryDetector.TOTAL_PROVIDERS, detector.getListenersCount()); in testFindingCountryCommon()
205 detector.notifyLocationFound(); in testFindingCountryCommon()
207 assertEquals(0, detector.getListenersCount()); in testFindingCountryCommon()
208 assertNull(detector.getTimer()); in testFindingCountryCommon()
[all …]
/frameworks/base/tests/TransformTest/src/com/google/android/test/transform/
DTransformTestActivity.java77 public boolean onScale(ScaleGestureDetector detector) { in onScale() argument
78 float scale = detector.getScaleFactor(); in onScale()
97 float centerX = detector.getFocusX(); in onScale()
98 float centerY = detector.getFocusY(); in onScale()
115 public boolean onScaleBegin(ScaleGestureDetector detector) { in onScaleBegin() argument
119 public void onScaleEnd(ScaleGestureDetector detector) { in onScaleEnd() argument
120 mLastX = detector.getFocusX(); in onScaleEnd()
121 mLastY = detector.getFocusY(); in onScaleEnd()
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/gesture/
DConsecutiveTapsGestureDetectorTest.java41 private ConsecutiveTapsGestureDetector detector; field in ConsecutiveTapsGestureDetectorTest
52 detector = new ConsecutiveTapsGestureDetector(listener, view); in setUp()
110 detector.onTouchEvent( in tap()
112 detector.onTouchEvent( in tap()
/frameworks/base/core/java/android/view/
DScaleGestureDetector.java70 public boolean onScale(ScaleGestureDetector detector); in onScale() argument
84 public boolean onScaleBegin(ScaleGestureDetector detector); in onScaleBegin() argument
97 public void onScaleEnd(ScaleGestureDetector detector); in onScaleEnd() argument
112 public boolean onScale(ScaleGestureDetector detector) { in onScale() argument
116 public boolean onScaleBegin(ScaleGestureDetector detector) { in onScaleBegin() argument
120 public void onScaleEnd(ScaleGestureDetector detector) { in onScaleEnd() argument
/frameworks/base/core/tests/coretests/src/android/view/
DScaleGesture.java48 public boolean onScale(ScaleGestureDetector detector) { in onScale() argument
49 mFactor *= detector.getScaleFactor(); in onScale()
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/
DVrView.java146 public boolean onScale(ScaleGestureDetector detector) { in setup()
147 … double width = mState1.mTransform.getScreenWidth() / detector.getScaleFactor(); in setup()
149 panMove(detector.getFocusX(), detector.getFocusY()); in setup()
155 public boolean onScaleBegin(ScaleGestureDetector detector) { in setup()
156 panDown(detector.getFocusX(), detector.getFocusY()); in setup()
162 public void onScaleEnd(ScaleGestureDetector detector) { in setup()
/frameworks/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/
DSoundTriggerTestService.java204 if (modelInfo.detector != null) { in stopAllRecognitionsAndUnload()
207 modelInfo.detector.stopRecognition(); in stopAllRecognitionsAndUnload()
213 modelInfo.detector = null; in stopAllRecognitionsAndUnload()
228 public SoundTriggerDetector detector; field in SoundTriggerTestService.ModelInfo
275 modelInfo.detector = null; in unloadModel()
318 if (modelInfo.detector == null) { in startRecognition()
320 modelInfo.detector = mSoundTriggerUtil.createSoundTriggerDetector( in startRecognition()
325 if (modelInfo.detector.startRecognition(modelInfo.captureAudio ? in startRecognition()
343 if (modelInfo.detector == null) { in stopRecognition()
350 if (modelInfo.detector.stopRecognition()) { in stopRecognition()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DMagnificationGestureHandler.java434 public boolean onScale(ScaleGestureDetector detector) { in onScale() argument
437 mInitialScaleFactor = detector.getScaleFactor(); in onScale()
440 final float deltaScale = detector.getScaleFactor() - mInitialScaleFactor; in onScale()
446 final float targetScale = initialScale * detector.getScaleFactor(); in onScale()
464 final float pivotX = detector.getFocusX(); in onScale()
465 final float pivotY = detector.getFocusY(); in onScale()
473 public boolean onScaleBegin(ScaleGestureDetector detector) { in onScaleBegin() argument
478 public void onScaleEnd(ScaleGestureDetector detector) { in onScaleEnd() argument
DAccessibilityGestureDetector.java236 AccessibilityGestureDetector(Context context, Listener listener, GestureDetector detector) { in AccessibilityGestureDetector() argument
241 if (detector == null) { in AccessibilityGestureDetector()
244 mGestureDetector = detector; in AccessibilityGestureDetector()
DTouchExplorer.java186 AccessibilityGestureDetector detector) { in TouchExplorer() argument
203 if (detector == null) { in TouchExplorer()
206 mGestureDetector = detector; in TouchExplorer()
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
DCropView.java174 public boolean onScaleBegin(ScaleGestureDetector detector) { in onScaleBegin() argument
179 public boolean onScale(ScaleGestureDetector detector) { in onScale() argument
182 mRenderer.scale *= detector.getScaleFactor(); in onScale()
189 public void onScaleEnd(ScaleGestureDetector detector) { in onScaleEnd() argument
/frameworks/av/media/libstagefright/
DStagefrightMetadataRetriever.cpp465 CharacterEncodingDetector *detector = new CharacterEncodingDetector(); in parseMetaData() local
472 detector->addTag(kMap[i].name, value); in parseMetaData()
480 detector->detectAndConvert(); in parseMetaData()
481 int size = detector->size(); in parseMetaData()
486 detector->getTag(i, &name, &value); in parseMetaData()
494 delete detector; in parseMetaData()
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
DPhotoView.java370 public boolean onScale(ScaleGestureDetector detector) { in onScale() argument
374 float newScale = currentScale * detector.getScaleFactor(); in onScale()
375 scale(newScale, detector.getFocusX(), detector.getFocusY()); in onScale()
381 public boolean onScaleBegin(ScaleGestureDetector detector) { in onScaleBegin() argument
390 public void onScaleEnd(ScaleGestureDetector detector) { in onScaleEnd() argument
/frameworks/base/telephony/java/com/android/internal/telephony/
DCallerInfo.java642 CountryDetector detector = (CountryDetector) context.getSystemService( in getCurrentCountryIso() local
644 if (detector != null) { in getCurrentCountryIso()
645 Country country = detector.detectCountry(); in getCurrentCountryIso()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DTouchExplorerTest.java104 AccessibilityGestureDetector detector = mock(AccessibilityGestureDetector.class); in setUp() local
106 mTouchExplorer = new TouchExplorer(context, ams, detector); in setUp()
/frameworks/base/core/java/android/provider/
DCallLog.java1082 final CountryDetector detector = (CountryDetector) context.getSystemService( in getCurrentCountryIso() local
1084 if (detector != null) { in getCurrentCountryIso()
1085 final Country country = detector.detectCountry(); in getCurrentCountryIso()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DExpandHelper.java114 public boolean onScaleBegin(ScaleGestureDetector detector) {
124 public boolean onScale(ScaleGestureDetector detector) {
130 public void onScaleEnd(ScaleGestureDetector detector) {
/frameworks/base/services/core/java/com/android/server/display/
DOverlayDisplayWindow.java380 public boolean onScale(ScaleGestureDetector detector) {
381 mLiveScale *= detector.getScaleFactor();
/frameworks/base/telephony/java/android/telephony/
DPhoneNumberUtils.java2181 CountryDetector detector = (CountryDetector) context.getSystemService( in isLocalEmergencyNumberInternal() local
2183 if (detector != null && detector.detectCountry() != null) { in isLocalEmergencyNumberInternal()
2184 countryIso = detector.detectCountry().getCountryIso(); in isLocalEmergencyNumberInternal()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DRILTest.java313 RadioBugDetector detector = mRILInstance.getRadioBugDetector(); in testRadioErrorWithWakelockTimeout() local
314 int wakelockTimeoutThreshold = detector.getWakelockTimeoutThreshold(); in testRadioErrorWithWakelockTimeout()
324 assertTrue(1 == detector.getWakelockTimoutCount()); in testRadioErrorWithWakelockTimeout()
330 RadioBugDetector detector = mRILUnderTest.getRadioBugDetector(); in testRadioErrorWithContinuousSystemErr() local
331 int systemErrorThreshold = detector.getSystemErrorThreshold(); in testRadioErrorWithContinuousSystemErr()
339 int status = detector.getRadioBugStatus(); in testRadioErrorWithContinuousSystemErr()