Home
last modified time | relevance | path

Searched refs:smsState (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Settings/src/com/android/settings/applications/specialaccess/premiumsms/
DPremiumSmsAccess.java105 int smsState = Integer.parseInt((String) newValue); in onPreferenceChange() local
106 logSpecialPermissionChange(smsState, pref.mAppEntry.info.packageName); in onPreferenceChange()
107 mSmsBackend.setSmsState(pref.mAppEntry.info.packageName, smsState); in onPreferenceChange()
112 void logSpecialPermissionChange(int smsState, String packageName) { in logSpecialPermissionChange() argument
114 switch (smsState) { in logSpecialPermissionChange()
135 smsState); in logSpecialPermissionChange() local
233 ? ((SmsState) mAppEntry.extraInfo).smsState in getCurrentValue()
/packages/apps/Settings/src/com/android/settings/applications/
DAppStateSmsPremBridge.java56 state.smsState = getSmsState(pkg); in getState()
69 public int smsState; field in AppStateSmsPremBridge.SmsState
72 return smsState == SmsManager.PREMIUM_SMS_CONSENT_ALWAYS_ALLOW; in isGranted()
83 return info.extraInfo instanceof SmsState && ((SmsState) info.extraInfo).smsState
/packages/apps/Car/Settings/src/com/android/car/settings/applications/specialaccess/
DPremiumSmsAccessPreferenceController.java72 int smsState = Integer.parseInt((String) newValue);
73 if (smsState != (Integer) entry.extraInfo) {
74 mSmsManager.setPremiumSmsConsent(entry.info.packageName, smsState);
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/specialaccess/
DPremiumSmsAccessPreferenceControllerTest.java185 private AppEntry createAppEntry(String packageName, int uid, int smsState) { in createAppEntry() argument
193 appEntry.extraInfo = smsState; in createAppEntry()