summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Sarah Chin <sarahchin@google.com> 2022-12-19 14:08:40 -0800
committer Sarah Chin <sarahchin@google.com> 2022-12-19 14:34:55 -0800
commitc0eabbc4f1558b39a7e1873f0d1f11e09b5702ab (patch)
tree794d9b28f033ebdd99607beecda9426b86bb09fb
parent152f1c5c0fc8cde2ee38cc3cf0fc63753afe32e6 (diff)
Rename network boost to performance boost
Test: manually and unit/cts tests Bug: 260647041 Change-Id: I64757d10a8dcab9f263bf032a838bc403faec78b
-rw-r--r--packages/CarrierDefaultApp/res/drawable/ic_performance_boost.xml (renamed from packages/CarrierDefaultApp/res/drawable/ic_network_boost.xml)0
-rw-r--r--packages/CarrierDefaultApp/res/values/strings.xml22
-rw-r--r--packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/SlicePurchaseActivity.java6
-rw-r--r--packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/SlicePurchaseBroadcastReceiver.java71
-rw-r--r--packages/CarrierDefaultApp/tests/unit/src/com/android/carrierdefaultapp/SlicePurchaseBroadcastReceiverTest.java22
-rw-r--r--telephony/java/android/telephony/CarrierConfigManager.java20
-rw-r--r--telephony/java/android/telephony/TelephonyManager.java20
7 files changed, 83 insertions, 78 deletions
diff --git a/packages/CarrierDefaultApp/res/drawable/ic_network_boost.xml b/packages/CarrierDefaultApp/res/drawable/ic_performance_boost.xml
index ad8a21c7abb6..ad8a21c7abb6 100644
--- a/packages/CarrierDefaultApp/res/drawable/ic_network_boost.xml
+++ b/packages/CarrierDefaultApp/res/drawable/ic_performance_boost.xml
diff --git a/packages/CarrierDefaultApp/res/values/strings.xml b/packages/CarrierDefaultApp/res/values/strings.xml
index 3dcdf00ca8f5..df4705b1efac 100644
--- a/packages/CarrierDefaultApp/res/values/strings.xml
+++ b/packages/CarrierDefaultApp/res/values/strings.xml
@@ -14,17 +14,17 @@
<string name="ssl_error_example">For example, the login page may not belong to the organization shown.</string>
<string name="ssl_error_continue">Continue anyway via browser</string>
- <!-- Telephony notification channel name for network boost notifications. -->
- <string name="network_boost_notification_channel">Network boost</string>
- <!-- Notification title text for the network boost notification. -->
- <string name="network_boost_notification_title">%s recommends a data boost</string>
- <!-- Notification detail text for the network boost notification. -->
- <string name="network_boost_notification_detail">Buy a network boost for better performance</string>
- <!-- Notification button text to cancel the network boost notification. -->
- <string name="network_boost_notification_button_not_now">Not now</string>
- <!-- Notification button text to manage the network boost notification. -->
- <string name="network_boost_notification_button_manage">Manage</string>
+ <!-- Telephony notification channel name for performance boost notifications. -->
+ <string name="performance_boost_notification_channel">Performance boost</string>
+ <!-- Notification title text for the performance boost notification. -->
+ <string name="performance_boost_notification_title">%s recommends a performance boost</string>
+ <!-- Notification detail text for the performance boost notification. -->
+ <string name="performance_boost_notification_detail">Buy a performance boost for better network performance</string>
+ <!-- Notification button text to cancel the performance boost notification. -->
+ <string name="performance_boost_notification_button_not_now">Not now</string>
+ <!-- Notification button text to manage the performance boost notification. -->
+ <string name="performance_boost_notification_button_manage">Manage</string>
<!-- Label to display when the slice purchase application opens. -->
- <string name="slice_purchase_app_label">Purchase a network boost.</string>
+ <string name="slice_purchase_app_label">Purchase a performance boost.</string>
</resources>
diff --git a/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/SlicePurchaseActivity.java b/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/SlicePurchaseActivity.java
index c08b83a7ae78..5f067e9836a2 100644
--- a/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/SlicePurchaseActivity.java
+++ b/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/SlicePurchaseActivity.java
@@ -34,7 +34,7 @@ import java.net.URL;
import java.util.concurrent.TimeUnit;
/**
- * Activity that launches when the user clicks on the network boost notification.
+ * Activity that launches when the user clicks on the performance boost notification.
* This will open a {@link WebView} for the carrier website to allow the user to complete the
* premium capability purchase.
* The carrier website can get the requested premium capability using the JavaScript interface
@@ -42,7 +42,7 @@ import java.util.concurrent.TimeUnit;
* If the purchase is successful, the carrier website shall notify the slice purchase application
* using the JavaScript interface method
* {@code SlicePurchaseWebInterface.notifyPurchaseSuccessful(duration)}, where {@code duration} is
- * the optional duration of the network boost.
+ * the optional duration of the performance boost.
* If the purchase was not successful, the carrier website shall notify the slice purchase
* application using the JavaScript interface method
* {@code SlicePurchaseWebInterface.notifyPurchaseFailed(code, reason)}, where {@code code} is the
@@ -74,7 +74,7 @@ public class SlicePurchaseActivity extends Activity {
logd("onCreate: subId=" + subId + ", capability="
+ TelephonyManager.convertPremiumCapabilityToString(mCapability) + ", url=" + url);
- // Cancel network boost notification
+ // Cancel performance boost notification
SlicePurchaseBroadcastReceiver.cancelNotification(mApplicationContext, mCapability);
// Verify purchase URL is valid
diff --git a/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/SlicePurchaseBroadcastReceiver.java b/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/SlicePurchaseBroadcastReceiver.java
index 30411381ae82..1b02c2b87e4a 100644
--- a/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/SlicePurchaseBroadcastReceiver.java
+++ b/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/SlicePurchaseBroadcastReceiver.java
@@ -53,9 +53,9 @@ import java.util.UUID;
/**
* The SlicePurchaseBroadcastReceiver listens for
* {@link SlicePurchaseController#ACTION_START_SLICE_PURCHASE_APP} from the SlicePurchaseController
- * in the phone process to start the slice purchase application. It displays the network boost
+ * in the phone process to start the slice purchase application. It displays the performance boost
* notification to the user and will start the {@link SlicePurchaseActivity} to display the
- * {@link WebView} to purchase network boosts from the user's carrier.
+ * {@link WebView} to purchase performance boosts from the user's carrier.
*/
public class SlicePurchaseBroadcastReceiver extends BroadcastReceiver{
private static final String TAG = "SlicePurchaseBroadcastReceiver";
@@ -66,27 +66,29 @@ public class SlicePurchaseBroadcastReceiver extends BroadcastReceiver{
*/
private static final String UUID_BAD_PENDING_INTENT = "c360246e-95dc-4abf-9dc1-929a76cd7e53";
- /** Channel ID for the network boost notification. */
- private static final String NETWORK_BOOST_NOTIFICATION_CHANNEL_ID = "network_boost";
- /** Tag for the network boost notification. */
- public static final String NETWORK_BOOST_NOTIFICATION_TAG = "SlicePurchaseApp.Notification";
- /** Action for when the user clicks the "Not now" button on the network boost notification. */
+ /** Channel ID for the performance boost notification. */
+ private static final String PERFORMANCE_BOOST_NOTIFICATION_CHANNEL_ID = "performance_boost";
+ /** Tag for the performance boost notification. */
+ public static final String PERFORMANCE_BOOST_NOTIFICATION_TAG = "SlicePurchaseApp.Notification";
+ /**
+ * Action for when the user clicks the "Not now" button on the performance boost notification.
+ */
private static final String ACTION_NOTIFICATION_CANCELED =
"com.android.phone.slice.action.NOTIFICATION_CANCELED";
/**
* A map of Intents sent by {@link SlicePurchaseController} for each capability.
- * If this map contains an Intent for a given capability, the network boost notification to
+ * If this map contains an Intent for a given capability, the performance boost notification to
* purchase the capability is visible to the user.
* If this map does not contain an Intent for a given capability, either the capability was
* never requested or the {@link SlicePurchaseActivity} is visible to the user.
- * An Intent is added to this map when the network boost notification is displayed to the user
- * and removed from the map when the notification is canceled.
+ * An Intent is added to this map when the performance boost notification is displayed to the
+ * user and removed from the map when the notification is canceled.
*/
private static final Map<Integer, Intent> sIntents = new HashMap<>();
/**
- * Cancel the network boost notification for the given capability and
+ * Cancel the performance boost notification for the given capability and
* remove the corresponding notification intent from the map.
*
* @param context The context to cancel the notification in.
@@ -95,7 +97,7 @@ public class SlicePurchaseBroadcastReceiver extends BroadcastReceiver{
public static void cancelNotification(@NonNull Context context,
@TelephonyManager.PremiumCapability int capability) {
context.getSystemService(NotificationManager.class).cancelAsUser(
- NETWORK_BOOST_NOTIFICATION_TAG, capability, UserHandle.ALL);
+ PERFORMANCE_BOOST_NOTIFICATION_TAG, capability, UserHandle.ALL);
sIntents.remove(capability);
}
@@ -263,7 +265,7 @@ public class SlicePurchaseBroadcastReceiver extends BroadcastReceiver{
onLocaleChanged(context);
break;
case SlicePurchaseController.ACTION_START_SLICE_PURCHASE_APP:
- onDisplayNetworkBoostNotification(context, intent, false);
+ onDisplayPerformanceBoostNotification(context, intent, false);
break;
case SlicePurchaseController.ACTION_SLICE_PURCHASE_APP_RESPONSE_TIMEOUT:
onTimeout(context, intent);
@@ -283,13 +285,13 @@ public class SlicePurchaseBroadcastReceiver extends BroadcastReceiver{
if (sIntents.get(capability) != null) {
// Notification is active -- update notification for new locale
context.getSystemService(NotificationManager.class).cancelAsUser(
- NETWORK_BOOST_NOTIFICATION_TAG, capability, UserHandle.ALL);
- onDisplayNetworkBoostNotification(context, sIntents.get(capability), true);
+ PERFORMANCE_BOOST_NOTIFICATION_TAG, capability, UserHandle.ALL);
+ onDisplayPerformanceBoostNotification(context, sIntents.get(capability), true);
}
}
}
- private void onDisplayNetworkBoostNotification(@NonNull Context context,
+ private void onDisplayPerformanceBoostNotification(@NonNull Context context,
@NonNull Intent intent, boolean repeat) {
if (!repeat && !isIntentValid(intent)) {
sendSlicePurchaseAppResponse(intent,
@@ -299,8 +301,8 @@ public class SlicePurchaseBroadcastReceiver extends BroadcastReceiver{
Resources res = getResources(context);
NotificationChannel channel = new NotificationChannel(
- NETWORK_BOOST_NOTIFICATION_CHANNEL_ID,
- res.getString(R.string.network_boost_notification_channel),
+ PERFORMANCE_BOOST_NOTIFICATION_CHANNEL_ID,
+ res.getString(R.string.performance_boost_notification_channel),
NotificationManager.IMPORTANCE_DEFAULT);
// CarrierDefaultApp notifications are unblockable by default. Make this channel blockable
// to allow users to disable notifications posted to this channel without affecting other
@@ -309,36 +311,39 @@ public class SlicePurchaseBroadcastReceiver extends BroadcastReceiver{
context.getSystemService(NotificationManager.class).createNotificationChannel(channel);
Notification notification =
- new Notification.Builder(context, NETWORK_BOOST_NOTIFICATION_CHANNEL_ID)
+ new Notification.Builder(context, PERFORMANCE_BOOST_NOTIFICATION_CHANNEL_ID)
.setContentTitle(String.format(res.getString(
- R.string.network_boost_notification_title),
+ R.string.performance_boost_notification_title),
intent.getStringExtra(
SlicePurchaseController.EXTRA_REQUESTING_APP_NAME)))
- .setContentText(res.getString(R.string.network_boost_notification_detail))
- .setSmallIcon(R.drawable.ic_network_boost)
+ .setContentText(res.getString(
+ R.string.performance_boost_notification_detail))
+ .setSmallIcon(R.drawable.ic_performance_boost)
.setContentIntent(createContentIntent(context, intent, 1))
.setDeleteIntent(intent.getParcelableExtra(
SlicePurchaseController.EXTRA_INTENT_CANCELED, PendingIntent.class))
// Add an action for the "Not now" button, which has the same behavior as
// the user canceling or closing the notification.
.addAction(new Notification.Action.Builder(
- Icon.createWithResource(context, R.drawable.ic_network_boost),
- res.getString(R.string.network_boost_notification_button_not_now),
+ Icon.createWithResource(context, R.drawable.ic_performance_boost),
+ res.getString(
+ R.string.performance_boost_notification_button_not_now),
createCanceledIntent(context, intent)).build())
// Add an action for the "Manage" button, which has the same behavior as
// the user clicking on the notification.
.addAction(new Notification.Action.Builder(
- Icon.createWithResource(context, R.drawable.ic_network_boost),
- res.getString(R.string.network_boost_notification_button_manage),
+ Icon.createWithResource(context, R.drawable.ic_performance_boost),
+ res.getString(
+ R.string.performance_boost_notification_button_manage),
createContentIntent(context, intent, 2)).build())
.build();
int capability = intent.getIntExtra(SlicePurchaseController.EXTRA_PREMIUM_CAPABILITY,
SlicePurchaseController.PREMIUM_CAPABILITY_INVALID);
- logd((repeat ? "Update" : "Display") + " the network boost notification for capability "
+ logd((repeat ? "Update" : "Display") + " the performance boost notification for capability "
+ TelephonyManager.convertPremiumCapabilityToString(capability));
context.getSystemService(NotificationManager.class).notifyAsUser(
- NETWORK_BOOST_NOTIFICATION_TAG, capability, notification, UserHandle.ALL);
+ PERFORMANCE_BOOST_NOTIFICATION_TAG, capability, notification, UserHandle.ALL);
if (!repeat) {
sIntents.put(capability, intent);
sendSlicePurchaseAppResponse(intent,
@@ -376,7 +381,7 @@ public class SlicePurchaseBroadcastReceiver extends BroadcastReceiver{
}
/**
- * Create the intent for when the user clicks on the "Manage" button on the network boost
+ * Create the intent for when the user clicks on the "Manage" button on the performance boost
* notification or the notification itself. This will open {@link SlicePurchaseActivity}.
*
* @param context The Context to create the intent for.
@@ -400,9 +405,9 @@ public class SlicePurchaseBroadcastReceiver extends BroadcastReceiver{
}
/**
- * Create the canceled intent for when the user clicks the "Not now" button on the network boost
- * notification. This will send {@link #ACTION_NOTIFICATION_CANCELED} and has the same function
- * as if the user had canceled or removed the notification.
+ * Create the canceled intent for when the user clicks the "Not now" button on the performance
+ * boost notification. This will send {@link #ACTION_NOTIFICATION_CANCELED} and has the same
+ * behavior as if the user had canceled or removed the notification.
*
* @param context The Context to create the intent for.
* @param intent The source Intent used to launch the slice purchase application.
@@ -427,7 +432,7 @@ public class SlicePurchaseBroadcastReceiver extends BroadcastReceiver{
+ " timed out.");
if (sIntents.get(capability) != null) {
// Notification is still active -- cancel pending notification
- logd("Closing network boost notification since the user did not respond in time.");
+ logd("Closing performance boost notification since the user did not respond in time.");
cancelNotification(context, capability);
} else {
// SlicePurchaseActivity is still active -- ignore timer
diff --git a/packages/CarrierDefaultApp/tests/unit/src/com/android/carrierdefaultapp/SlicePurchaseBroadcastReceiverTest.java b/packages/CarrierDefaultApp/tests/unit/src/com/android/carrierdefaultapp/SlicePurchaseBroadcastReceiverTest.java
index 958e13870759..568d63c90285 100644
--- a/packages/CarrierDefaultApp/tests/unit/src/com/android/carrierdefaultapp/SlicePurchaseBroadcastReceiverTest.java
+++ b/packages/CarrierDefaultApp/tests/unit/src/com/android/carrierdefaultapp/SlicePurchaseBroadcastReceiverTest.java
@@ -172,13 +172,13 @@ public class SlicePurchaseBroadcastReceiverTest {
}
@Test
- public void testDisplayNetworkBoostNotification() throws Exception {
- displayNetworkBoostNotification();
+ public void testDisplayPerformanceBoostNotification() throws Exception {
+ displayPerformanceBoostNotification();
- // verify network boost notification was shown
+ // verify performance boost notification was shown
ArgumentCaptor<Notification> captor = ArgumentCaptor.forClass(Notification.class);
verify(mNotificationManager).notifyAsUser(
- eq(SlicePurchaseBroadcastReceiver.NETWORK_BOOST_NOTIFICATION_TAG),
+ eq(SlicePurchaseBroadcastReceiver.PERFORMANCE_BOOST_NOTIFICATION_TAG),
eq(TelephonyManager.PREMIUM_CAPABILITY_PRIORITIZE_LATENCY),
captor.capture(),
eq(UserHandle.ALL));
@@ -195,7 +195,7 @@ public class SlicePurchaseBroadcastReceiverTest {
verify(mNotificationShownIntent).send();
}
- private void displayNetworkBoostNotification() {
+ private void displayPerformanceBoostNotification() {
// set up pending intents
doReturn(TelephonyManager.PHONE_PROCESS_NAME).when(mPendingIntent).getCreatorPackage();
doReturn(true).when(mPendingIntent).isBroadcast();
@@ -244,14 +244,14 @@ public class SlicePurchaseBroadcastReceiverTest {
// verify notification was canceled
verify(mNotificationManager).cancelAsUser(
- eq(SlicePurchaseBroadcastReceiver.NETWORK_BOOST_NOTIFICATION_TAG),
+ eq(SlicePurchaseBroadcastReceiver.PERFORMANCE_BOOST_NOTIFICATION_TAG),
eq(TelephonyManager.PREMIUM_CAPABILITY_PRIORITIZE_LATENCY),
eq(UserHandle.ALL));
}
@Test
public void testNotificationTimeout() throws Exception {
- displayNetworkBoostNotification();
+ displayPerformanceBoostNotification();
// send ACTION_SLICE_PURCHASE_APP_RESPONSE_TIMEOUT
doReturn(SlicePurchaseController.ACTION_SLICE_PURCHASE_APP_RESPONSE_TIMEOUT).when(mIntent)
@@ -262,7 +262,7 @@ public class SlicePurchaseBroadcastReceiverTest {
// verify notification was canceled
verify(mNotificationManager).cancelAsUser(
- eq(SlicePurchaseBroadcastReceiver.NETWORK_BOOST_NOTIFICATION_TAG),
+ eq(SlicePurchaseBroadcastReceiver.PERFORMANCE_BOOST_NOTIFICATION_TAG),
eq(TelephonyManager.PREMIUM_CAPABILITY_PRIORITIZE_LATENCY),
eq(UserHandle.ALL));
}
@@ -274,7 +274,7 @@ public class SlicePurchaseBroadcastReceiverTest {
Locale before = getLocale();
// display notification
- displayNetworkBoostNotification();
+ displayPerformanceBoostNotification();
clearInvocations(mNotificationManager);
clearInvocations(mNotificationShownIntent);
@@ -291,11 +291,11 @@ public class SlicePurchaseBroadcastReceiverTest {
// verify notification was updated and SlicePurchaseController was not notified
verify(mNotificationManager).cancelAsUser(
- eq(SlicePurchaseBroadcastReceiver.NETWORK_BOOST_NOTIFICATION_TAG),
+ eq(SlicePurchaseBroadcastReceiver.PERFORMANCE_BOOST_NOTIFICATION_TAG),
eq(TelephonyManager.PREMIUM_CAPABILITY_PRIORITIZE_LATENCY),
eq(UserHandle.ALL));
verify(mNotificationManager).notifyAsUser(
- eq(SlicePurchaseBroadcastReceiver.NETWORK_BOOST_NOTIFICATION_TAG),
+ eq(SlicePurchaseBroadcastReceiver.PERFORMANCE_BOOST_NOTIFICATION_TAG),
eq(TelephonyManager.PREMIUM_CAPABILITY_PRIORITIZE_LATENCY),
any(Notification.class),
eq(UserHandle.ALL));
diff --git a/telephony/java/android/telephony/CarrierConfigManager.java b/telephony/java/android/telephony/CarrierConfigManager.java
index 884458f0ec88..a6e30a598861 100644
--- a/telephony/java/android/telephony/CarrierConfigManager.java
+++ b/telephony/java/android/telephony/CarrierConfigManager.java
@@ -9141,7 +9141,7 @@ public class CarrierConfigManager {
/**
* A list of premium capabilities the carrier supports. Applications can prompt users to
- * purchase these premium capabilities from their carrier for a network boost.
+ * purchase these premium capabilities from their carrier for a performance boost.
* Valid values are any of {@link TelephonyManager.PremiumCapability}.
*
* This is empty by default, indicating that no premium capabilities are supported.
@@ -9153,12 +9153,12 @@ public class CarrierConfigManager {
"supported_premium_capabilities_int_array";
/**
- * The amount of time in milliseconds the notification for a network boost via
+ * The amount of time in milliseconds the notification for a performance boost via
* premium capabilities will be visible to the user after
* {@link TelephonyManager#purchasePremiumCapability(int, Executor, Consumer)}
* requests user action to purchase the boost from the carrier. Once the timeout expires,
- * the booster notification will be automatically dismissed and the request will fail with
- * {@link TelephonyManager#PURCHASE_PREMIUM_CAPABILITY_RESULT_TIMEOUT}.
+ * the performance boost notification will be automatically dismissed and the request will fail
+ * with {@link TelephonyManager#PURCHASE_PREMIUM_CAPABILITY_RESULT_TIMEOUT}.
*
* The default value is 30 minutes.
*/
@@ -9166,11 +9166,11 @@ public class CarrierConfigManager {
"premium_capability_notification_display_timeout_millis_long";
/**
- * The amount of time in milliseconds that the notification for a network boost via
+ * The amount of time in milliseconds that the notification for a performance boost via
* premium capabilities should be blocked when
* {@link TelephonyManager#purchasePremiumCapability(int, Executor, Consumer)}
* returns a failure due to user action or timeout.
- * The maximum number of network boost notifications to show the user are defined in
+ * The maximum number of performance boost notifications to show the user are defined in
* {@link #KEY_PREMIUM_CAPABILITY_MAXIMUM_DAILY_NOTIFICATION_COUNT_INT} and
* {@link #KEY_PREMIUM_CAPABILITY_MAXIMUM_MONTHLY_NOTIFICATION_COUNT_INT}.
*
@@ -9184,7 +9184,7 @@ public class CarrierConfigManager {
"premium_capability_notification_backoff_hysteresis_time_millis_long";
/**
- * The maximum number of times in a day that we display the notification for a network boost
+ * The maximum number of times in a day that we display the notification for a performance boost
* via premium capabilities when
* {@link TelephonyManager#purchasePremiumCapability(int, Executor, Consumer)}
* returns a failure due to user action or timeout.
@@ -9198,8 +9198,8 @@ public class CarrierConfigManager {
"premium_capability_maximum_daily_notification_count_int";
/**
- * The maximum number of times in a month that we display the notification for a network boost
- * via premium capabilities when
+ * The maximum number of times in a month that we display the notification for a performance
+ * boost via premium capabilities when
* {@link TelephonyManager#purchasePremiumCapability(int, Executor, Consumer)}
* returns a failure due to user action or timeout.
*
@@ -9242,7 +9242,7 @@ public class CarrierConfigManager {
"premium_capability_network_setup_time_millis_long";
/**
- * The URL to redirect to when the user clicks on the notification for a network boost via
+ * The URL to redirect to when the user clicks on the notification for a performance boost via
* premium capabilities after applications call
* {@link TelephonyManager#purchasePremiumCapability(int, Executor, Consumer)}.
* If the URL is empty or invalid, the purchase request will return
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java
index 2a667e71632a..059f4c355437 100644
--- a/telephony/java/android/telephony/TelephonyManager.java
+++ b/telephony/java/android/telephony/TelephonyManager.java
@@ -17280,7 +17280,7 @@ public class TelephonyManager {
* During the setup time, subsequent attempts will return
* {@link #PURCHASE_PREMIUM_CAPABILITY_RESULT_PENDING_NETWORK_SETUP}.
* After setup is complete, subsequent attempts will return
- * {@link #PURCHASE_PREMIUM_CAPABILITY_RESULT_ALREADY_PURCHASED} until the booster expires.
+ * {@link #PURCHASE_PREMIUM_CAPABILITY_RESULT_ALREADY_PURCHASED} until the boost expires.
* The expiry time is determined by the type or duration of boost purchased from the carrier,
* provided at {@link CarrierConfigManager#KEY_PREMIUM_CAPABILITY_PURCHASE_URL_STRING}.
*/
@@ -17291,13 +17291,13 @@ public class TelephonyManager {
* If purchasing premium capabilities is throttled, it will be for the amount of time
* specified by {@link CarrierConfigManager
* #KEY_PREMIUM_CAPABILITY_PURCHASE_CONDITION_BACKOFF_HYSTERESIS_TIME_MILLIS_LONG}.
- * If displaying the network boost notification is throttled, it will be for the amount of time
- * specified by {@link CarrierConfigManager
+ * If displaying the performance boost notification is throttled, it will be for the amount of
+ * time specified by {@link CarrierConfigManager
* #KEY_PREMIUM_CAPABILITY_NOTIFICATION_BACKOFF_HYSTERESIS_TIME_MILLIS_LONG}.
- * If a foreground application requests premium capabilities, the network boost notification
+ * If a foreground application requests premium capabilities, the performance boost notification
* will be displayed to the user regardless of the throttled status.
- * We will show the network boost notification to the user up to the daily and monthly maximum
- * number of times specified by
+ * We will show the performance boost notification to the user up to the daily and monthly
+ * maximum number of times specified by
* {@link CarrierConfigManager#KEY_PREMIUM_CAPABILITY_MAXIMUM_DAILY_NOTIFICATION_COUNT_INT} and
* {@link CarrierConfigManager#KEY_PREMIUM_CAPABILITY_MAXIMUM_MONTHLY_NOTIFICATION_COUNT_INT}.
* Subsequent attempts will return the same error until the request is no longer throttled
@@ -17307,7 +17307,7 @@ public class TelephonyManager {
/**
* Purchase premium capability failed because it is already purchased and available.
- * Subsequent attempts will return the same error until the booster expires.
+ * Subsequent attempts will return the same error until the performance boost expires.
*/
public static final int PURCHASE_PREMIUM_CAPABILITY_RESULT_ALREADY_PURCHASED = 3;
@@ -17356,10 +17356,10 @@ public class TelephonyManager {
/**
* Purchase premium capability failed because we did not receive a response from the user
- * for the booster notification within the time specified by
+ * for the performance boost notification within the time specified by
* {@link CarrierConfigManager#KEY_PREMIUM_CAPABILITY_NOTIFICATION_DISPLAY_TIMEOUT_MILLIS_LONG}.
- * The booster notification will be automatically dismissed and subsequent attempts will be
- * throttled for the amount of time specified by
+ * The performance boost notification will be automatically dismissed and subsequent attempts
+ * will be throttled for the amount of time specified by
* {@link CarrierConfigManager
* #KEY_PREMIUM_CAPABILITY_NOTIFICATION_BACKOFF_HYSTERESIS_TIME_MILLIS_LONG}
* and return {@link #PURCHASE_PREMIUM_CAPABILITY_RESULT_THROTTLED}.