Searched refs:detector (Results 1 - 18 of 18) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/location/
H A DLocationBasedCountryDetectorTest.java186 TestCountryDetector detector = new TestCountryDetector(country, provider);
189 detector.setAcceptableProvider(acceptableProviders);
192 detector.setCountryListener(countryListener);
193 detector.detectCountry();
196 assertEquals(acceptableProviders.size(), detector.getListenersCount());
197 Map<String, LocationListener> listeners = detector.getListeners();
202 assertEquals(TestCountryDetector.TOTAL_PROVIDERS, detector.getListenersCount());
205 detector.notifyLocationFound();
207 assertEquals(0, detector.getListenersCount());
208 assertNull(detector
345 waitForTimerReset(TestCountryDetector detector) argument
366 waitForQueryThreadLaunched(TestCountryDetector detector) argument
[all...]
/frameworks/base/tests/TransformTest/src/com/google/android/test/transform/
H A DTransformTestActivity.java77 public boolean onScale(ScaleGestureDetector detector) { argument
78 float scale = detector.getScaleFactor();
97 float centerX = detector.getFocusX();
98 float centerY = detector.getFocusY();
115 public boolean onScaleBegin(ScaleGestureDetector detector) { argument
119 public void onScaleEnd(ScaleGestureDetector detector) { argument
120 mLastX = detector.getFocusX();
121 mLastY = detector.getFocusY();
/frameworks/base/core/java/android/view/
H A DScaleGestureDetector.java61 * @param detector The detector reporting the event - use this to
63 * @return Whether or not the detector should consider this event
64 * as handled. If an event was not handled, the detector
70 public boolean onScale(ScaleGestureDetector detector); argument
76 * @param detector The detector reporting the event - use this to
78 * @return Whether or not the detector should continue recognizing
84 public boolean onScaleBegin(ScaleGestureDetector detector); argument
94 * @param detector Th
97 onScaleEnd(ScaleGestureDetector detector) argument
112 onScale(ScaleGestureDetector detector) argument
116 onScaleBegin(ScaleGestureDetector detector) argument
120 onScaleEnd(ScaleGestureDetector detector) argument
[all...]
/frameworks/base/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/
H A DFBOSyncView.java137 public boolean onScale(ScaleGestureDetector detector) { argument
138 mRender.onActionScale(detector.getScaleFactor());
H A DFBOTestView.java137 public boolean onScale(ScaleGestureDetector detector) { argument
138 mRender.onActionScale(detector.getScaleFactor());
/frameworks/base/tests/RenderScriptTests/ShadersTest/src/com/android/shaderstest/
H A DShadersTestView.java131 public boolean onScale(ScaleGestureDetector detector) { argument
132 mRender.onActionScale(detector.getScaleFactor());
/frameworks/base/core/java/android/webkit/
H A DZoomManager.java818 public boolean onScaleBegin(ScaleGestureDetector detector) { argument
822 mFocusX = detector.getFocusX();
823 mFocusY = detector.getFocusY();
832 public boolean isPanningOnly(ScaleGestureDetector detector) { argument
835 mFocusX = detector.getFocusX();
836 mFocusY = detector.getFocusY();
841 float deltaSpan = detector.getCurrentSpan() - detector.getPreviousSpan() +
852 public boolean handleScale(ScaleGestureDetector detector) { argument
853 float scale = detector
884 onScale(ScaleGestureDetector detector) argument
892 onScaleEnd(ScaleGestureDetector detector) argument
[all...]
H A DWebViewClassic.java1343 final ScaleGestureDetector detector =
1373 if (detector != null) {
1374 detector.onTouchEvent(ev);
1375 if (detector.isInProgress()) {
4408 final ScaleGestureDetector detector = mZoomManager.getScaleGestureDetector();
4409 if (detector != null && detector.isInProgress()) {
5763 void onPinchToZoomAnimationEnd(ScaleGestureDetector detector) { argument
5770 startTouch(detector.getFocusX(), detector
[all...]
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/
H A DSimpleModelView.java164 public boolean onScale(ScaleGestureDetector detector) { argument
165 mRender.onActionScale(detector.getScaleFactor());
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/
H A DTestAppView.java146 public boolean onScale(ScaleGestureDetector detector) { argument
147 mRender.onActionScale(detector.getScaleFactor());
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DExpandHelper.java115 public boolean onScaleBegin(ScaleGestureDetector detector) {
117 float focusX = detector.getFocusX();
118 float focusY = detector.getFocusY();
128 public boolean onScale(ScaleGestureDetector detector) {
134 public void onScaleEnd(ScaleGestureDetector detector) {
597 // reset the gesture detector
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DCallerInfo.java568 CountryDetector detector = (CountryDetector) context.getSystemService(
570 if (detector != null) {
571 countryIso = detector.detectCountry().getCountryIso();
H A DCallerInfoAsyncQuery.java274 CountryDetector detector = (CountryDetector) mQueryContext.getSystemService(
278 detector.detectCountry().getCountryIso());
/frameworks/base/services/java/com/android/server/display/
H A DOverlayDisplayWindow.java352 public boolean onScale(ScaleGestureDetector detector) {
353 mLiveScale *= detector.getScaleFactor();
/frameworks/ex/photoviewer/src/com/android/ex/photo/views/
H A DPhotoView.java112 /** Gesture detector */
114 /** Gesture detector that detects pinch gestures */
268 public boolean onScale(ScaleGestureDetector detector) { argument
272 float newScale = currentScale * detector.getScaleFactor();
273 scale(newScale, detector.getFocusX(), detector.getFocusY());
279 public boolean onScaleBegin(ScaleGestureDetector detector) { argument
288 public void onScaleEnd(ScaleGestureDetector detector) { argument
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
H A DPhotoView.java114 /** Gesture detector */
116 /** Gesture detector that detects pinch gestures */
270 public boolean onScale(ScaleGestureDetector detector) { argument
274 float newScale = currentScale * detector.getScaleFactor();
275 scale(newScale, detector.getFocusX(), detector.getFocusY());
281 public boolean onScaleBegin(ScaleGestureDetector detector) { argument
290 public void onScaleEnd(ScaleGestureDetector detector) { argument
/frameworks/base/services/java/com/android/server/accessibility/
H A DScreenMagnifier.java429 public boolean onScale(ScaleGestureDetector detector) { argument
432 mInitialScaleFactor = detector.getScaleFactor();
434 final float deltaScale = detector.getScaleFactor() - mInitialScaleFactor;
443 * detector.getScaleFactor();
448 mMagnificationController.setScale(normalizedNewScale, detector.getFocusX(),
449 detector.getFocusY(), false);
454 public boolean onScaleBegin(ScaleGestureDetector detector) { argument
459 public void onScaleEnd(ScaleGestureDetector detector) { argument
/frameworks/base/telephony/java/android/telephony/
H A DPhoneNumberUtils.java1801 CountryDetector detector = (CountryDetector) context.getSystemService(
1803 if (detector != null) {
1804 countryIso = detector.detectCountry().getCountryIso();

Completed in 2212 milliseconds