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/view/
DScaleGestureDetector.java72 public boolean onScale(ScaleGestureDetector detector); in onScale() argument
86 public boolean onScaleBegin(ScaleGestureDetector detector); in onScaleBegin() argument
99 public void onScaleEnd(ScaleGestureDetector detector); in onScaleEnd() argument
114 public boolean onScale(ScaleGestureDetector detector) { in onScale() argument
118 public boolean onScaleBegin(ScaleGestureDetector detector) { in onScaleBegin() argument
122 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/
DFBOSyncView.java137 public boolean onScale(ScaleGestureDetector detector) { in onScale() argument
138 mRender.onActionScale(detector.getScaleFactor()); in onScale()
DFBOTestView.java137 public boolean onScale(ScaleGestureDetector detector) { in onScale() argument
138 mRender.onActionScale(detector.getScaleFactor()); in onScale()
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
DCropView.java175 public boolean onScaleBegin(ScaleGestureDetector detector) { in onScaleBegin() argument
180 public boolean onScale(ScaleGestureDetector detector) { in onScale() argument
183 mRenderer.scale *= detector.getScaleFactor(); in onScale()
190 public void onScaleEnd(ScaleGestureDetector detector) { in onScaleEnd() argument
/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.java545 public boolean onScale(ScaleGestureDetector detector) { in onScale() argument
548 mInitialScaleFactor = detector.getScaleFactor(); in onScale()
550 final float deltaScale = detector.getScaleFactor() - mInitialScaleFactor; in onScale()
559 * detector.getScaleFactor(); in onScale()
564 mMagnificationController.setScale(normalizedNewScale, detector.getFocusX(), in onScale()
565 detector.getFocusY(), false); in onScale()
570 public boolean onScaleBegin(ScaleGestureDetector detector) { in onScaleBegin() argument
575 public void onScaleEnd(ScaleGestureDetector detector) { in onScaleEnd() argument
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
DPhotoView.java330 public boolean onScale(ScaleGestureDetector detector) { in onScale() argument
334 float newScale = currentScale * detector.getScaleFactor(); in onScale()
335 scale(newScale, detector.getFocusX(), detector.getFocusY()); in onScale()
341 public boolean onScaleBegin(ScaleGestureDetector detector) { in onScaleBegin() argument
350 public void onScaleEnd(ScaleGestureDetector detector) { in onScaleEnd() argument
/frameworks/base/telephony/java/com/android/internal/telephony/
DCallerInfo.java566 CountryDetector detector = (CountryDetector) context.getSystemService( in getCurrentCountryIso() local
568 if (detector != null) { in getCurrentCountryIso()
569 Country country = detector.detectCountry(); in getCurrentCountryIso()
/frameworks/base/services/java/com/android/server/display/
DOverlayDisplayWindow.java362 public boolean onScale(ScaleGestureDetector detector) {
363 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/telephony/java/android/telephony/
DPhoneNumberUtils.java1806 CountryDetector detector = (CountryDetector) context.getSystemService( in isLocalEmergencyNumberInternal() local
1808 if (detector != null && detector.detectCountry() != null) { in isLocalEmergencyNumberInternal()
1809 countryIso = detector.detectCountry().getCountryIso(); in isLocalEmergencyNumberInternal()
/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/docs/html/about/versions/
Dandroid-2.2-highlights.jd287 for these situations. A scale gesture detector API provides improved definition of multi-touch
Dkitkat.jd388 the hardware step-detector to offer long-running, low-power services.
392 <h4 id="44-step-detector">Step Detector and Step Counter</h4>
396 support for two new composite sensors &mdash; step detector
403 The step detector analyzes accelerometer input to recognize when the user has
412 Step detector and counter sensors are available on Nexus 5, and we're working
Dandroid-4.4.jd565 <dd>The device includes a hardware step detector.</dd>
/frameworks/base/docs/html/guide/topics/connectivity/
Dbluetooth-le.jd71 detector.</li>