/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 bouncerIsOrWillShow = model.bouncerIsOrWillShow in insert() 107 canSkipBouncer = model.canSkipBouncer in insert() 108 credentialAttempted = model.credentialAttempted in insert() [all …]
|
D | KeyguardFaceListenModel.kt | 95 fun insert(model: KeyguardFaceListenModel) { in insert() 97 timeMillis = model.timeMillis in insert() 98 userId = model.userId in insert() 99 listening = model.listening in insert() 101 allowedDisplayStateWhileAwake = model.allowedDisplayStateWhileAwake in insert() 102 alternateBouncerShowing = model.alternateBouncerShowing in insert() 103 authInterruptActive = model.authInterruptActive in insert() 104 biometricSettingEnabledForUser = model.biometricSettingEnabledForUser in insert() 105 bouncerFullyShown = model.bouncerFullyShown in insert() 106 faceAndFpNotAuthenticated = model.faceAndFpNotAuthenticated 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 | 21 import com.android.systemui.common.shared.model.Text in <lambda>() 27 import com.android.systemui.user.shared.model.UserActionModel in <lambda>() 28 import com.android.systemui.user.shared.model.UserModel in <lambda>() 125 model: UserModel, in <lambda>() 128 viewKey = model.id, in <lambda>() 130 if (model.isGuest && model.isSelected) { in <lambda>() 133 model.name in <lambda>() 135 image = CircularDrawable(model.image), in <lambda>() 136 isSelectionMarkerVisible = model.isSelected, in <lambda>() 138 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 | RestrictedSwitchPreference.kt | 36 import com.android.settingslib.spaprivileged.model.enterprise.BaseUserRestricted 37 import com.android.settingslib.spaprivileged.model.enterprise.BlockedByAdmin 38 import com.android.settingslib.spaprivileged.model.enterprise.NoRestricted 39 import com.android.settingslib.spaprivileged.model.enterprise.RestrictedMode 40 import com.android.settingslib.spaprivileged.model.enterprise.Restrictions 41 import com.android.settingslib.spaprivileged.model.enterprise.RestrictionsProviderFactory 42 import com.android.settingslib.spaprivileged.model.enterprise.RestrictionsProviderImpl 46 model: SwitchPreferenceModel, in RestrictedSwitchPreference() 51 SwitchPreference(model) in RestrictedSwitchPreference() 60 RestrictedSwitchPreferenceModel(context, model, restrictedMode) in RestrictedSwitchPreference() [all …]
|
/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 | 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 | TwoTargetSwitchPreference.kt | 25 model: SwitchPreferenceModel, in TwoTargetSwitchPreference() 31 title = model.title, in TwoTargetSwitchPreference() 32 summary = model.summary, in TwoTargetSwitchPreference() 37 checked = model.checked, in TwoTargetSwitchPreference() 38 changeable = model.changeable, in TwoTargetSwitchPreference() 39 onCheckedChange = model.onCheckedChange, in TwoTargetSwitchPreference()
|
D | Preference.kt | 43 Preference(model = object : PreferenceModel { in UiLayout() 107 model: PreferenceModel, in Preference() 110 val onClickWithLog = wrapOnClickWithLog(model.onClick) in Preference() 111 val modifier = remember(model.enabled.value) { in Preference() 114 enabled = model.enabled.value, in Preference() 121 title = model.title, in Preference() 122 summary = model.summary, in Preference() 125 icon = model.icon, in Preference() 126 enabled = model.enabled, in Preference()
|
/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() 145 private Physical(int port, Long model) { in Physical() argument 150 | (model == null ? UNKNOWN_MODEL : (model << MODEL_SHIFT)); in Physical()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/wifi/ui/model/ |
D | WifiIcon.kt | 17 package com.android.systemui.statusbar.pipeline.wifi.ui.model 26 import com.android.systemui.common.shared.model.ContentDescription 27 import com.android.systemui.common.shared.model.Icon 31 import com.android.systemui.statusbar.pipeline.wifi.shared.model.WifiNetworkModel 69 fun fromModel(model: WifiNetworkModel, context: Context): WifiIcon = in fromModel() 70 when (model) { in fromModel() 84 val levelDesc = context.getString(WIFI_CONNECTION_STRENGTH[model.level]) in fromModel() 86 model.isValidated -> in fromModel() 88 WifiIcons.WIFI_FULL_ICONS[model.level], in fromModel() 93 WifiIcons.WIFI_NO_INTERNET_ICONS[model.level], in fromModel()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/shared/model/ |
D | WakefulnessModel.kt | 16 package com.android.systemui.keyguard.shared.model 19 import com.android.systemui.keyguard.shared.model.WakeSleepReason.GESTURE 20 import com.android.systemui.keyguard.shared.model.WakeSleepReason.POWER_BUTTON 21 import com.android.systemui.keyguard.shared.model.WakeSleepReason.TAP 22 import com.android.systemui.keyguard.shared.model.WakefulnessState.ASLEEP 23 import com.android.systemui.keyguard.shared.model.WakefulnessState.AWAKE 24 import com.android.systemui.keyguard.shared.model.WakefulnessState.STARTING_TO_SLEEP 25 import com.android.systemui.keyguard.shared.model.WakefulnessState.STARTING_TO_WAKE
|
D | DozeStateModel.kt | 16 package com.android.systemui.keyguard.shared.model 48 fun isDozeOff(model: DozeStateModel): Boolean { in isDozeOff() 49 return model == UNINITIALIZED || model == FINISH in isDozeOff()
|
/frameworks/base/services/core/java/com/android/server/integrity/parser/ |
D | RuleBinaryParser.java | 19 import static com.android.server.integrity.model.ComponentBitSize.ATOMIC_FORMULA_START; 20 import static com.android.server.integrity.model.ComponentBitSize.BYTE_BITS; 21 import static com.android.server.integrity.model.ComponentBitSize.COMPOUND_FORMULA_END; 22 import static com.android.server.integrity.model.ComponentBitSize.COMPOUND_FORMULA_START; 23 import static com.android.server.integrity.model.ComponentBitSize.CONNECTOR_BITS; 24 import static com.android.server.integrity.model.ComponentBitSize.EFFECT_BITS; 25 import static com.android.server.integrity.model.ComponentBitSize.FORMAT_VERSION_BITS; 26 import static com.android.server.integrity.model.ComponentBitSize.INSTALLER_ALLOWED_BY_MANIFEST_STA… 27 import static com.android.server.integrity.model.ComponentBitSize.IS_HASHED_BITS; 28 import static com.android.server.integrity.model.ComponentBitSize.KEY_BITS; [all …]
|
/frameworks/base/tools/processors/view_inspector/src/java/android/processor/view/inspector/ |
D | PlatformInspectableProcessor.java | 34 import javax.lang.model.SourceVersion; 35 import javax.lang.model.element.Element; 36 import javax.lang.model.element.ElementKind; 37 import javax.lang.model.element.Modifier; 38 import javax.lang.model.element.TypeElement; 39 import javax.lang.model.util.ElementFilter; 77 for (InspectableClassModel model : modelMap.values()) { in process() 79 generator.generate(model); in process() 83 model.getClassName().toString(), in process() 117 final InspectableClassModel model = modelMap.computeIfAbsent( in processProperties() local [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/shared/data/model/ |
D | DefaultConnectionModelTest.kt | 17 package com.android.systemui.statusbar.pipeline.shared.data.model 29 val model = in messageInitializerAndPrinter_isValidatedFalse_hasCorrectInfo() constant 39 model.messageInitializer(message) in messageInitializerAndPrinter_isValidatedFalse_hasCorrectInfo() 40 val messageString = model.messagePrinter(message) in messageInitializerAndPrinter_isValidatedFalse_hasCorrectInfo() 51 val model = in messageInitializerAndPrinter_isValidatedTrue_hasCorrectInfo() constant 61 model.messageInitializer(message) in messageInitializerAndPrinter_isValidatedTrue_hasCorrectInfo() 62 val messageString = model.messagePrinter(message) in messageInitializerAndPrinter_isValidatedTrue_hasCorrectInfo()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/clipboardoverlay/ |
D | ClipboardOverlayController.java | 284 ClipboardModel model = ClipboardModel.fromClipData(mContext, mClipboardUtils, data, source); in setClipData() local 289 boolean shouldAnimate = !model.dataMatches(mClipboardModel) || wasExiting; in setClipData() 290 mClipboardModel = model; in setClipData() 339 final ClipboardModel model = mClipboardModel; in setExpandedView() local 341 switch (model.getType()) { in setExpandedView() 343 if (model.isRemote() || DeviceConfig.getBoolean( in setExpandedView() 345 if (model.getTextLinks() != null) { in setExpandedView() 346 classifyText(model); in setExpandedView() 349 if (model.isSensitive()) { in setExpandedView() 352 mView.showTextPreview(model.getText().toString(), false); in setExpandedView() [all …]
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/keyguard/data/repository/ |
D | FakeKeyguardRepository.kt | 21 import com.android.systemui.common.shared.model.Position 22 import com.android.systemui.keyguard.shared.model.BiometricUnlockModel 23 import com.android.systemui.keyguard.shared.model.BiometricUnlockSource 24 import com.android.systemui.keyguard.shared.model.DozeTransitionModel 25 import com.android.systemui.keyguard.shared.model.KeyguardRootViewVisibilityState 26 import com.android.systemui.keyguard.shared.model.ScreenModel 27 import com.android.systemui.keyguard.shared.model.ScreenState 28 import com.android.systemui.keyguard.shared.model.StatusBarState 29 import com.android.systemui.keyguard.shared.model.WakeSleepReason 30 import com.android.systemui.keyguard.shared.model.WakefulnessModel [all …]
|