Home
last modified time | relevance | path

Searched refs:mSmsManager (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Settings/src/com/android/settings/applications/
DAppStateSmsPremBridge.java31 private final SmsManager mSmsManager; field in AppStateSmsPremBridge
36 mSmsManager = SmsManager.getDefault(); in AppStateSmsPremBridge()
61 return mSmsManager.getPremiumSmsConsent(pkg); in getSmsState()
65 mSmsManager.setPremiumSmsConsent(pkg, state); in setSmsState()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/specialaccess/
DAppStatePremiumSmsBridgeTest.java44 private SmsManager mSmsManager; field in AppStatePremiumSmsBridgeTest
50 mBridge = new AppStatePremiumSmsBridge(mSmsManager); in setUp()
58 when(mSmsManager.getPremiumSmsConsent(package1)).thenReturn(value1); in loadExtraInfo()
63 when(mSmsManager.getPremiumSmsConsent(package2)).thenReturn(value2); in loadExtraInfo()
DPremiumSmsAccessPreferenceControllerTest.java70 private SmsManager mSmsManager; field in PremiumSmsAccessPreferenceControllerTest
82 ShadowSmsManager.setDefault(mSmsManager); in setUp()
154 verify(mSmsManager).setPremiumSmsConsent(packageName, updatedValue); in onPreferenceChange_setsPremiumSmsPermission()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DAppStateSmsPremBridge.java34 private final ISms mSmsManager; field in AppStateSmsPremBridge
39 mSmsManager = ISms.Stub.asInterface(ServiceManager.getService("isms")); in AppStateSmsPremBridge()
65 return mSmsManager.getPremiumSmsPermission(pkg); in getSmsState()
73 mSmsManager.setPremiumSmsPermission(pkg, state); in setSmsState()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/specialaccess/
DPremiumSmsAccessPreferenceController.java64 private final SmsManager mSmsManager; field in PremiumSmsAccessPreferenceController
74 mSmsManager.setPremiumSmsConsent(entry.info.packageName, smsState);
98 mSmsManager = SmsManager.getDefault(); in PremiumSmsAccessPreferenceController()
109 mAppEntryListManager.init(new AppStatePremiumSmsBridge(mSmsManager), in onCreateInternal()
DAppStatePremiumSmsBridge.java31 private final SmsManager mSmsManager; field in AppStatePremiumSmsBridge
34 mSmsManager = smsManager; in AppStatePremiumSmsBridge()
45 return mSmsManager.getPremiumSmsConsent(packageName); in getSmsState()