/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/ |
D | SliceHalfCardRendererHelper.java | 59 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()
|
D | SliceDeferredSetupCardRendererHelper.java | 60 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()
|
D | BatteryFixSlice.java | 124 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/ |
D | SliceHalfCardRendererHelper.java | 59 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()
|
D | SliceDeferredSetupCardRendererHelper.java | 60 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()
|
D | BatteryFixSlice.java | 112 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/ |
D | VoicemailErrorAlert.java | 44 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/ |
D | SliceTester.java | 145 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/ |
D | SliceBuilderUtilsTest.java | 422 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/ |
D | ContextualWifiSliceTest.java | 118 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/ |
D | SliceBuilderUtils.java | 319 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/ |
D | SliceBuilderUtils.java | 316 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/ |
D | DataUsageSlice.java | 69 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/ |
D | DataUsageSlice.java | 69 final SliceAction primaryAction = SliceAction.createDeeplink(getPrimaryAction(), icon, in getSlice() local 82 .setPrimaryAction(primaryAction)); in getSlice() 86 .setPrimaryAction(primaryAction)); in getSlice()
|
D | DeviceInfoSlice.java | 62 final SliceAction primaryAction = SliceAction.createDeeplink(getPrimaryAction(), icon, in getSlice() local 71 .setPrimaryAction(primaryAction)) in getSlice()
|
D | StorageSlice.java | 63 final SliceAction primaryAction = SliceAction.createDeeplink(getPrimaryAction(), icon, in getSlice() local 73 .setPrimaryAction(primaryAction)) in getSlice()
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/ |
D | ContextualCardFeatureProviderImpl.java | 50 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/ |
D | LocationSliceTest.java | 48 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/ |
D | BluetoothSliceBuilderTest.java | 69 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/ |
D | StorageSliceTest.java | 73 final SliceAction primaryAction = metadata.getPrimaryAction(); in getSlice_shouldBeCorrectSliceContent() local 76 assertThat(primaryAction.getIcon().toString()).isEqualTo(expectedIcon.toString()); in getSlice_shouldBeCorrectSliceContent()
|
D | DeviceInfoSliceTest.java | 79 final SliceAction primaryAction = metadata.getPrimaryAction(); in getSlice_hasSubscriptionInfo_shouldBeCorrectSliceContent() local 82 assertThat(primaryAction.getIcon().toString()).isEqualTo(expectedIcon.toString()); in getSlice_hasSubscriptionInfo_shouldBeCorrectSliceContent()
|
D | DataUsageSliceTest.java | 92 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/ |
D | ZenModeSliceBuilderTest.java | 71 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/ |
D | LocationSlice.java | 61 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/ |
D | LocationSlice.java | 61 final PendingIntent primaryAction = getPrimaryAction(); in getSlice() local 62 final SliceAction primarySliceAction = SliceAction.createDeeplink(primaryAction, icon, in getSlice()
|