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.java63 * @param detector The detector reporting the event - use this to
65 * @return Whether or not the detector should consider this event
66 * as handled. If an event was not handled, the detector
72 public boolean onScale(ScaleGestureDetector detector); argument
78 * @param detector The detector reporting the event - use this to
80 * @return Whether or not the detector should continue recognizing
86 public boolean onScaleBegin(ScaleGestureDetector detector); argument
96 * @param detector Th
99 onScaleEnd(ScaleGestureDetector detector) argument
114 onScale(ScaleGestureDetector detector) argument
118 onScaleBegin(ScaleGestureDetector detector) argument
122 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/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/WallpaperCropper/src/com/android/wallpapercropper/
H A DCropView.java175 public boolean onScaleBegin(ScaleGestureDetector detector) { argument
180 public boolean onScale(ScaleGestureDetector detector) { argument
183 mRenderer.scale *= detector.getScaleFactor();
190 public void onScaleEnd(ScaleGestureDetector detector) { argument
/frameworks/av/media/libstagefright/
H A DStagefrightMetadataRetriever.cpp476 CharacterEncodingDetector *detector = new CharacterEncodingDetector(); local
482 // add to charset detector
483 detector->addTag(kMap[i].name, value);
491 detector->detectAndConvert();
492 int size = detector->size();
497 detector->getTag(i, &name, &value);
505 delete detector;
/frameworks/base/core/java/android/provider/
H A DCallLog.java622 final CountryDetector detector = (CountryDetector) context.getSystemService(
624 if (detector != null) {
625 final Country country = detector.detectCountry();
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DScreenMagnifier.java534 public boolean onScale(ScaleGestureDetector detector) { argument
537 mInitialScaleFactor = detector.getScaleFactor();
539 final float deltaScale = detector.getScaleFactor() - mInitialScaleFactor;
548 * detector.getScaleFactor();
553 mMagnificationController.setScale(normalizedNewScale, detector.getFocusX(),
554 detector.getFocusY(), false);
559 public boolean onScaleBegin(ScaleGestureDetector detector) { argument
564 public void onScaleEnd(ScaleGestureDetector detector) { argument
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DCallerInfo.java590 CountryDetector detector = (CountryDetector) context.getSystemService(
592 if (detector != null) {
593 Country country = detector.detectCountry();
/frameworks/base/services/core/java/com/android/server/display/
H A DOverlayDisplayWindow.java364 public boolean onScale(ScaleGestureDetector detector) {
365 mLiveScale *= detector.getScaleFactor();
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
H A DPhotoView.java127 /** Gesture detector */
129 /** Gesture detector that detects pinch gestures */
368 public boolean onScale(ScaleGestureDetector detector) { argument
372 float newScale = currentScale * detector.getScaleFactor();
373 scale(newScale, detector.getFocusX(), detector.getFocusY());
379 public boolean onScaleBegin(ScaleGestureDetector detector) { argument
388 public void onScaleEnd(ScaleGestureDetector detector) { argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DExpandHelper.java123 public boolean onScaleBegin(ScaleGestureDetector detector) {
131 public boolean onScale(ScaleGestureDetector detector) {
137 public void onScaleEnd(ScaleGestureDetector detector) {
584 // reset the gesture detector
/frameworks/base/telephony/java/android/telephony/
H A DPhoneNumberUtils.java2019 CountryDetector detector = (CountryDetector) context.getSystemService(
2021 if (detector != null && detector.detectCountry() != null) {
2022 countryIso = detector.detectCountry().getCountryIso();
/frameworks/base/docs/html/training/
H A Dtraining_toc.cs1419 <li><a href="<?cs var:toroot ?>training/gestures/detector.html">

Completed in 2102 milliseconds