Home
last modified time | relevance | path

Searched refs:detector (Results 1 – 24 of 24) 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/webkit/
DZoomManager.java818 public boolean onScaleBegin(ScaleGestureDetector detector) {
822 mFocusX = detector.getFocusX();
823 mFocusY = detector.getFocusY();
832 public boolean isPanningOnly(ScaleGestureDetector detector) {
835 mFocusX = detector.getFocusX();
836 mFocusY = detector.getFocusY();
841 float deltaSpan = detector.getCurrentSpan() - detector.getPreviousSpan() +
852 public boolean handleScale(ScaleGestureDetector detector) {
853 float scale = detector.getScaleFactor() * mActualScale;
876 setZoomCenter(detector.getFocusX(), detector.getFocusY());
[all …]
DWebViewClassic.java1373 final ScaleGestureDetector detector = in onHandleUiTouchEvent() local
1403 if (detector != null) { in onHandleUiTouchEvent()
1404 detector.onTouchEvent(ev); in onHandleUiTouchEvent()
1405 if (detector.isInProgress()) { in onHandleUiTouchEvent()
4446 final ScaleGestureDetector detector = mZoomManager.getScaleGestureDetector(); in performLongClick()
4447 if (detector != null && detector.isInProgress()) { in performLongClick()
5782 void onPinchToZoomAnimationEnd(ScaleGestureDetector detector) { in onPinchToZoomAnimationEnd() argument
5789 startTouch(detector.getFocusX(), detector.getFocusY(), mLastTouchTime); in onPinchToZoomAnimationEnd()
5858 ScaleGestureDetector detector = mZoomManager.getScaleGestureDetector(); in handleTouchEventCommon() local
6020 if ((detector == null || !detector.isInProgress()) in handleTouchEventCommon()
/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/tests/RenderScriptTests/ShadersTest/src/com/android/shaderstest/
DShadersTestView.java131 public boolean onScale(ScaleGestureDetector detector) { in onScale() argument
132 mRender.onActionScale(detector.getScaleFactor()); in onScale()
/frameworks/base/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/
DFBOTestView.java137 public boolean onScale(ScaleGestureDetector detector) { in onScale() argument
138 mRender.onActionScale(detector.getScaleFactor()); in onScale()
DFBOSyncView.java137 public boolean onScale(ScaleGestureDetector detector) { in onScale() argument
138 mRender.onActionScale(detector.getScaleFactor()); in onScale()
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/
DTestAppView.java146 public boolean onScale(ScaleGestureDetector detector) { in onScale() argument
147 mRender.onActionScale(detector.getScaleFactor()); in onScale()
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/
DSimpleModelView.java164 public boolean onScale(ScaleGestureDetector detector) { in onScale() argument
165 mRender.onActionScale(detector.getScaleFactor()); in onScale()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
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) {
/frameworks/base/services/java/com/android/server/accessibility/
DScreenMagnifier.java544 public boolean onScale(ScaleGestureDetector detector) { in onScale() argument
547 mInitialScaleFactor = detector.getScaleFactor(); in onScale()
549 final float deltaScale = detector.getScaleFactor() - mInitialScaleFactor; in onScale()
558 * detector.getScaleFactor(); in onScale()
563 mMagnificationController.setScale(normalizedNewScale, detector.getFocusX(), in onScale()
564 detector.getFocusY(), false); in onScale()
569 public boolean onScaleBegin(ScaleGestureDetector detector) { in onScaleBegin() argument
574 public void onScaleEnd(ScaleGestureDetector detector) { in onScaleEnd() argument
/frameworks/base/telephony/java/com/android/internal/telephony/
DCallerInfo.java569 CountryDetector detector = (CountryDetector) context.getSystemService( in getCurrentCountryIso() local
571 if (detector != null) { in getCurrentCountryIso()
572 countryIso = detector.detectCountry().getCountryIso(); in getCurrentCountryIso()
DCallerInfoAsyncQuery.java274 CountryDetector detector = (CountryDetector) mQueryContext.getSystemService( in onQueryComplete() local
278 detector.detectCountry().getCountryIso()); in onQueryComplete()
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
DPhotoView.java266 public boolean onScale(ScaleGestureDetector detector) { in onScale() argument
270 float newScale = currentScale * detector.getScaleFactor(); in onScale()
271 scale(newScale, detector.getFocusX(), detector.getFocusY()); in onScale()
277 public boolean onScaleBegin(ScaleGestureDetector detector) { in onScaleBegin() argument
286 public void onScaleEnd(ScaleGestureDetector detector) { in onScaleEnd() argument
/frameworks/base/services/java/com/android/server/display/
DOverlayDisplayWindow.java352 public boolean onScale(ScaleGestureDetector detector) {
353 mLiveScale *= detector.getScaleFactor();
/frameworks/base/docs/html/training/gestures/
Ddetector.jd185 and pass along all observed events to the detector instance.</p>
210 // Instantiate the gesture detector with the
214 // Set the gesture detector as the double tap
Dindex.jd60 <strong><a href="detector.html">Detecting Common Gestures</a></strong>
Dscale.jd266 <p>As discussed in <a href="detector.html">Detecting Common Gestures</a>,
317 public boolean onScale(ScaleGestureDetector detector) {
318 mScaleFactor *= detector.getScaleFactor();
Dmovement.jd49 href="detector.html">Detecting Common Gestures</a>, all of these events are
/frameworks/base/docs/html-intl/es/training/multiscreen/
Dadaptui.jd67 …el nivel 11 del API y en niveles superiores). Por tanto, para añadir el detector de eventos para e…
165 <p>A continuación, cuando el usuario selecciona un encabezado, el fragmento notifica el detector es…
/frameworks/base/telephony/java/android/telephony/
DPhoneNumberUtils.java1801 CountryDetector detector = (CountryDetector) context.getSystemService( in isLocalEmergencyNumberInternal() local
1803 if (detector != null) { in isLocalEmergencyNumberInternal()
1804 countryIso = detector.detectCountry().getCountryIso(); in isLocalEmergencyNumberInternal()
/frameworks/base/docs/html/about/versions/
Dandroid-2.2-highlights.jd287 for these situations. A scale gesture detector API provides improved definition of multi-touch
/frameworks/base/docs/html/training/
Dtraining_toc.cs871 <li><a href="<?cs var:toroot ?>training/gestures/detector.html">