Home
last modified time | relevance | path

Searched refs:stage (Results 1 – 25 of 59) sorted by relevance

123

/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DResolvePlaylistTest.java20 import static com.android.providers.media.scan.MediaScannerTest.stage;
101 stage(R.raw.test_audio, new File(music, "001.mp3")); in doPlaylist()
102 stage(R.raw.test_audio, new File(music, "002.mp3")); in doPlaylist()
103 stage(R.raw.test_audio, new File(music, "003.mp3")); in doPlaylist()
104 stage(R.raw.test_audio, new File(music, "004.mp3")); in doPlaylist()
105 stage(R.raw.test_audio, new File(music, "005.mp3")); in doPlaylist()
106 stage(res, new File(music, name)); in doPlaylist()
159 stage(R.raw.test_audio, new File(soundtracks, "002.mp3")); in doPlaylist()
160 stage(res, new File(music, name)); in doPlaylist()
181 stage(R.raw.test_audio, new File(music, "001.mp3")); in testBrokenPlaylistM3u()
[all …]
DMediaDocumentsProviderTest.java21 import static com.android.providers.media.scan.MediaScannerTest.stage;
279 stage(R.raw.test_audio, new File(dir, "audio.mp3")); in stageTestMedia()
280 stage(R.raw.test_video, new File(dir, "video.mp4")); in stageTestMedia()
281 stage(R.raw.test_image, new File(dir, "image.jpg")); in stageTestMedia()
282 stage(R.raw.test_m3u, new File(dir, "playlist.m3u")); in stageTestMedia()
283 stage(R.raw.test_srt, new File(dir, "subtitle.srt")); in stageTestMedia()
284 stage(R.raw.test_txt, new File(dir, "document.txt")); in stageTestMedia()
285 stage(R.raw.test_bin, new File(dir, "random.bin")); in stageTestMedia()
/packages/modules/Bluetooth/system/btif/src/
Dbtif_sock_sdp.cc119 const char* stage = "protocol_list"; in create_base_record() local
126 stage = "service_name"; in create_base_record()
133 stage = "browseable"; in create_base_record()
148 stage, channel, name, with_obex); in create_base_record()
178 const char* stage = "create_base_record"; in add_sdp_by_uuid() local
188 stage = "service_class_sequence"; in add_sdp_by_uuid()
210 log::error("failed to register service stage: {}, service_name: {}", stage, in add_sdp_by_uuid()
230 const char* stage = "create_base_record"; in add_pbap_sdp() local
235 stage = "service_class"; in add_pbap_sdp()
241 stage = "profile_descriptor_list"; in add_pbap_sdp()
[all …]
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/
DSleepSessionFormatter.kt101 return sortedStages.map { stage -> formatSleepStage(record.metadata.id, stage) } in <lambda>() method
104 private fun formatSleepStage(id: String, stage: SleepSessionRecord.Stage): FormattedEntry { in <lambda>()
107 header = timeFormatter.formatTimeRange(stage.startTime, stage.endTime), in <lambda>()
108 headerA11y = timeFormatter.formatTimeRangeA11y(stage.startTime, stage.endTime), in <lambda>()
109 title = formatStageType(stage) { duration -> formatDurationShort(context, duration) }, in <lambda>()
111 formatStageType(stage) { duration -> formatDurationLong(context, duration) }, in <lambda>()
116 stage: SleepSessionRecord.Stage, in <lambda>()
120 when (stage.type) { in <lambda>()
134 val duration = Duration.between(stage.startTime, stage.endTime) in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/formatters/
DSleepSessionFormatterTest.kt97 val stage = in <lambda>() constant
99 assertThat(stage.title).isEqualTo("1h awake") in <lambda>()
108 val stage = in <lambda>() constant
110 assertThat(stage.title).isEqualTo("1h awake in bed") in <lambda>()
119 val stage = in <lambda>() constant
121 assertThat(stage.title).isEqualTo("1h deep sleep") in <lambda>()
130 val stage = in <lambda>() constant
132 assertThat(stage.title).isEqualTo("1h light sleep") in <lambda>()
141 val stage = in <lambda>() constant
143 assertThat(stage.title).isEqualTo("1h REM sleep") in <lambda>()
[all …]
/packages/apps/Settings/src/com/android/settings/password/
DSetupChooseLockPattern.java138 protected void updateStage(Stage stage) { in updateStage() argument
139 super.updateStage(stage); in updateStage()
149 (stage == Stage.Introduction || stage == Stage.HelpScreen || in updateStage()
150 stage == Stage.ChoiceTooShort || stage == Stage.FirstChoiceValid) in updateStage()
154 if (stage.leftMode == LeftButtonMode.Gone && stage == Stage.Introduction) { in updateStage()
DChooseLockPattern.java729 protected void updateStage(Stage stage) { in updateStage() argument
732 mUiStage = stage; in updateStage()
736 if (stage == Stage.ChoiceTooShort) { in updateStage()
739 stage.headerMessage, in updateStage()
742 layout.setDescriptionText(stage.headerMessage); in updateStage()
745 if (stage.footerMessage == ID_EMPTY_MESSAGE) { in updateStage()
748 mFooterText.setText(stage.footerMessage); in updateStage()
751 if (stage == Stage.ConfirmWrong || stage == Stage.ChoiceTooShort) { in updateStage()
761 if (stage == Stage.ConfirmWrong || stage == Stage.NeedToConfirm) { in updateStage()
765 updateFooterLeftButton(stage); in updateStage()
[all …]
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint/feature/
DSfpsEnrollmentFeatureImpl.java67 public int getFeaturedStageHeaderResource(int stage) { in getFeaturedStageHeaderResource() argument
68 return switch (stage) { in getFeaturedStageHeaderResource()
75 default -> throw new IllegalArgumentException("Invalid stage: " + stage); in getFeaturedStageHeaderResource()
80 public int getSfpsEnrollLottiePerStage(int stage) { in getSfpsEnrollLottiePerStage() argument
81 return switch (stage) { in getSfpsEnrollLottiePerStage()
87 default -> throw new IllegalArgumentException("Invalid stage: " + stage); in getSfpsEnrollLottiePerStage()
DSfpsEnrollmentFeature.java58 int getFeaturedStageHeaderResource(int stage); in getFeaturedStageHeaderResource() argument
65 int getSfpsEnrollLottiePerStage(int stage); in getSfpsEnrollLottiePerStage() argument
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DMediaScannerTest.java82 stage(R.raw.test_audio, new File(dir, "test.mp3")); in testCorrectness()
83 stage(R.raw.test_video, new File(dir, "test.mp4")); in testCorrectness()
84 stage(R.raw.test_image, new File(dir, "test.jpg")); in testCorrectness()
148 stage(dir, 4, 3); in testSpeed()
193 private static void stage(File dir, int deep, int wide) throws IOException { in stage() method in MediaScannerTest
197 stage(new File(dir, "dir" + System.nanoTime()), deep - 1, wide * 2); in stage()
201 stage(R.raw.test_image, new File(dir, System.nanoTime() + ".jpg")); in stage()
202 stage(R.raw.test_video, new File(dir, System.nanoTime() + ".mp4")); in stage()
206 public static File stage(int resId, File file) throws IOException { in stage() method in MediaScannerTest
DModernMediaScannerTest.java20 import static com.android.providers.media.scan.MediaScannerTest.stage;
551 stage(R.raw.test_audio, new File(music, "example.mp3")); in testFilter()
580 stage(R.raw.test_image, file); in testScan_Common()
628 stage(R.raw.test_audio, new File(mDir, "audio.mp3")); in testScan_Coverage()
629 stage(R.raw.test_video, new File(mDir, "video.mp4")); in testScan_Coverage()
630 stage(R.raw.test_image, new File(mDir, "image.jpg")); in testScan_Coverage()
631 stage(R.raw.test_m3u, new File(mDir, "playlist.m3u")); in testScan_Coverage()
632 stage(R.raw.test_srt, new File(mDir, "subtitle.srt")); in testScan_Coverage()
633 stage(R.raw.test_txt, new File(mDir, "document.txt")); in testScan_Coverage()
634 stage(R.raw.test_bin, new File(mDir, "random.bin")); in testScan_Coverage()
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/testcommon/
DActivityLifecycleWaiter.java33 public ActivityLifecycleWaiter(Activity activity, Stage stage) { in ActivityLifecycleWaiter() argument
35 mStage = stage; in ActivityLifecycleWaiter()
40 public void onActivityLifecycleChanged(Activity activity, Stage stage) { in onActivityLifecycleChanged() argument
41 if (activity == mActivity && stage == mStage) { in onActivityLifecycleChanged()
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint2/ui/enrollment/modules/enrolling/udfps/ui/viewmodel/
DUdfpsViewModel.kt211 thresholds.forEach { (threshold, stage) -> in <lambda>() method
215 stageToReturn = stage in <lambda>()
230 stage -> in <lambda>() method
231 if (shouldReplay && stage is EnrollStageModel.Guided) { in <lambda>()
294 combine(isSetupWizard, accessibilityEnabled, enrollStage) { isSuw, isAccessibility, stage -> in <lambda>() method
295 return@combine HeaderText(isSuw, isAccessibility, stage) in <lambda>()
318 stage, in <lambda>() method
323 return@combine DescriptionText(isSuw, isAccessibility, stage) in <lambda>()
375 combine(isSetupWizard, accessibilityEnabled, enrollStage) { isSuw, isAccessibility, stage -> in <lambda>() method
376 return@combine EducationAnimationModel(isSuw, isAccessibility, stage) in <lambda>()
/packages/apps/Car/Settings/src/com/android/car/settings/security/
DChooseLockPatternFragment.java255 protected void updateStage(Stage stage) { in updateStage() argument
256 mUiStage = stage; in updateStage()
260 mMessageText.setText(stage.mMessageId); in updateStage()
262 if (stage.mSecondaryButtonState == SecondaryButtonState.Gone) { in updateStage()
266 setSecondaryButtonText(stage.mSecondaryButtonState.mTextResId); in updateStage()
267 setSecondaryButtonEnabled(stage.mSecondaryButtonState.mEnabled); in updateStage()
270 setPrimaryButtonText(stage.mPrimaryButtonState.mText); in updateStage()
271 setPrimaryButtonEnabled(stage.mPrimaryButtonState.mEnabled); in updateStage()
274 if (stage.mPatternEnabled) { in updateStage()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
DRedactionUtilsTest.java19 import static com.android.providers.media.scan.MediaScannerTest.stage;
40 stage(R.raw.test_image, file); in testGetRedactionRanges_Image()
53 stage(R.raw.test_video, file); in testGetRedactionRanges_Video()
DSpecialFormatDetectorTest.java19 import static com.android.providers.media.scan.MediaScannerTest.stage;
67 final File file = stage(R.raw.test_gif, new File(dir, TAG + System.nanoTime() + ".jpg")); in testDetect_gif()
92 final File file = stage(R.raw.test_motion_photo, new File(dir, TAG + System.nanoTime() + in testDetect_motionPhoto()
118 final File file = stage(R.raw.test_animated_webp, new File(dir, TAG + System.nanoTime() + in testDetect_animatedWebp()
144 final File file = stage(R.raw.test_non_animated_webp, new File(dir, TAG + System.nanoTime() in testDetect_nonAnimatedWebp()
169 final File file = stage(R.raw.test_image, new File(dir, TAG + System.nanoTime() + ".jpg")); in testDetect_notSpecialFormat()
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/
DSleepStageInternal.java65 internalStages.forEach((stage) -> externalStages.add(stage.toExternalRecord())); in getExternalStages()
75 stages.forEach((stage) -> stage.writeToParcel(parcel)); in writeStagesToParcel()
DSleepSessionRecordInternal.java83 public SleepSessionRecordInternal addSleepStage(@Nullable SleepStageInternal stage) { in addSleepStage() argument
84 if (stage != null) { in addSleepStage()
88 mStages.add(stage); in addSleepStage()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DTopTaskTracker.java154 public void onStagePositionChanged(@StageType int stage, @StagePosition int position) { in onStagePositionChanged() argument
156 Log.i(TAG, "onStagePositionChanged: stage=" + stage + ", position=" + position); in onStagePositionChanged()
158 if (stage == SplitConfigurationOptions.STAGE_TYPE_MAIN) { in onStagePositionChanged()
166 public void onTaskStageChanged(int taskId, @StageType int stage, boolean visible) { in onTaskStageChanged() argument
169 + ", stage=" + stage + ", visible=" + visible); in onTaskStageChanged()
172 if (!visible || stage == SplitConfigurationOptions.STAGE_TYPE_UNDEFINED) { in onTaskStageChanged()
181 if (stage == SplitConfigurationOptions.STAGE_TYPE_MAIN) { in onTaskStageChanged()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DSleepStageRecordHelper.java107 static void populateStageTo(ContentValues contentValues, SleepStageInternal stage) { in populateStageTo() argument
108 contentValues.put(SLEEP_STAGE_START_TIME, stage.getStartTime()); in populateStageTo()
109 contentValues.put(SLEEP_STAGE_END_TIME, stage.getEndTime()); in populateStageTo()
110 contentValues.put(SLEEP_STAGE_TYPE, stage.getStageType()); in populateStageTo()
/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/fingerprint/
DFingerprintEnrollEnrollingTest.java627 for (int stage = SFPS_STAGE_NO_ANIMATION; stage <= SFPS_STAGE_RIGHT_EDGE; stage++) { in initializeActivityWithoutCreate()
628 doReturn(mSfpsStageThresholds[stage]).when(mActivity).getStageThresholdSteps(stage); in initializeActivityWithoutCreate()
639 for (int stage = 0; stage <= totalStages; stage++) { in initializeActivityWithoutCreate()
640 doReturn(mUdfpsStageThresholds[stage]).when(mActivity).getStageThresholdSteps( in initializeActivityWithoutCreate()
641 stage); in initializeActivityWithoutCreate()
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/http/
DHttpFederatedProtocol.java510 String stage, FederatedComputeHttpResponse httpResponse) {
512 throw new IllegalStateException(stage + " failed: " + httpResponse.getStatusCode());
515 LogUtil.i(TAG, stage + " success.");
519 String stage, FederatedComputeHttpResponse httpResponse) {
521 throw new IllegalStateException(stage + " failed: " + httpResponse.getStatusCode());
524 LogUtil.i(TAG, stage + " success.");
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/espresso/
DSpecialFormatBaseTest.java19 import static com.android.providers.media.scan.MediaScannerTest.stage;
110 file = stage(resId, file); in createFile()
/packages/modules/Virtualization/docs/
Dhugepages.md7 in the stage-2 page tables, instead of 512 individual contiguous single page
11 the number of stage-2 page faults as well as the TLB pressure. However, finding
/packages/apps/Settings/src/com/android/settings/biometrics/face/
DFaceUpdater.java103 @Nullable FaceEnrollCell cell, int stage, float pan, float tilt, float distance) { in onEnrollmentFrame() argument
104 mCallback.onEnrollmentFrame(helpCode, helpMessage, cell, stage, pan, tilt, distance); in onEnrollmentFrame()

123