Home
last modified time | relevance | path

Searched refs:detector (Results 1 – 25 of 31) sorted by relevance

12

/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.java71 public boolean onScale(ScaleGestureDetector detector); in onScale() argument
85 public boolean onScaleBegin(ScaleGestureDetector detector); in onScaleBegin() argument
98 public void onScaleEnd(ScaleGestureDetector detector); in onScaleEnd() argument
113 public boolean onScale(ScaleGestureDetector detector) { in onScale() argument
117 public boolean onScaleBegin(ScaleGestureDetector detector) { in onScaleBegin() argument
121 public void onScaleEnd(ScaleGestureDetector detector) { in onScaleEnd() argument
/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/
DVrView.java147 public boolean onScale(ScaleGestureDetector detector) { in setup()
148 … double width = mState1.mTransform.getScreenWidth() / detector.getScaleFactor(); in setup()
150 panMove(detector.getFocusX(), detector.getFocusY()); in setup()
156 public boolean onScaleBegin(ScaleGestureDetector detector) { in setup()
157 panDown(detector.getFocusX(), detector.getFocusY()); in setup()
163 public void onScaleEnd(ScaleGestureDetector detector) { in setup()
/frameworks/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/
DSoundTriggerTestService.java202 if (modelInfo.detector != null) { in stopAllRecognitions()
205 modelInfo.detector.stopRecognition(); in stopAllRecognitions()
220 public SoundTriggerDetector detector; field in SoundTriggerTestService.ModelInfo
267 modelInfo.detector = null; in unloadModel()
310 if (modelInfo.detector == null) { in startRecognition()
312 modelInfo.detector = mSoundTriggerUtil.createSoundTriggerDetector( in startRecognition()
317 if (modelInfo.detector.startRecognition(modelInfo.captureAudio ? in startRecognition()
335 if (modelInfo.detector == null) { in stopRecognition()
342 if (modelInfo.detector.stopRecognition()) { in stopRecognition()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DMagnificationGestureHandler.java390 public boolean onScale(ScaleGestureDetector detector) { in onScale() argument
393 mInitialScaleFactor = detector.getScaleFactor(); in onScale()
395 final float deltaScale = detector.getScaleFactor() - mInitialScaleFactor; in onScale()
405 final float targetScale = initialScale * detector.getScaleFactor(); in onScale()
423 final float pivotX = detector.getFocusX(); in onScale()
424 final float pivotY = detector.getFocusY(); in onScale()
431 public boolean onScaleBegin(ScaleGestureDetector detector) { in onScaleBegin() argument
436 public void onScaleEnd(ScaleGestureDetector detector) { in onScaleEnd() argument
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
DCropView.java174 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/
DStagefrightMetadataRetriever.cpp614 CharacterEncodingDetector *detector = new CharacterEncodingDetector(); in parseMetaData() local
621 detector->addTag(kMap[i].name, value); in parseMetaData()
629 detector->detectAndConvert(); in parseMetaData()
630 int size = detector->size(); in parseMetaData()
635 detector->getTag(i, &name, &value); in parseMetaData()
643 delete detector; in parseMetaData()
/frameworks/base/telephony/java/com/android/internal/telephony/
DCallerInfo.java616 CountryDetector detector = (CountryDetector) context.getSystemService( in getCurrentCountryIso() local
618 if (detector != null) { in getCurrentCountryIso()
619 Country country = detector.detectCountry(); in getCurrentCountryIso()
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
DPhotoView.java370 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/
DCallLog.java900 final CountryDetector detector = (CountryDetector) context.getSystemService( in getCurrentCountryIso() local
902 if (detector != null) { in getCurrentCountryIso()
903 final Country country = detector.detectCountry(); in getCurrentCountryIso()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DExpandHelper.java113 public boolean onScaleBegin(ScaleGestureDetector detector) {
123 public boolean onScale(ScaleGestureDetector detector) {
129 public void onScaleEnd(ScaleGestureDetector detector) {
/frameworks/base/services/core/java/com/android/server/display/
DOverlayDisplayWindow.java377 public boolean onScale(ScaleGestureDetector detector) {
378 mLiveScale *= detector.getScaleFactor();
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/media/
DOverlayDisplayWindow.java469 public boolean onScale(ScaleGestureDetector detector) {
470 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
Dscale.jd266 <p>As discussed in <a href="detector.html">Detecting Common Gestures</a>,
317 public boolean onScale(ScaleGestureDetector detector) {
318 mScaleFactor *= detector.getScaleFactor();
Dindex.jd60 <strong><a href="detector.html">Detecting Common Gestures</a></strong>
Dmovement.jd49 href="detector.html">Detecting Common Gestures</a>, all of these events are
/frameworks/base/telephony/java/android/telephony/
DPhoneNumberUtils.java2062 CountryDetector detector = (CountryDetector) context.getSystemService( in isLocalEmergencyNumberInternal() local
2064 if (detector != null && detector.detectCountry() != null) { in isLocalEmergencyNumberInternal()
2065 countryIso = detector.detectCountry().getCountryIso(); in isLocalEmergencyNumberInternal()
/frameworks/base/docs/html-intl/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/training/wearables/ui/
Dexit.jd100 // Configure a gesture detector
/frameworks/base/docs/html/guide/topics/sensors/
Dsensors_motion.jd567 accuracy than the step detector sensor. The following code shows you how to get an instance of
581 <p>The step detector sensor triggers an event each time the user takes a step. The latency is
583 default step detector sensor:</p>
/frameworks/base/docs/html/about/versions/
Dkitkat.jd387 the hardware step-detector to offer long-running, low-power services.
391 <h4 id="44-step-detector">Step Detector and Step Counter</h4>
395 support for two new composite sensors &mdash; step detector
402 The step detector analyzes accelerometer input to recognize when the user has
411 Step detector and counter sensors are available on Nexus 5, and we're working
Dandroid-2.2-highlights.jd287 for these situations. A scale gesture detector API provides improved definition of multi-touch
/frameworks/base/docs/html/topic/arc/
Dmanifest.jd170 <code>android.hardware.sensor.stepdetector</code> &ndash; Step detector

12