Home
last modified time | relevance | path

Searched refs:detector (Results 1 – 16 of 16) 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/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.java53 public boolean onScale(ScaleGestureDetector detector) { in onScale() argument
54 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.java446 public boolean onScale(ScaleGestureDetector detector) { in onScale() argument
449 mInitialScaleFactor = detector.getScaleFactor(); in onScale()
451 final float deltaScale = detector.getScaleFactor() - mInitialScaleFactor; in onScale()
461 final float targetScale = initialScale * detector.getScaleFactor(); in onScale()
479 final float pivotX = detector.getFocusX(); in onScale()
480 final float pivotY = detector.getFocusY(); in onScale()
487 public boolean onScaleBegin(ScaleGestureDetector detector) { in onScaleBegin() argument
492 public void onScaleEnd(ScaleGestureDetector detector) { in onScaleEnd() argument
/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.cpp744 CharacterEncodingDetector *detector = new CharacterEncodingDetector(); in parseMetaData() local
751 detector->addTag(kMap[i].name, value); in parseMetaData()
759 detector->detectAndConvert(); in parseMetaData()
760 int size = detector->size(); in parseMetaData()
765 detector->getTag(i, &name, &value); in parseMetaData()
773 delete detector; in parseMetaData()
/frameworks/base/telephony/java/com/android/internal/telephony/
DCallerInfo.java617 CountryDetector detector = (CountryDetector) context.getSystemService( in getCurrentCountryIso() local
619 if (detector != null) { in getCurrentCountryIso()
620 Country country = detector.detectCountry(); in getCurrentCountryIso()
/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/core/java/android/provider/
DCallLog.java937 final CountryDetector detector = (CountryDetector) context.getSystemService( in getCurrentCountryIso() local
939 if (detector != null) { in getCurrentCountryIso()
940 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/support/samples/Support7Demos/src/com/example/android/supportv7/media/
DOverlayDisplayWindow.java485 public boolean onScale(ScaleGestureDetector detector) {
486 mLiveScale *= detector.getScaleFactor();
/frameworks/base/telephony/java/android/telephony/
DPhoneNumberUtils.java2103 CountryDetector detector = (CountryDetector) context.getSystemService( in isLocalEmergencyNumberInternal() local
2105 if (detector != null && detector.detectCountry() != null) { in isLocalEmergencyNumberInternal()
2106 countryIso = detector.detectCountry().getCountryIso(); in isLocalEmergencyNumberInternal()