/frameworks/base/services/tests/servicestests/src/com/android/server/location/ |
D | LocationBasedCountryDetectorTest.java | 186 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/ |
D | TransformTestActivity.java | 77 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/ |
D | ScaleGestureDetector.java | 70 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/ |
D | ScaleGesture.java | 53 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/ |
D | VrView.java | 146 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/ |
D | SoundTriggerTestService.java | 204 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/ |
D | MagnificationGestureHandler.java | 446 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/ |
D | CropView.java | 174 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/ |
D | StagefrightMetadataRetriever.cpp | 744 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/ |
D | CallerInfo.java | 617 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/ |
D | PhotoView.java | 370 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/ |
D | CallLog.java | 937 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/ |
D | ExpandHelper.java | 114 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/ |
D | OverlayDisplayWindow.java | 380 public boolean onScale(ScaleGestureDetector detector) { 381 mLiveScale *= detector.getScaleFactor();
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/ |
D | OverlayDisplayWindow.java | 485 public boolean onScale(ScaleGestureDetector detector) { 486 mLiveScale *= detector.getScaleFactor();
|
/frameworks/base/telephony/java/android/telephony/ |
D | PhoneNumberUtils.java | 2103 CountryDetector detector = (CountryDetector) context.getSystemService( in isLocalEmergencyNumberInternal() local 2105 if (detector != null && detector.detectCountry() != null) { in isLocalEmergencyNumberInternal() 2106 countryIso = detector.detectCountry().getCountryIso(); in isLocalEmergencyNumberInternal()
|