/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/viewmodel/ |
D | MediaControlViewModel.kt | 29 import com.android.systemui.common.shared.model.Icon in <lambda>() 33 import com.android.systemui.media.controls.shared.model.MediaAction in <lambda>() 34 import com.android.systemui.media.controls.shared.model.MediaButton in <lambda>() 35 import com.android.systemui.media.controls.shared.model.MediaControlModel in <lambda>() 86 private suspend fun toViewModel(model: MediaControlModel): MediaPlayerViewModel? { in <lambda>() 87 val mediaController = model.token?.let { MediaController(applicationContext, it) } in <lambda>() 92 model.artwork, in <lambda>() 99 model.packageName, in <lambda>() 105 val gutsViewModel = toGutsViewModel(model, scheme) in <lambda>() 123 model.songName, in <lambda>() [all …]
|
D | MediaRecommendationsViewModel.kt | 38 import com.android.systemui.media.controls.shared.model.MediaRecModel in <lambda>() 39 import com.android.systemui.media.controls.shared.model.MediaRecommendationsModel in <lambda>() 122 private suspend fun toRecsViewModel(model: MediaRecommendationsModel): MediaRecsCardViewModel? { in <lambda>() 123 if (!model.areRecommendationsValid) { in <lambda>() 127 if (model.appName == null || model.uid == Process.INVALID_UID) { in <lambda>() 133 MediaArtworkHelper.getColorScheme(applicationContext, model.packageName, TAG) in <lambda>() 144 val appIcon = applicationContext.packageManager.getApplicationIcon(model.packageName) in <lambda>() 152 model.mediaRecs.map { mediaRecModel -> in <lambda>() 158 setUpMediaRecContentDescription(mediaRecModel, model.appName), in <lambda>() 176 model.packageName, in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardFingerprintListenModel.kt | 97 fun insert(model: KeyguardFingerprintListenModel) { in insert() 99 timeMillis = model.timeMillis in insert() 100 userId = model.userId in insert() 101 listening = model.listening in insert() 103 allowOnCurrentOccludingActivity = model.allowOnCurrentOccludingActivity in insert() 104 alternateBouncerShowing = model.alternateBouncerShowing in insert() 105 biometricEnabledForUser = model.biometricEnabledForUser in insert() 106 biometricPromptShowing = model.biometricPromptShowing in insert() 107 bouncerIsOrWillShow = model.bouncerIsOrWillShow in insert() 108 canSkipBouncer = model.canSkipBouncer in insert() [all …]
|
D | KeyguardActiveUnlockModel.kt | 67 fun insert(model: KeyguardActiveUnlockModel) { in insert() 69 timeMillis = model.timeMillis in insert() 70 userId = model.userId in insert() 71 listening = model.listening in insert() 73 awakeKeyguard = model.awakeKeyguard in insert() 74 authInterruptActive = model.authInterruptActive in insert() 75 fpLockedOut = model.fpLockedOut in insert() 76 primaryAuthRequired = model.primaryAuthRequired in insert() 77 switchingUser = model.switchingUser in insert() 78 triggerActiveUnlockForAssistant = model.triggerActiveUnlockForAssistant in insert() [all …]
|
/frameworks/native/libs/input/tests/ |
D | TfLiteMotionPredictor_test.cpp | 86 std::unique_ptr<TfLiteMotionPredictorModel> model = TfLiteMotionPredictorModel::create(); in TEST() local 87 TfLiteMotionPredictorBuffers buffers(model->inputLength()); in TEST() 109 buffers.copyTo(*model); in TEST() 111 const int zeroPadding = model->inputLength() - 3; in TEST() 114 EXPECT_THAT(model->inputR().subspan(0, zeroPadding), Each(0)); in TEST() 115 EXPECT_THAT(model->inputPhi().subspan(0, zeroPadding), Each(0)); in TEST() 116 EXPECT_THAT(model->inputPressure().subspan(0, zeroPadding), Each(0)); in TEST() 117 EXPECT_THAT(model->inputTilt().subspan(0, zeroPadding), Each(0)); in TEST() 118 EXPECT_THAT(model->inputOrientation().subspan(0, zeroPadding), Each(0)); in TEST() 120 EXPECT_THAT(model->inputR().subspan(zeroPadding), ElementsAre(40, 20, 10)); in TEST() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/ui/viewmodel/ |
D | UserSwitcherViewModel.kt | 20 import com.android.systemui.common.shared.model.Text in <lambda>() 26 import com.android.systemui.user.shared.model.UserActionModel in <lambda>() 27 import com.android.systemui.user.shared.model.UserModel in <lambda>() 133 model: UserModel, in <lambda>() 136 viewKey = model.id, in <lambda>() 138 if (model.isGuest && model.isSelected) { in <lambda>() 141 model.name in <lambda>() 143 image = CircularDrawable(model.image), in <lambda>() 144 isSelectionMarkerVisible = model.isSelected, in <lambda>() 146 if (model.isSelectable) { in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/ |
D | FavoritesModelTest.kt | 63 private lateinit var model: FavoritesModel in <lambda>() variable in com.android.systemui.controls.management.FavoritesModelTest 70 model = FavoritesModel(customIconCache, TEST_COMPONENT, INITIAL_FAVORITES, callback) in <lambda>() 71 model.attachAdapter(adapter) in <lambda>() 72 dividerWrapper = model.elements.first { it is DividerWrapper } as DividerWrapper in <lambda>() 77 assertEquals(INITIAL_FAVORITES.size + 1, model.elements.toSet().size) in <lambda>() 79 model.elements.forEachIndexed { index, element -> in <lambda>() 87 assertEquals(model.favorites, model.elements.take(dividerIndex).map { in <lambda>() 97 assertEquals(expected, model.elements) in <lambda>() 102 assertEquals(INITIAL_FAVORITES, model.favorites) in <lambda>() 110 model.changeFavoriteStatus(id, false) in <lambda>() [all …]
|
D | AllModelTest.kt | 57 lateinit var model: AllModel in <lambda>() variable in com.android.systemui.controls.management.AllModelTest 92 model = AllModel(controls, favoritesList, EMPTY_STRING, controlsModelCallback) in <lambda>() 117 expected.zip(model.elements).forEachIndexed { index, it -> in <lambda>() 147 model.favorites.zip(expectedFavorites).forEach { in <lambda>() 155 model.changeFavoriteStatus("$idPrefix$indexToAdd", true) in <lambda>() 160 model.favorites.zip(expectedFavorites).forEach { in <lambda>() 172 model.changeFavoriteStatus(id, true) in <lambda>() 174 (model.elements.first { in <lambda>() 187 model.changeFavoriteStatus("$idPrefix$indexToAdd", true) in <lambda>() 191 assertEquals(expectedFavorites.size, model.favorites.size) in <lambda>() [all …]
|
/frameworks/av/media/libaaudio/tests/ |
D | test_clock_model.cpp | 42 model.setSampleRate(SAMPLE_RATE); in SetUp() 43 model.setFramesPerBurst(HW_FRAMES_PER_BURST); in SetUp() 67 model.start(startTimeNanos); in checkDriftingClock() 75 model.processTimestamp(startPositionFrames, markerTime); in checkDriftingClock() 76 ASSERT_EQ(startPositionFrames, model.convertTimeToPosition(markerTime)); in checkDriftingClock() 103 model.processTimestamp(hardwarePosition, sampledTimeNanos); in checkDriftingClock() 109 const int64_t modelPosition = model.convertTimeToPosition(sampledTimeNanos); in checkDriftingClock() 123 IsochronousClockModel model; member in ClockModelTestFixture 128 ASSERT_EQ(SAMPLE_RATE, model.getSampleRate()); in TEST_F() 129 ASSERT_EQ(HW_FRAMES_PER_BURST, model.getFramesPerBurst()); in TEST_F() [all …]
|
/frameworks/base/packages/SettingsLib/SpaPrivileged/src/com/android/settingslib/spaprivileged/template/preference/ |
D | RestrictedPreference.kt | 28 import com.android.settingslib.spaprivileged.model.enterprise.BaseUserRestricted 29 import com.android.settingslib.spaprivileged.model.enterprise.BlockedByAdmin 30 import com.android.settingslib.spaprivileged.model.enterprise.NoRestricted 31 import com.android.settingslib.spaprivileged.model.enterprise.RestrictedMode 32 import com.android.settingslib.spaprivileged.model.enterprise.Restrictions 33 import com.android.settingslib.spaprivileged.model.enterprise.RestrictionsProviderFactory 34 import com.android.settingslib.spaprivileged.model.enterprise.RestrictionsProviderImpl 35 import com.android.settingslib.spaprivileged.model.enterprise.rememberRestrictedMode 39 model: PreferenceModel, in RestrictedPreference() 42 RestrictedPreference(model, restrictions, ::RestrictionsProviderImpl) in RestrictedPreference() [all …]
|
D | RestrictedSwitchPreferenceModel.kt | 32 import com.android.settingslib.spaprivileged.model.enterprise.BaseUserRestricted 33 import com.android.settingslib.spaprivileged.model.enterprise.BlockedByAdmin 34 import com.android.settingslib.spaprivileged.model.enterprise.BlockedByEcm 35 import com.android.settingslib.spaprivileged.model.enterprise.NoRestricted 36 import com.android.settingslib.spaprivileged.model.enterprise.RestrictedMode 37 import com.android.settingslib.spaprivileged.model.enterprise.Restrictions 38 import com.android.settingslib.spaprivileged.model.enterprise.RestrictionsProviderFactory 39 import com.android.settingslib.spaprivileged.model.enterprise.rememberRestrictedMode 43 model: SwitchPreferenceModel, 46 override val title = model.title [all …]
|
D | RestrictedTwoTargetSwitchPreference.kt | 23 import com.android.settingslib.spaprivileged.model.enterprise.Restrictions in <lambda>() 24 import com.android.settingslib.spaprivileged.model.enterprise.RestrictionsProviderFactory in <lambda>() 25 import com.android.settingslib.spaprivileged.model.enterprise.RestrictionsProviderImpl in <lambda>() 26 import com.android.settingslib.spaprivileged.model.enterprise.rememberRestrictedMode in <lambda>() 31 model: SwitchPreferenceModel, in <lambda>() 37 model = model, 48 model: SwitchPreferenceModel, in RestrictedTwoTargetSwitchPreference() 55 TwoTargetSwitchPreference(model, primaryEnabled, primaryOnClick) 59 RestrictedSwitchWrapper(model, restrictedMode) { restrictedModel -> in restrictedModel() 61 model = restrictedModel, in restrictedModel()
|
D | RestrictedSwitchPreference.kt | 23 import com.android.settingslib.spaprivileged.model.enterprise.Restrictions 24 import com.android.settingslib.spaprivileged.model.enterprise.RestrictionsProviderFactory 25 import com.android.settingslib.spaprivileged.model.enterprise.RestrictionsProviderImpl 30 model: SwitchPreferenceModel, in RestrictedSwitchPreference() 33 RestrictedSwitchPreference(model, restrictions, ::RestrictionsProviderImpl) in RestrictedSwitchPreference() 39 model: SwitchPreferenceModel, in RestrictedSwitchPreference() 44 SwitchPreference(model) in RestrictedSwitchPreference() 47 restrictionsProviderFactory.RestrictedSwitchWrapper(model, restrictions) { in RestrictedSwitchPreference()
|
D | RestrictedMainSwitchPreference.kt | 23 import com.android.settingslib.spaprivileged.model.enterprise.Restrictions 24 import com.android.settingslib.spaprivileged.model.enterprise.RestrictionsProviderFactory 25 import com.android.settingslib.spaprivileged.model.enterprise.RestrictionsProviderImpl 29 fun RestrictedMainSwitchPreference(model: SwitchPreferenceModel, restrictions: Restrictions) { in RestrictedMainSwitchPreference() 30 RestrictedMainSwitchPreference(model, restrictions, ::RestrictionsProviderImpl) in RestrictedMainSwitchPreference() 36 model: SwitchPreferenceModel, in RestrictedMainSwitchPreference() 41 MainSwitchPreference(model) in RestrictedMainSwitchPreference() 44 restrictionsProviderFactory.RestrictedSwitchWrapper(model, restrictions) { in RestrictedMainSwitchPreference()
|
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger_middleware/ |
D | ValidationUtil.java | 51 static void validateGenericModel(@Nullable SoundModel model) { in validateGenericModel() argument 52 validateModel(model, SoundModelType.GENERIC); in validateGenericModel() 55 static void validateModel(@Nullable SoundModel model, int expectedType) { in validateModel() argument 56 Objects.requireNonNull(model); in validateModel() 57 if (model.type != expectedType) { in validateModel() 60 validateUuid(model.uuid); in validateModel() 61 validateUuid(model.vendorUuid); in validateModel() 62 if (model.dataSize > 0) { in validateModel() 63 Objects.requireNonNull(model.data); in validateModel() 67 static void validatePhraseModel(@Nullable PhraseSoundModel model) { in validatePhraseModel() argument [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/clipboardoverlay/ |
D | ClipboardModelTest.kt | 58 val model = ClipboardModel.fromClipData(mContext, mClipboardUtils, mSampleClipData, source) in test_textClipData() constant 59 assertEquals(mSampleClipData, model.clipData) in test_textClipData() 60 assertEquals(source, model.source) in test_textClipData() 61 assertEquals(ClipboardModel.Type.TEXT, model.type) in test_textClipData() 62 assertEquals(mSampleClipData.getItemAt(0).text, model.text) in test_textClipData() 63 assertEquals(mSampleClipData.getItemAt(0).textLinks, model.textLinks) in test_textClipData() 64 assertEquals(mSampleClipData.getItemAt(0).uri, model.uri) in test_textClipData() 65 assertFalse(model.isSensitive) in test_textClipData() 66 assertFalse(model.isRemote) in test_textClipData() 67 assertNull(model.loadThumbnail(mContext)) in test_textClipData() [all …]
|
/frameworks/base/services/tests/voiceinteractiontests/src/com/android/server/soundtrigger_middleware/ |
D | SoundTriggerDuplicateModelHandlerTest.java | 285 SoundModel model = new SoundModel(); in createSoundModelOne() local 286 model.type = SoundModelType.GENERIC; in createSoundModelOne() 287 model.uuid = DUPLICATE_UUID; in createSoundModelOne() 288 model.vendorUuid = "87654321-5432-6543-7654-456789fedcba"; in createSoundModelOne() 290 model.data = TestUtil.byteArrayToParcelFileDescriptor(data); in createSoundModelOne() 291 model.dataSize = data.length; in createSoundModelOne() 292 return model; in createSoundModelOne() 297 SoundModel model = new SoundModel(); in createSoundModelTwo() local 298 model.type = SoundModelType.GENERIC; in createSoundModelTwo() 299 model.uuid = DUPLICATE_UUID; in createSoundModelTwo() [all …]
|
D | TestUtil.java | 66 SoundModel model = new SoundModel(); in createSoundModel() local 67 model.type = type; in createSoundModel() 68 model.uuid = "12345678-2345-3456-4567-abcdef987654"; in createSoundModel() 69 model.vendorUuid = "87654321-5432-6543-7654-456789fedcba"; in createSoundModel() 71 model.data = byteArrayToParcelFileDescriptor(data); in createSoundModel() 72 model.dataSize = data.length; in createSoundModel() 73 return model; in createSoundModel() 76 private static void validateSoundModel_2_1(ISoundTriggerHw.SoundModel model, int type) { in validateSoundModel_2_1() argument 77 assertEquals(type, model.header.type); in validateSoundModel_2_1() 79 ConversionUtil.hidl2aidlUuid(model.header.uuid)); in validateSoundModel_2_1() [all …]
|
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/preference/ |
D | TwoTargetSwitchPreference.kt | 25 model: SwitchPreferenceModel, in TwoTargetSwitchPreference() 31 title = model.title, in <lambda>() 32 summary = model.summary, in <lambda>() 35 icon = model.icon, in <lambda>() 38 checked = model.checked(), in <lambda>() 39 changeable = model.changeable, in <lambda>() 40 contentDescription = model.title, in <lambda>() 41 onCheckedChange = model.onCheckedChange, in <lambda>()
|
D | ListPreference.kt | 84 fun ListPreference(model: ListPreferenceModel) { in ListPreference() 88 title = model.title, in ListPreference() 92 for (option in model.options) { in ListPreference() 93 Radio(option, model.selectedId.intValue, model.enabled()) { in ListPreference() 95 model.onIdSelected(it) in ListPreference() 101 Preference(model = remember(model) { in ListPreference() 103 override val title = model.title in ListPreference() 105 model.options.find { it.id == model.selectedId.intValue }?.text ?: "" in ListPreference() 107 override val icon = model.icon in ListPreference() 108 override val enabled = model.enabled in ListPreference() [all …]
|
D | ProgressBarPreference.kt | 74 fun ProgressBarPreference(model: ProgressBarPreferenceModel) { in ProgressBarPreference() 76 title = model.title, in ProgressBarPreference() 77 progress = model.progress, in ProgressBarPreference() 78 icon = model.icon, in ProgressBarPreference() 79 height = model.height, in ProgressBarPreference() 80 roundedCorner = model.roundedCorner, in ProgressBarPreference() 88 fun ProgressBarWithDataPreference(model: ProgressBarPreferenceModel, data: String) { in ProgressBarWithDataPreference() 89 val icon = model.icon in ProgressBarWithDataPreference() 91 title = model.title, in ProgressBarWithDataPreference() 93 progress = model.progress, in ProgressBarWithDataPreference() [all …]
|
D | Preference.kt | 40 Preference(model = object : PreferenceModel { in UiLayout() 116 model: PreferenceModel, in Preference() 119 val onClickWithLog = wrapOnClickWithLog(model.onClick) in Preference() 120 val enabled = model.enabled() in Preference() 126 title = model.title, in Preference() 127 titleContentDescription = model.titleContentDescription, in Preference() 128 summary = model.summary, in Preference() 129 summaryContentDescription = model.summaryContentDescription, in Preference() 132 icon = model.icon, in Preference() 133 enabled = model.enabled, in Preference()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/common/data/repository/ |
D | PackageUpdateLogger.kt | 20 import com.android.systemui.common.shared.model.PackageChangeModel 27 private fun getChangeString(model: PackageChangeModel) = in getChangeString() 28 when (model) { in getChangeString() 34 is PackageChangeModel.Empty -> throw IllegalStateException("Unexpected empty value: $model") in getChangeString() 41 fun logChange(model: PackageChangeModel) { in logChange() 46 str1 = model.packageName in logChange() 47 str2 = getChangeString(model) in logChange() 48 int1 = model.packageUid in logChange()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/icon/domain/interactor/ |
D | NotificationIconsInteractor.kt | 63 .filter { model: ActiveNotificationModel -> in <lambda>() method 65 model = model, in <lambda>() 81 model: ActiveNotificationModel, in <lambda>() 92 forceShowHeadsUp && model.key == isolatedNotifKey -> true in <lambda>() 93 !showAmbient && model.isAmbient -> false in <lambda>() 94 !showLowPriority && model.isSilent -> false in <lambda>() 95 !showDismissed && model.isRowDismissed -> false in <lambda>() 96 !showRepliedMessages && model.isLastMessageFromReply -> false in <lambda>() 97 !showAmbient && model.isSuppressedFromStatusBar -> false in <lambda>() 98 !showPulsing && model.isPulsing && !notifsFullyHidden -> false in <lambda>() [all …]
|
/frameworks/base/core/java/android/view/ |
D | DisplayAddress.java | 51 public static Physical fromPortAndModel(int port, Long model) { in fromPortAndModel() argument 52 return new Physical(port, model); in fromPortAndModel() 108 final long model = mPhysicalDisplayId >>> MODEL_SHIFT; in getModel() local 109 return model == UNKNOWN_MODEL ? null : model; in getModel() 123 final Long model = getModel(); in toString() local 124 if (model != null) { in toString() 125 builder.append(", model=0x").append(Long.toHexString(model)); in toString() 169 private Physical(int port, Long model) { in Physical() argument 174 | (model == null ? UNKNOWN_MODEL : (model << MODEL_SHIFT)); in Physical()
|