Home
last modified time | relevance | path

Searched refs:SWITCH (Results 1 – 25 of 27) sorted by relevance

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
DSliceBuilderUtilsTest.java98 final SliceData mockData = getMockData(TOGGLE_CONTROLLER, SliceData.SliceType.SWITCH); in buildToggleSlice_returnsMatchingSlice()
287 SliceData.SliceType.SWITCH); in testUnsupportedSlice_validTitleSummary()
300 SliceData.SliceType.SWITCH); in testDisabledForUserSlice_validTitleSummary()
333 SliceData.SliceType.SWITCH); in testConditionallyUnavailableSlice_validTitleSummary()
379 SUMMARY, SliceData.SliceType.SWITCH, SCREEN_TITLE, 0 /* icon */, in buildDisabledDependentSlice_noIconPassed_returnsSliceWithIcon()
397 final SliceData mockData = getMockData(TOGGLE_CONTROLLER, SliceData.SliceType.SWITCH, in buildToggleSlice_noIconPassed_returnsSliceWithIcon()
434 final SliceData data = getMockData(TOGGLE_CONTROLLER, SliceData.SliceType.SWITCH, in getSafeIcon_replacesEmptyIconWithSettingsIcon()
448 final SliceData data = getMockData(TOGGLE_CONTROLLER, SliceData.SliceType.SWITCH, in getSafeIcon_invalidResource_shouldFallbackToSettingsIcon()
458 return getMockData(TOGGLE_CONTROLLER, SUMMARY, SliceData.SliceType.SWITCH, SCREEN_TITLE, in getMockData()
468 return getMockData(TOGGLE_CONTROLLER, summary, SliceData.SliceType.SWITCH, screenTitle, in getMockData()
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/
DSlicesConstants.java67 public static final int SWITCH = 0; field in SlicesConstants
72 @IntDef({SWITCH, CHECKMARK, RADIO, SEEKBAR})
DSlicePreferencesUtil.java41 import static com.android.tv.twopanelsettings.slices.SlicesConstants.SWITCH;
111 case SWITCH : in getPreference()
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/builders/
DPreferenceSliceBuilder.java22 import static com.android.tv.twopanelsettings.slices.SlicesConstants.SWITCH;
616 return addButton(pendingIntent, isChecked, SWITCH); in addSwitch()
637 mButtonStyle = SWITCH; in addSwitch()
742 mButtonStyle = SWITCH; in setCheckmark()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/recyclerview/
DCarUiContentListItem.java87 SWITCH, enumConstant
293 if (mAction == Action.CHECK_BOX || mAction == Action.SWITCH in setChecked()
DCarUiListItemAdapter.java272 case SWITCH: in bind()
/packages/apps/Settings/src/com/android/settings/slices/
DSliceData.java34 @IntDef({SliceType.INTENT, SliceType.SWITCH, SliceType.SLIDER})
45 int SWITCH = 1; field
DSliceDataConverter.java305 .setSliceType(SliceData.SliceType.SWITCH); in getAccessibilitySliceData()
DSliceBuilderUtils.java101 case SliceData.SliceType.SWITCH: in buildSlice()
/packages/apps/Car/libs/car-ui-lib/oem-apis/src/main/java/com/android/car/ui/sharedlibrary/oemapis/recyclerview/
DContentListItemOEMV1.java59 SWITCH, enumConstant
213 if (mAction == Action.CHECK_BOX || mAction == Action.SWITCH in setChecked()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/sharedlibrarysupport/
DSharedLibraryFactoryAdapterV1.java305 case SWITCH: in toOemListItemAction()
306 return ContentListItemOEMV1.Action.SWITCH; in toOemListItemAction()
/packages/apps/Settings/src/com/android/settings/core/
DTogglePreferenceController.java80 return SliceData.SliceType.SWITCH; in getSliceType()
/packages/apps/Settings/src/com/android/settings/accounts/
DContactSearchPreferenceController.java88 return SliceData.SliceType.SWITCH; in getSliceType()
DWorkModePreferenceController.java145 return SliceData.SliceType.SWITCH; in getSliceType()
/packages/apps/Settings/tests/unit/src/com/android/settings/core/
DTogglePreferenceControllerTest.java90 SliceData.SliceType.SWITCH); in testSliceType_returnsSliceType()
/packages/services/Car/tests/carservice_unit_test/src/android/car/userlib/
DUserHalHelperTest.java696 prop.value.int32Values.add(InitialUserInfoResponseAction.SWITCH); in testToInitialUserInfoResponse_switch_missingUserId()
707 prop.value.int32Values.add(InitialUserInfoResponseAction.SWITCH); in testToInitialUserInfoResponse_switch_ok_noLocale()
715 assertThat(response.action).isEqualTo(InitialUserInfoResponseAction.SWITCH); in testToInitialUserInfoResponse_switch_ok_noLocale()
727 prop.value.int32Values.add(InitialUserInfoResponseAction.SWITCH); in testToInitialUserInfoResponse_switch_ok_withLocale()
736 assertThat(response.action).isEqualTo(InitialUserInfoResponseAction.SWITCH); in testToInitialUserInfoResponse_switch_ok_withLocale()
/packages/apps/Settings/tests/unit/src/com/android/settings/slices/
DSliceDataTest.java40 private static final int SLICE_TYPE = SliceData.SliceType.SWITCH;
/packages/apps/Car/libs/car-ui-lib/paintbooth/src/main/java/com/android/car/ui/paintbooth/caruirecyclerview/
DCarUiListItemActivity.java137 item = new CarUiContentListItem(CarUiContentListItem.Action.SWITCH); in generateSampleData()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DUserHalServiceTest.java421 REQUEST_ID_PLACE_HOLDER, InitialUserInfoResponseAction.SWITCH); in testGetUserInfo_successSwitchUser()
439 assertThat(actualResponse.action).isEqualTo(InitialUserInfoResponseAction.SWITCH); in testGetUserInfo_successSwitchUser()
567 REQUEST_ID_PLACE_HOLDER, InitialUserInfoResponseAction.SWITCH); in testSwitchUser_halReplyWithWrongRequestId()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/recyclerview/
DCarUiListItemTest.java294 CarUiContentListItem item = new CarUiContentListItem(CarUiContentListItem.Action.SWITCH); in testItem_withSwitch()
461 CarUiContentListItem.Action.SWITCH); in testNonIconItem_withSupplementalIcon()
/packages/apps/Car/libs/car-ui-lib/referencedesign/sharedlibrary/src/main/java/com/chassis/car/ui/sharedlibrary/recyclerview/
DListItemAdapter.java359 case SWITCH: in bind()
/packages/services/Telephony/src/com/android/phone/
DCallNotifier.java533 } else if (r.result == Phone.SuppService.SWITCH) { in onSuppServiceFailed()
/packages/services/Car/user/car-user-lib/src/android/car/userlib/
DUserHalHelper.java414 case InitialUserInfoResponseAction.SWITCH: in toInitialUserInfoResponse()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/toolbar/
DToolbarControllerImpl.java762 carUiItem = new CarUiContentListItem(CarUiContentListItem.Action.SWITCH); in toCarUiContentListItem()
/packages/services/Car/service/src/com/android/car/hal/
DUserHalService.java905 case InitialUserInfoResponseAction.SWITCH: in getInitialUserInfoResponseActionForStatsd()

12