Home
last modified time | relevance | path

Searched refs:primaryAction (Results 1 – 25 of 38) sorted by relevance

12

/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DSliceHalfCardRendererHelper.java59 final SliceAction primaryAction = sliceMetadata.getPrimaryAction(); in bindView() local
60 view.icon.setImageDrawable(primaryAction.getIcon().loadDrawable(mContext)); in bindView()
61 view.title.setText(primaryAction.getTitle()); in bindView()
64 primaryAction.getAction().send(); in bindView()
66 Log.w(TAG, "Failed to start intent " + primaryAction.getTitle()); in bindView()
DSliceDeferredSetupCardRendererHelper.java60 final SliceAction primaryAction = sliceMetadata.getPrimaryAction(); in bindView() local
61 view.icon.setImageDrawable(primaryAction.getIcon().loadDrawable(mContext)); in bindView()
62 view.title.setText(primaryAction.getTitle()); in bindView()
66 primaryAction.getAction().send(); in bindView()
68 Log.w(TAG, "Failed to start intent " + primaryAction.getTitle()); in bindView()
DBatteryFixSlice.java124 final SliceAction primaryAction = SliceAction.createDeeplink(getPrimaryAction(), in getSlice() local
132 .setPrimaryAction(primaryAction)); in getSlice()
171 final SliceAction primaryAction = SliceAction.createDeeplink(getPrimaryAction(), icon, in buildBatteryGoodSlice() local
176 .setPrimaryAction(primaryAction)) in buildBatteryGoodSlice()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/slices/
DSliceHalfCardRendererHelper.java59 final SliceAction primaryAction = sliceMetadata.getPrimaryAction(); in bindView() local
60 view.icon.setImageDrawable(primaryAction.getIcon().loadDrawable(mContext)); in bindView()
61 view.title.setText(primaryAction.getTitle()); in bindView()
64 primaryAction.getAction().send(); in bindView()
66 Log.w(TAG, "Failed to start intent " + primaryAction.getTitle()); in bindView()
DSliceDeferredSetupCardRendererHelper.java60 final SliceAction primaryAction = sliceMetadata.getPrimaryAction(); in bindView() local
61 view.icon.setImageDrawable(primaryAction.getIcon().loadDrawable(mContext)); in bindView()
62 view.title.setText(primaryAction.getTitle()); in bindView()
66 primaryAction.getAction().send(); in bindView()
68 Log.w(TAG, "Failed to start intent " + primaryAction.getTitle()); in bindView()
DBatteryFixSlice.java112 final SliceAction primaryAction = SliceAction.createDeeplink(getPrimaryAction(), in getSlice() local
120 .setPrimaryAction(primaryAction)); in getSlice()
159 final SliceAction primaryAction = SliceAction.createDeeplink(getPrimaryAction(), icon, in buildBatteryGoodSlice() local
164 .setPrimaryAction(primaryAction)) in buildBatteryGoodSlice()
/packages/apps/Dialer/java/com/android/dialer/voicemail/listui/error/
DVoicemailErrorAlert.java44 private final TextView primaryAction; field in VoicemailErrorAlert
64 primaryAction = (TextView) view.findViewById(R.id.primary_action); in VoicemailErrorAlert()
128 Action primaryAction = message.getActions().get(0); in getTosView() local
130 primaryButton.setText(primaryAction.getText()); in getTosView()
131 primaryButton.setOnClickListener(primaryAction.getListener()); in getTosView()
153 TextView[] buttons = new TextView[] {primaryAction, secondaryAction}; in bindActions()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/
DSliceTester.java145 final SliceAction primaryAction = metadata.getPrimaryAction(); in testSettingsSliderSlice() local
149 assertThat(expectedIcon.toString()).isEqualTo(primaryAction.getIcon().toString()); in testSettingsSliderSlice()
158 final PendingIntent primaryPendingIntent = primaryAction.getAction(); in testSettingsSliderSlice()
184 final SliceAction primaryAction = metadata.getPrimaryAction(); in testSettingsCopyableSlice() local
188 assertThat(expectedIcon.toString()).isEqualTo(primaryAction.getIcon().toString()); in testSettingsCopyableSlice()
194 final PendingIntent primaryPendingIntent = primaryAction.getAction(); in testSettingsCopyableSlice()
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
DSliceBuilderUtilsTest.java422 final SliceAction primaryAction = metadata.getPrimaryAction(); in buildIntentSlice_noIconPassed_returnsSliceWithIcon() local
423 final int actualIconResource = primaryAction.getIcon().toIcon().getResId(); in buildIntentSlice_noIconPassed_returnsSliceWithIcon()
441 final SliceAction primaryAction = metadata.getPrimaryAction(); in buildDisabledDependentSlice_noIconPassed_returnsSliceWithIcon() local
442 final int actualIconResource = primaryAction.getIcon().toIcon().getResId(); in buildDisabledDependentSlice_noIconPassed_returnsSliceWithIcon()
456 final SliceAction primaryAction = metadata.getPrimaryAction(); in buildToggleSlice_noIconPassed_returnsSliceWithIcon() local
457 final int actualIconResource = primaryAction.getIcon().toIcon().getResId(); in buildToggleSlice_noIconPassed_returnsSliceWithIcon()
470 final SliceAction primaryAction = metadata.getPrimaryAction(); in buildSliderSlice_noIconPassed_returnsSliceWithIcon() local
471 final int actualIconResource = primaryAction.getIcon().toIcon().getResId(); in buildSliderSlice_noIconPassed_returnsSliceWithIcon()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/slice/
DContextualWifiSliceTest.java118 final SliceAction primaryAction = metadata.getPrimaryAction(); in getWifiSlice_previousDisplayed_hasActiveConnection_shouldHaveTitleAndToggle() local
121 assertThat(primaryAction.getIcon().toString()).isEqualTo(expectedToggleIcon.toString()); in getWifiSlice_previousDisplayed_hasActiveConnection_shouldHaveTitleAndToggle()
137 final SliceAction primaryAction = metadata.getPrimaryAction(); in getWifiSlice_isCaptivePortal_shouldHaveTitleAndToggle() local
140 assertThat(primaryAction.getIcon().toString()).isEqualTo(expectedToggleIcon.toString()); in getWifiSlice_isCaptivePortal_shouldHaveTitleAndToggle()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/slices/
DSliceBuilderUtils.java319 final SliceAction primaryAction = SliceAction.createDeeplink(contentIntent, icon, in buildSliderSlice() local
328 .setPrimaryAction(primaryAction) in buildSliderSlice()
341 final SliceAction primaryAction = SliceAction.createDeeplink(contentIntent, icon, in buildCopyableSlice() local
353 .setPrimaryAction(primaryAction) in buildCopyableSlice()
432 final SliceAction primaryAction = SliceAction.createDeeplink( in buildUnavailableSlice() local
442 .setPrimaryAction(primaryAction)) in buildUnavailableSlice()
/packages/apps/Settings/src/com/android/settings/slices/
DSliceBuilderUtils.java316 final SliceAction primaryAction = SliceAction.createDeeplink(contentIntent, icon, in buildSliderSlice() local
333 .setPrimaryAction(primaryAction) in buildSliderSlice()
347 final SliceAction primaryAction = SliceAction.createDeeplink(contentIntent, icon, in buildCopyableSlice() local
359 .setPrimaryAction(primaryAction) in buildCopyableSlice()
438 final SliceAction primaryAction = SliceAction.createDeeplink( in buildUnavailableSlice() local
448 .setPrimaryAction(primaryAction)) in buildUnavailableSlice()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/deviceinfo/
DDataUsageSlice.java69 final SliceAction primaryAction = SliceAction.createDeeplink(getPrimaryAction(), icon, in getSlice() local
82 .setPrimaryAction(primaryAction)); in getSlice()
86 .setPrimaryAction(primaryAction)); in getSlice()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/deviceinfo/
DDataUsageSlice.java69 final SliceAction primaryAction = SliceAction.createDeeplink(getPrimaryAction(), icon, in getSlice() local
82 .setPrimaryAction(primaryAction)); in getSlice()
86 .setPrimaryAction(primaryAction)); in getSlice()
DDeviceInfoSlice.java62 final SliceAction primaryAction = SliceAction.createDeeplink(getPrimaryAction(), icon, in getSlice() local
71 .setPrimaryAction(primaryAction)) in getSlice()
DStorageSlice.java63 final SliceAction primaryAction = SliceAction.createDeeplink(getPrimaryAction(), icon, in getSlice() local
73 .setPrimaryAction(primaryAction)) in getSlice()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/
DContextualCardFeatureProviderImpl.java50 final SliceAction primaryAction = SliceMetadata.from(mContext, slice).getPrimaryAction(); in logNotificationPackage() local
51 final String currentPackage = primaryAction.getAction().getIntent() in logNotificationPackage()
/packages/apps/Settings/tests/robotests/src/com/android/settings/location/
DLocationSliceTest.java48 final SliceAction primaryAction = metadata.getPrimaryAction(); in getLocationSlice_correctSliceContent() local
51 assertThat(primaryAction.getIcon().toString()).isEqualTo(expectedToggleIcon.toString()); in getLocationSlice_correctSliceContent()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothSliceBuilderTest.java69 final SliceAction primaryAction = metadata.getPrimaryAction(); in getBluetoothSlice_correctSliceContent() local
72 assertThat(primaryAction.getIcon().toString()).isEqualTo(expectedToggleIcon.toString()); in getBluetoothSlice_correctSliceContent()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/deviceinfo/
DStorageSliceTest.java73 final SliceAction primaryAction = metadata.getPrimaryAction(); in getSlice_shouldBeCorrectSliceContent() local
76 assertThat(primaryAction.getIcon().toString()).isEqualTo(expectedIcon.toString()); in getSlice_shouldBeCorrectSliceContent()
DDeviceInfoSliceTest.java79 final SliceAction primaryAction = metadata.getPrimaryAction(); in getSlice_hasSubscriptionInfo_shouldBeCorrectSliceContent() local
82 assertThat(primaryAction.getIcon().toString()).isEqualTo(expectedIcon.toString()); in getSlice_hasSubscriptionInfo_shouldBeCorrectSliceContent()
DDataUsageSliceTest.java92 final SliceAction primaryAction = metadata.getPrimaryAction(); in getSlice_hasSim_shouldBeCorrectSliceContent() local
95 assertThat(primaryAction.getIcon().toString()).isEqualTo(expectedIcon.toString()); in getSlice_hasSim_shouldBeCorrectSliceContent()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DZenModeSliceBuilderTest.java71 final SliceAction primaryAction = metadata.getPrimaryAction(); in getZenModeSlice_correctSliceContent() local
72 assertThat(primaryAction.getIcon()).isNull(); in getZenModeSlice_correctSliceContent()
/packages/apps/Settings/src/com/android/settings/location/
DLocationSlice.java61 final PendingIntent primaryAction = getPrimaryAction(); in getSlice() local
62 final SliceAction primarySliceAction = SliceAction.createDeeplink(primaryAction, icon, in getSlice()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/location/
DLocationSlice.java61 final PendingIntent primaryAction = getPrimaryAction(); in getSlice() local
62 final SliceAction primarySliceAction = SliceAction.createDeeplink(primaryAction, icon, in getSlice()

12