Skip to content
Snippets Groups Projects
Commit 79600492 authored by Android Build Role Account android-build-prod's avatar Android Build Role Account android-build-prod
Browse files

Snap for 5632244 from f74d4642 to q-keystone-qcom-release

Change-Id: Idcafe1bb70d61c97cfab8d75a80e64d052c8997f
parents c0125dab f74d4642
No related branches found
No related tags found
No related merge requests found
...@@ -16,5 +16,5 @@ ...@@ -16,5 +16,5 @@
<resources xmlns:android="http://schemas.android.com/apk/res/android" <resources xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="app_label" msgid="3836152623003881586">"ଅବରୋଧିତ ସଂଖ୍ୟାର ଷ୍ଟୋରେଜ୍"</string> <string name="app_label" msgid="3836152623003881586">"ବ୍ଲକ୍ ହୋଇଥିବା ସଂଖ୍ୟାର ଷ୍ଟୋରେଜ୍"</string>
</resources> </resources>
...@@ -632,7 +632,7 @@ public class BlockedNumberProvider extends ContentProvider { ...@@ -632,7 +632,7 @@ public class BlockedNumberProvider extends ContentProvider {
final TelephonyManager telephonyManager = final TelephonyManager telephonyManager =
getContext().getSystemService(TelephonyManager.class); getContext().getSystemService(TelephonyManager.class);
return telephonyManager.checkCarrierPrivilegesForPackage(callingPackage) == return telephonyManager.checkCarrierPrivilegesForPackageAnyPhone(callingPackage) ==
TelephonyManager.CARRIER_PRIVILEGE_STATUS_HAS_ACCESS; TelephonyManager.CARRIER_PRIVILEGE_STATUS_HAS_ACCESS;
} }
return false; return false;
......
...@@ -479,7 +479,7 @@ public class BlockedNumberProviderTest extends AndroidTestCase { ...@@ -479,7 +479,7 @@ public class BlockedNumberProviderTest extends AndroidTestCase {
public void testCarrierAppCanAccessApis() { public void testCarrierAppCanAccessApis() {
doReturn(PackageManager.PERMISSION_DENIED) doReturn(PackageManager.PERMISSION_DENIED)
.when(mMockContext).checkCallingPermission(anyString()); .when(mMockContext).checkCallingPermission(anyString());
when(mMockContext.mTelephonyManager.checkCarrierPrivilegesForPackage(anyString())) when(mMockContext.mTelephonyManager.checkCarrierPrivilegesForPackageAnyPhone(anyString()))
.thenReturn(TelephonyManager.CARRIER_PRIVILEGE_STATUS_HAS_ACCESS); .thenReturn(TelephonyManager.CARRIER_PRIVILEGE_STATUS_HAS_ACCESS);
mResolver.insert( mResolver.insert(
...@@ -489,7 +489,7 @@ public class BlockedNumberProviderTest extends AndroidTestCase { ...@@ -489,7 +489,7 @@ public class BlockedNumberProviderTest extends AndroidTestCase {
// Dialer check is executed twice: once for insert, and once for isBlocked. // Dialer check is executed twice: once for insert, and once for isBlocked.
verify(mMockContext.mTelephonyManager, times(2)) verify(mMockContext.mTelephonyManager, times(2))
.checkCarrierPrivilegesForPackage(anyString()); .checkCarrierPrivilegesForPackageAnyPhone(anyString());
} }
public void testSelfCanAccessApis() { public void testSelfCanAccessApis() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment