Home
last modified time | relevance | path

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

123

/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/location/countrydetector/
H A DLocationBasedCountryDetectorTest.java193 detector.detectCountry(); in testFindingCountryCommon()
210 detector.notifyCountryFound(); in testFindingCountryCommon()
225 detector.detectCountry(); in testFindingCountryCancelled()
233 detector.stop(); in testFindingCountryCancelled()
250 detector.detectCountry(); in testFindingLocationCancelled()
252 detector.stop(); in testFindingLocationCancelled()
274 detector.detectCountry(); in testFindingLocationFailed()
276 waitForTimerReset(detector); in testFindingLocationFailed()
305 detector.detectCountry(); in testFindingCountryFailed()
329 detector.detectCountry(); in testFindingCountryWithLastKnownLocation()
[all …]
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DGestureRecognizer.java104 public boolean onScaleBegin(ScaleGestureDetector detector) { in onScaleBegin() argument
106 detector.getFocusX(), detector.getFocusY()); in onScaleBegin()
110 public boolean onScale(ScaleGestureDetector detector) { in onScale() argument
111 return mListener.onScale(detector.getFocusX(), in onScale()
112 detector.getFocusY(), detector.getScaleFactor()); in onScale()
116 public void onScaleEnd(ScaleGestureDetector detector) { in onScaleEnd() argument
/aosp12/packages/apps/Camera2/src/com/android/camera/ui/
H A DFilmstripGestureRecognizer.java138 public boolean onScaleBegin(ScaleGestureDetector detector) { in onScaleBegin() argument
140 detector.getFocusX(), detector.getFocusY()); in onScaleBegin()
144 public boolean onScale(ScaleGestureDetector detector) { in onScale() argument
145 return mListener.onScale(detector.getFocusX(), in onScale()
146 detector.getFocusY(), detector.getScaleFactor()); in onScale()
150 public void onScaleEnd(ScaleGestureDetector detector) { in onScaleEnd() argument
H A DPreviewOverlay.java364 public boolean onScale(ScaleGestureDetector detector) { in onScale() argument
365 final float sf = detector.getScaleFactor(); in onScale()
392 public boolean onScaleBegin(ScaleGestureDetector detector) { in onScaleBegin() argument
406 public void onScaleEnd(ScaleGestureDetector detector) { in onScaleEnd() argument
/aosp12/frameworks/base/tests/TransformTest/src/com/google/android/test/transform/
H A 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()
/aosp12/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
H A DPanningScalingHandler.java104 public boolean onScale(ScaleGestureDetector detector) { in onScale() argument
110 mInitialScaleFactor = detector.getScaleFactor(); in onScale()
113 final float deltaScale = detector.getScaleFactor() - mInitialScaleFactor; in onScale()
122 final float targetScale = initialScale * detector.getScaleFactor(); in onScale()
143 public boolean onScaleBegin(ScaleGestureDetector detector) { in onScaleBegin() argument
148 public void onScaleEnd(ScaleGestureDetector detector) { in onScaleEnd() argument
H A DFullScreenMagnificationGestureHandler.java365 public boolean onScale(ScaleGestureDetector detector) { in onScale() argument
368 mInitialScaleFactor = detector.getScaleFactor(); in onScale()
371 final float deltaScale = detector.getScaleFactor() - mInitialScaleFactor; in onScale()
376 final float targetScale = initialScale * detector.getScaleFactor(); in onScale()
394 final float pivotX = detector.getFocusX(); in onScale()
395 final float pivotY = detector.getFocusY(); in onScale()
403 public boolean onScaleBegin(ScaleGestureDetector detector) { in onScaleBegin() argument
408 public void onScaleEnd(ScaleGestureDetector detector) { in onScaleEnd() argument
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/detectors/
H A DSummaryDetectorTest.java51 SummaryDetector detector = new SummaryDetector(mPolicy, AVERAGE_TIME_MS); in testDetect_disabledByPolicy_tipInvisible() local
53 assertThat(detector.detect().isVisible()).isFalse(); in testDetect_disabledByPolicy_tipInvisible()
58 SummaryDetector detector = new SummaryDetector(mPolicy, AVERAGE_TIME_MS); in testDetect_notDisabled_tipInvisible() local
60 assertThat(detector.detect().isVisible()).isFalse(); in testDetect_notDisabled_tipInvisible()
/aosp12/frameworks/base/services/people/java/com/android/server/people/data/
H A DUtils.java33 CountryDetector detector = (CountryDetector) context.getSystemService( in getCurrentCountryIso() local
35 if (detector != null) { in getCurrentCountryIso()
36 Country country = detector.detectCountry(); in getCurrentCountryIso()
/aosp12/packages/apps/Contacts/src/com/android/contacts/vcard/
H A DNfcImportVCardActivity.java106 VCardSourceDetector detector = null; in createImportRequest() local
114 detector = new VCardSourceDetector(); in createImportRequest()
116 parser.addInterpreter(detector); in createImportRequest()
124 detector = new VCardSourceDetector(); in createImportRequest()
126 parser.addInterpreter(detector); in createImportRequest()
154 getString(R.string.nfc_vcard_file_name), detector.getEstimatedType(), in createImportRequest()
155 detector.getEstimatedCharset(), vcardVersion, counter.getCount()); in createImportRequest()
H A DImportVCardActivity.java320 VCardSourceDetector detector = null; in constructImportRequest() local
333 detector = new VCardSourceDetector(); in constructImportRequest()
335 mVCardParser.addInterpreter(detector); in constructImportRequest()
352 detector = new VCardSourceDetector(); in constructImportRequest()
354 mVCardParser.addInterpreter(detector); in constructImportRequest()
376 detector.getEstimatedType(), in constructImportRequest()
377 detector.getEstimatedCharset(), in constructImportRequest()
/aosp12/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/gesture/
H A DConsecutiveTapsGestureDetectorTest.java41 private ConsecutiveTapsGestureDetector detector; field in ConsecutiveTapsGestureDetectorTest
52 detector = new ConsecutiveTapsGestureDetector(listener, view); in setUp()
110 detector.onTouchEvent( in tap()
112 detector.onTouchEvent( in tap()
/aosp12/frameworks/base/core/java/android/view/
H A 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
/aosp12/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
H A DVCardRequest.java121 final VCardSourceDetector detector = new VCardSourceDetector(); in parseVCard() local
128 detector, true, null); in parseVCard()
131 final int estimatedVCardType = detector.getEstimatedType(); in parseVCard()
147 return doActuallyReadOneVCard(targetUri, true, detector, null, signal); in parseVCard()
152 final VCardSourceDetector detector, final List<String> errorFileNameList, in doActuallyReadOneVCard() argument
155 int vcardType = detector.getEstimatedType(); in doActuallyReadOneVCard()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
H A DImageTinyPlanet.java51 public void onScaleEnd(ScaleGestureDetector detector) {
56 public boolean onScaleBegin(ScaleGestureDetector detector) {
63 public boolean onScale(ScaleGestureDetector detector) {
65 mScale *= detector.getScaleFactor();
H A DImageShow.java926 public boolean onScale(ScaleGestureDetector detector) {
930 scaleFactor = scaleFactor * detector.getScaleFactor();
939 float focusx = detector.getFocusX();
940 float focusy = detector.getFocusY();
952 public boolean onScaleBegin(ScaleGestureDetector detector) {
957 mStartFocusX = detector.getFocusX();
958 mStartFocusY = detector.getFocusY();
964 public void onScaleEnd(ScaleGestureDetector detector) {
/aosp12/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
H A DScaleHelper.java72 public boolean onScale(ScaleGestureDetector detector) { in attach()
74 "Received scale event: " + detector.getScaleFactor()); in attach()
75 mScaleCallback.accept(detector.getScaleFactor()); in attach()
/aosp12/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/
H A DVrView.java146 public boolean onScale(ScaleGestureDetector detector) { in setup()
147 … double width = mState1.mTransform.getScreenWidth() / detector.getScaleFactor(); in setup()
149 panMove(detector.getFocusX(), detector.getFocusY()); in setup()
155 public boolean onScaleBegin(ScaleGestureDetector detector) { in setup()
156 panDown(detector.getFocusX(), detector.getFocusY()); in setup()
162 public void onScaleEnd(ScaleGestureDetector detector) { in setup()
/aosp12/frameworks/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/
H A DSoundTriggerTestService.java204 if (modelInfo.detector != null) { in stopAllRecognitionsAndUnload()
207 modelInfo.detector.stopRecognition(); in stopAllRecognitionsAndUnload()
213 modelInfo.detector = null; in stopAllRecognitionsAndUnload()
228 public SoundTriggerDetector detector; field in SoundTriggerTestService.ModelInfo
277 modelInfo.detector = null; in unloadModel()
322 if (modelInfo.detector == null) { in startRecognition()
324 modelInfo.detector = mSoundTriggerUtil.createSoundTriggerDetector( in startRecognition()
330 if (modelInfo.detector.startRecognition(modelInfo.captureAudio ? in startRecognition()
348 if (modelInfo.detector == null) { in stopRecognition()
355 if (modelInfo.detector.stopRecognition()) { in stopRecognition()
/aosp12/frameworks/base/core/tests/coretests/src/android/view/
H A DScaleGesture.java48 public boolean onScale(ScaleGestureDetector detector) { in onScale() argument
49 mFactor *= detector.getScaleFactor(); in onScale()
/aosp12/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
H A DUtils.java50 final CountryDetector detector = (CountryDetector) context.getSystemService( in getCurrentCountryIso() local
52 if (detector != null) { in getCurrentCountryIso()
53 final Country country = detector.detectCountry(); in getCurrentCountryIso()
/aosp12/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/
H A 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
/aosp12/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
H A 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
/aosp12/frameworks/av/media/libmediaplayerservice/
H A DStagefrightMetadataRetriever.cpp471 CharacterEncodingDetector *detector = new CharacterEncodingDetector(); in parseMetaData() local
478 detector->addTag(kMap[i].name, value); in parseMetaData()
486 detector->detectAndConvert(); in parseMetaData()
487 int size = detector->size(); in parseMetaData()
492 detector->getTag(i, &name, &value); in parseMetaData()
500 delete detector; in parseMetaData()
/aosp12/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
H A 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

123