Home
last modified time | relevance | path

Searched refs:context (Results 1 – 25 of 3687) sorted by relevance

12345678910>>...148

/frameworks/base/packages/SystemUI/src/com/android/systemui/dagger/
DFrameworkServicesModule.java96 static AccessibilityManager provideAccessibilityManager(Context context) { in provideAccessibilityManager() argument
97 return context.getSystemService(AccessibilityManager.class); in provideAccessibilityManager()
102 static ActivityManager provideActivityManager(Context context) { in provideActivityManager() argument
103 return context.getSystemService(ActivityManager.class); in provideActivityManager()
108 static AlarmManager provideAlarmManager(Context context) { in provideAlarmManager() argument
109 return context.getSystemService(AlarmManager.class); in provideAlarmManager()
114 static AudioManager provideAudioManager(Context context) { in provideAudioManager() argument
115 return context.getSystemService(AudioManager.class); in provideAudioManager()
120 static ColorDisplayManager provideColorDisplayManager(Context context) { in provideColorDisplayManager() argument
121 return context.getSystemService(ColorDisplayManager.class); in provideColorDisplayManager()
[all …]
/frameworks/av/media/libeffects/hapticgenerator/
DEffectHapticGenerator.cpp84 int HapticGenerator_Init(struct HapticGeneratorContext *context) { in HapticGenerator_Init() argument
85 context->itfe = &gHapticGeneratorInterface; in HapticGenerator_Init()
87 context->config.inputCfg.accessMode = EFFECT_BUFFER_ACCESS_READ; in HapticGenerator_Init()
88 context->config.inputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in HapticGenerator_Init()
89 context->config.inputCfg.format = AUDIO_FORMAT_PCM_FLOAT; in HapticGenerator_Init()
90 context->config.inputCfg.samplingRate = 0; in HapticGenerator_Init()
91 context->config.inputCfg.bufferProvider.getBuffer = nullptr; in HapticGenerator_Init()
92 context->config.inputCfg.bufferProvider.releaseBuffer = nullptr; in HapticGenerator_Init()
93 context->config.inputCfg.bufferProvider.cookie = nullptr; in HapticGenerator_Init()
94 context->config.inputCfg.mask = EFFECT_CONFIG_ALL; in HapticGenerator_Init()
[all …]
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DCarrierActionUtils.java60 public static void applyCarrierAction(int actionIdx, Intent intent, Context context) { in applyCarrierAction() argument
63 onEnableAllMeteredApns(intent, context); in applyCarrierAction()
66 onDisableAllMeteredApns(intent, context); in applyCarrierAction()
69 onDisableRadio(intent, context); in applyCarrierAction()
72 onEnableRadio(intent, context); in applyCarrierAction()
75 onShowCaptivePortalNotification(intent, context); in applyCarrierAction()
78 onShowNoDataServiceNotification(context); in applyCarrierAction()
81 onCancelAllNotifications(context); in applyCarrierAction()
84 onEnableDefaultURLHandler(context); in applyCarrierAction()
87 onDisableDefaultURLHandler(context); in applyCarrierAction()
[all …]
/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/
DPermissionUtilsTest.kt45 private val context = mock(Context::class.java) constant in com.android.net.module.util.PermissionUtilsTest
49 doReturn(PERMISSION_GRANTED).`when`(context).checkCallingOrSelfPermission(TEST_PERMISSION1) in testEnforceAnyPermissionOf()
50 doReturn(PERMISSION_DENIED).`when`(context).checkCallingOrSelfPermission(TEST_PERMISSION2) in testEnforceAnyPermissionOf()
51 assertTrue(checkAnyPermissionOf(context, TEST_PERMISSION1, TEST_PERMISSION2)) in testEnforceAnyPermissionOf()
52 enforceAnyPermissionOf(context, TEST_PERMISSION1, TEST_PERMISSION2) in testEnforceAnyPermissionOf()
54 doReturn(PERMISSION_DENIED).`when`(context).checkCallingOrSelfPermission(TEST_PERMISSION1) in testEnforceAnyPermissionOf()
55 doReturn(PERMISSION_GRANTED).`when`(context).checkCallingOrSelfPermission(TEST_PERMISSION2) in testEnforceAnyPermissionOf()
56 assertTrue(checkAnyPermissionOf(context, TEST_PERMISSION1, TEST_PERMISSION2)) in testEnforceAnyPermissionOf()
57 enforceAnyPermissionOf(context, TEST_PERMISSION1, TEST_PERMISSION2) in testEnforceAnyPermissionOf()
59 doReturn(PERMISSION_DENIED).`when`(context).checkCallingOrSelfPermission(any()) in testEnforceAnyPermissionOf()
[all …]
/frameworks/base/core/java/android/app/admin/
DDeviceAdminReceiver.java561 public @NonNull DevicePolicyManager getManager(@NonNull Context context) { in getManager() argument
565 mManager = (DevicePolicyManager)context.getSystemService( in getManager()
575 public @NonNull ComponentName getWho(@NonNull Context context) { in getWho() argument
579 mWho = new ComponentName(context, getClass()); in getWho()
596 public void onEnabled(@NonNull Context context, @NonNull Intent intent) { in onEnabled() argument
598 Log.v(TAG, getClass().getName() + ".onEnabled() on user " + context.getUserId()); in onEnabled()
613 public @Nullable CharSequence onDisableRequested(@NonNull Context context, in onDisableRequested() argument
617 + context.getUserId()); in onDisableRequested()
630 public void onDisabled(@NonNull Context context, @NonNull Intent intent) { in onDisabled() argument
632 Log.v(TAG, getClass().getName() + ".onDisabled() on user " + context.getUserId()); in onDisabled()
[all …]
/frameworks/base/telephony/common/com/android/internal/telephony/
DTelephonyPermissions.java92 Context context, int subId, String callingPackage, @Nullable String callingFeatureId, in checkCallingOrSelfReadPhoneState() argument
94 return checkReadPhoneState(context, subId, Binder.getCallingPid(), Binder.getCallingUid(), in checkCallingOrSelfReadPhoneState()
100 Context context, int subId, String callingPackage, @Nullable String callingFeatureId, in checkCallingOrSelfReadPhoneStateNoThrow() argument
103 return checkCallingOrSelfReadPhoneState(context, subId, callingPackage, in checkCallingOrSelfReadPhoneStateNoThrow()
133 Context context, int subId, int pid, int uid, String callingPackage, in checkReadPhoneState() argument
136 context.enforcePermission( in checkReadPhoneState()
143 context.enforcePermission( in checkReadPhoneState()
149 enforceCarrierPrivilege(context, subId, uid, message); in checkReadPhoneState()
158 AppOpsManager appOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in checkReadPhoneState()
167 public static boolean checkCarrierPrivilegeForSubId(Context context, int subId) { in checkCarrierPrivilegeForSubId() argument
[all …]
/frameworks/base/core/jni/
Druntime_native_boot-flags-test.sh66 local context=$1
70 say "[$context] Check that the device configuration flag is set..."
81 local context=$1
84 say "[$context] Check that the device configuration flag is not set..."
108 local context=$1
112 say "[$context] Check that the persistent system property is set..."
123 local context=$1
126 say "[$context] Check that the persistent system property is not set..."
147 local context=$1
151 "[$context] Check that all zygote processes are passed \`$runtime_option\` as runtime option..."
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
DPowerUtil.java57 public static String getBatteryRemainingStringFormatted(Context context, long drainTimeMs, in getBatteryRemainingStringFormatted() argument
62 return getShutdownImminentString(context, percentageString); in getBatteryRemainingStringFormatted()
65 CharSequence timeString = StringUtil.formatElapsedTime(context, in getBatteryRemainingStringFormatted()
68 return getUnderFifteenString(context, timeString, percentageString); in getBatteryRemainingStringFormatted()
71 return getMoreThanTwoDaysString(context, percentageString); in getBatteryRemainingStringFormatted()
74 return getMoreThanOneDayString(context, drainTimeMs, in getBatteryRemainingStringFormatted()
78 return getRegularTimeRemainingString(context, drainTimeMs, in getBatteryRemainingStringFormatted()
97 Context context, long drainTimeMs) { in getBatteryRemainingShortStringFormatted() argument
103 return getRegularTimeRemainingShortString(context, drainTimeMs); in getBatteryRemainingShortStringFormatted()
105 return getMoreThanOneDayShortString(context, drainTimeMs, in getBatteryRemainingShortStringFormatted()
[all …]
/frameworks/base/core/java/android/content/
DPermissionChecker.java151 public static int checkPermissionForDataDelivery(@NonNull Context context, in checkPermissionForDataDelivery() argument
154 return checkPermissionForDataDelivery(context, permission, pid, new AttributionSource(uid, in checkPermissionForDataDelivery()
194 public static int checkPermissionForDataDelivery(@NonNull Context context, in checkPermissionForDataDelivery() argument
197 return checkPermissionForDataDelivery(context, permission, pid, uid, in checkPermissionForDataDelivery()
232 public static int checkPermissionForDataDeliveryFromDataSource(@NonNull Context context, in checkPermissionForDataDeliveryFromDataSource() argument
235 return checkPermissionForDataDeliveryCommon(context, permission, attributionSource, in checkPermissionForDataDeliveryFromDataSource()
269 public static int checkPermissionForDataDelivery(@NonNull Context context, in checkPermissionForDataDelivery() argument
272 return checkPermissionForDataDelivery(context, permission, pid, attributionSource, in checkPermissionForDataDelivery()
307 public static int checkPermissionForDataDelivery(@NonNull Context context, in checkPermissionForDataDelivery() argument
310 return checkPermissionForDataDeliveryCommon(context, permission, attributionSource, in checkPermissionForDataDelivery()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/
DNotificationChannelController.java65 private static void createAll(Context context) { in createAll() argument
68 context.getText(R.string.notification_channel_network_alert), in createAll()
77 context.getText(R.string.notification_channel_mobile_data_status), in createAll()
84 context.getText(R.string.notification_channel_sim), in createAll()
91 context.getText(R.string.notification_channel_call_forward), in createAll()
93 migrateCallFowardNotificationChannel(context, callforwardChannel); in createAll()
95 context.getSystemService(NotificationManager.class) in createAll()
98 context.getText(R.string.notification_channel_sms), in createAll()
101 context.getText(R.string.notification_channel_wfc), in createAll()
104 context.getText(R.string.notification_channel_sim_high_prio), in createAll()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DRestrictedLockUtilsInternal.java61 public static Drawable getRestrictedPadlock(Context context) { in getRestrictedPadlock() argument
62 Drawable restrictedPadlock = context.getDrawable(android.R.drawable.ic_info); in getRestrictedPadlock()
63 final int iconSize = context.getResources().getDimensionPixelSize( in getRestrictedPadlock()
66 TypedArray ta = context.obtainStyledAttributes(new int[]{android.R.attr.colorAccent}); in getRestrictedPadlock()
86 public static EnforcedAdmin checkIfRestrictionEnforced(Context context, in checkIfRestrictionEnforced() argument
88 final DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService( in checkIfRestrictionEnforced()
94 final UserManager um = UserManager.get(context); in checkIfRestrictionEnforced()
110 return getProfileOwner(context, userRestriction, adminUserId); in checkIfRestrictionEnforced()
116 ? getProfileOwner(context, userRestriction, adminUserId) in checkIfRestrictionEnforced()
123 ? getDeviceOwner(context, userRestriction) in checkIfRestrictionEnforced()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DPrefs.java120 public static boolean getBoolean(Context context, @Key String key, boolean defaultValue) { in getBoolean() argument
121 return get(context).getBoolean(key, defaultValue); in getBoolean()
124 public static void putBoolean(Context context, @Key String key, boolean value) { in putBoolean() argument
125 get(context).edit().putBoolean(key, value).apply(); in putBoolean()
128 public static int getInt(Context context, @Key String key, int defaultValue) { in getInt() argument
129 return get(context).getInt(key, defaultValue); in getInt()
132 public static void putInt(Context context, @Key String key, int value) { in putInt() argument
133 get(context).edit().putInt(key, value).apply(); in putInt()
136 public static long getLong(Context context, @Key String key, long defaultValue) { in getLong() argument
137 return get(context).getLong(key, defaultValue); in getLong()
[all …]
/frameworks/base/core/java/com/android/internal/view/
DRotationPolicy.java58 public static boolean isRotationSupported(Context context) { in isRotationSupported() argument
59 PackageManager pm = context.getPackageManager(); in isRotationSupported()
63 && context.getResources().getBoolean( in isRotationSupported()
75 public static int getRotationLockOrientation(Context context) { in getRotationLockOrientation() argument
76 if (!areAllRotationsAllowed(context)) { in getRotationLockOrientation()
80 final int displayId = context.getDisplayId(); in getRotationLockOrientation()
94 public static boolean isRotationLockToggleVisible(Context context) { in isRotationLockToggleVisible() argument
95 return isRotationSupported(context) && in isRotationLockToggleVisible()
96 Settings.System.getIntForUser(context.getContentResolver(), in isRotationLockToggleVisible()
104 public static boolean isRotationLocked(Context context) { in isRotationLocked() argument
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DBatterySaverUtils.java90 public Parameters(Context context) { in Parameters() argument
91 mContext = context; in Parameters()
115 public static synchronized boolean setPowerSaveMode(Context context, in setPowerSaveMode() argument
120 final ContentResolver cr = context.getContentResolver(); in setPowerSaveMode()
125 && maybeShowBatterySaverConfirmation(context, confirmationExtras)) { in setPowerSaveMode()
129 setBatterySaverConfirmationAcknowledged(context); in setPowerSaveMode()
132 if (context.getSystemService(PowerManager.class).setPowerSaveModeEnabled(enable)) { in setPowerSaveMode()
138 final Parameters parameters = new Parameters(context); in setPowerSaveMode()
145 showAutoBatterySaverSuggestion(context, confirmationExtras); in setPowerSaveMode()
167 public static boolean maybeShowBatterySaverConfirmation(Context context, Bundle extras) { in maybeShowBatterySaverConfirmation() argument
[all …]
/frameworks/base/core/java/com/android/internal/accessibility/dialog/
DAccessibilityTargetHelper.java71 public static List<AccessibilityTarget> getTargets(Context context, in getTargets() argument
74 final List<AccessibilityTarget> installedTargets = getInstalledTargets(context, in getTargets()
78 final AccessibilityManager am = (AccessibilityManager) context.getSystemService( in getTargets()
113 static List<AccessibilityTarget> getInstalledTargets(Context context, in getInstalledTargets() argument
116 targets.addAll(getAccessibilityFilteredTargets(context, shortcutType)); in getInstalledTargets()
117 targets.addAll(getAllowListingFeatureTargets(context, shortcutType)); in getInstalledTargets()
122 private static List<AccessibilityTarget> getAccessibilityFilteredTargets(Context context, in getAccessibilityFilteredTargets() argument
125 getAccessibilityServiceTargets(context, shortcutType); in getAccessibilityFilteredTargets()
127 getAccessibilityActivityTargets(context, shortcutType); in getAccessibilityFilteredTargets()
155 private static List<AccessibilityTarget> getAccessibilityServiceTargets(Context context, in getAccessibilityServiceTargets() argument
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DBugReportHandlerUtil.java60 static boolean isBugReportHandlerEnabled(Context context) { in isBugReportHandlerEnabled() argument
61 return context.getResources().getBoolean( in isBugReportHandlerEnabled()
77 static boolean launchBugReportHandlerApp(Context context) { in launchBugReportHandlerApp() argument
78 if (!isBugReportHandlerEnabled(context)) { in launchBugReportHandlerApp()
82 String handlerApp = getCustomBugReportHandlerApp(context); in launchBugReportHandlerApp()
87 int handlerUser = getCustomBugReportHandlerUser(context); in launchBugReportHandlerApp()
89 handlerApp = getDefaultBugReportHandlerApp(context); in launchBugReportHandlerApp()
91 } else if (getBugReportHandlerAppReceivers(context, handlerApp, handlerUser).isEmpty()) { in launchBugReportHandlerApp()
100 handlerApp = getDefaultBugReportHandlerApp(context); in launchBugReportHandlerApp()
102 resetCustomBugreportHandlerAppAndUser(context); in launchBugReportHandlerApp()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DGlobalSettingsHelper.java34 public static int getInt(Context context, String settingName, int subId, in getInt() argument
36 settingName = getSettingName(context, settingName, subId); in getInt()
37 return Settings.Global.getInt(context.getContentResolver(), settingName, defaultValue); in getInt()
43 public static boolean getBoolean(Context context, String settingName, int subId, in getBoolean() argument
45 settingName = getSettingName(context, settingName, subId); in getBoolean()
46 return Settings.Global.getInt(context.getContentResolver(), settingName, in getBoolean()
53 public static boolean getBoolean(Context context, String settingName, int subId) in getBoolean() argument
55 settingName = getSettingName(context, settingName, subId); in getBoolean()
56 return Settings.Global.getInt(context.getContentResolver(), settingName) == 1; in getBoolean()
63 public static boolean setInt(Context context, String settingName, int subId, int value) { in setInt() argument
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/
DDisplayUtils.java31 public static int convertDpToPx(float dp, Context context) { in convertDpToPx() argument
32 Display d = context.getDisplay(); in convertDpToPx()
46 public static int getWidth(Context context) { in getWidth() argument
47 Display d = context.getDisplay(); in getWidth()
66 public static int getHeight(Context context) { in getHeight() argument
67 Display d = context.getDisplay(); in getHeight()
84 public static int getCornerRadiusBottom(Context context) { in getCornerRadiusBottom() argument
87 int resourceId = context.getResources().getIdentifier("config_rounded_mask_size_bottom", in getCornerRadiusBottom()
90 radius = context.getResources().getDimensionPixelSize(resourceId); in getCornerRadiusBottom()
94 radius = getCornerRadiusDefault(context); in getCornerRadiusBottom()
[all …]
/frameworks/base/core/java/com/android/internal/policy/
DDecorContext.java68 final Context context = phoneWindow.getContext(); in setPhoneWindow() local
69 mContext = new WeakReference<>(context); in setPhoneWindow()
70 mResources = context.getResources(); in setPhoneWindow()
78 final Context context = mContext.get(); in getSystemService() local
80 if (context != null && mContentCaptureManager == null) { in getSystemService()
81 mContentCaptureManager = (ContentCaptureManager) context.getSystemService(name); in getSystemService()
94 return (context != null) ? context.getSystemService(name) : super.getSystemService(name); in getSystemService()
99 Context context = mContext.get(); in getResources() local
102 if (context != null) { in getResources()
103 mResources = context.getResources(); in getResources()
[all …]
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/
DXmlConfigTests.java61 SSLContext context = TestUtils.getSSLContext(source); in testEmptyConfigFile() local
62 TestUtils.assertConnectionSucceeds(context, "android.com", 443); in testEmptyConfigFile()
63 TestUtils.assertConnectionSucceeds(context, "developer.android.com", 443); in testEmptyConfigFile()
64 TestUtils.assertUrlConnectionSucceeds(context, "google.com", 443); in testEmptyConfigFile()
80 SSLContext context = TestUtils.getSSLContext(source); in testEmptyAnchors() local
81 TestUtils.assertConnectionFails(context, "android.com", 443); in testEmptyAnchors()
82 TestUtils.assertConnectionFails(context, "developer.android.com", 443); in testEmptyAnchors()
83 TestUtils.assertUrlConnectionFails(context, "google.com", 443); in testEmptyAnchors()
107 SSLContext context = TestUtils.getSSLContext(source); in testBasicDomainConfig() local
108 TestUtils.assertConnectionSucceeds(context, "android.com", 443); in testBasicDomainConfig()
[all …]
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
DCat.java165 public Cat(Context context, long seed) { in Cat() argument
166 D = new CatParts(context); in Cat()
169 setName(context.getString(R.string.default_cat_name, in Cat()
223 String[] messages = context.getResources().getStringArray( in Cat()
229 public static Cat fromShortcutId(Context context, String shortcutId) {
231 return new Cat(context, Long.parseLong(shortcutId.replace(SHORTCUT_ID_PREFIX, "")));
236 public static Cat create(Context context) {
237 return new Cat(context, Math.abs(ThreadLocalRandom.current().nextInt()));
240 public Notification.Builder buildNotification(Context context) {
242 extras.putString("android.substName", context.getString(R.string.notification_name));
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DInstallCarrierAppUtils.java52 static void showNotification(Context context, String pkgName) { in showNotification() argument
56 String appName = getAppNameFromPackageName(context, pkgName); in showNotification()
67 context.getContentResolver(), in showNotification()
70 PendingIntent goToStore = PendingIntent.getActivity(context, 0, in showNotification()
77 Notification notification = new Notification.Builder(context, in showNotification()
87 getNotificationManager(context).notify( in showNotification()
93 static void hideAllNotifications(Context context) { in hideAllNotifications() argument
94 NotificationManager notificationManager = getNotificationManager(context); in hideAllNotifications()
108 static void hideNotification(Context context, String pkgName) { in hideNotification() argument
109 getNotificationManager(context).cancel(pkgName, ACTIVATE_CELL_SERVICE_NOTIFICATION_ID); in hideNotification()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/enterprise/
DActionDisabledLearnMoreButtonLauncher.java52 public final void setupLearnMoreButtonToShowAdminPolicies(Context context, in setupLearnMoreButtonToShowAdminPolicies() argument
54 requireNonNull(context, "context cannot be null"); in setupLearnMoreButtonToShowAdminPolicies()
60 if (isSameProfileGroup(context, enforcementAdminUserId) in setupLearnMoreButtonToShowAdminPolicies()
61 || isEnforcedByDeviceOwnerOnSystemUserMode(context, enforcementAdminUserId)) { in setupLearnMoreButtonToShowAdminPolicies()
62 setLearnMoreButton(() -> showAdminPolicies(context, enforcedAdmin)); in setupLearnMoreButtonToShowAdminPolicies()
70 Context context, String url, UserHandle userHandle) { in setupLearnMoreButtonToLaunchHelpPage() argument
71 requireNonNull(context, "context cannot be null"); in setupLearnMoreButtonToLaunchHelpPage()
74 setLearnMoreButton(() -> showHelpPage(context, url, userHandle)); in setupLearnMoreButtonToLaunchHelpPage()
87 protected abstract void launchShowAdminPolicies(Context context, UserHandle user, in launchShowAdminPolicies() argument
93 protected abstract void launchShowAdminSettings(Context context); in launchShowAdminSettings() argument
[all …]
/frameworks/base/telephony/java/android/telephony/
DTelephonyFrameworkInitializer.java68 context -> new TelephonyManager(context) in registerServiceWrappers()
73 context -> new SubscriptionManager(context) in registerServiceWrappers()
78 context -> new CarrierConfigManager(context) in registerServiceWrappers()
83 context -> new EuiccManager(context) in registerServiceWrappers()
88 context -> new EuiccCardManager(context) in registerServiceWrappers()
93 context -> new ImsManager(context) in registerServiceWrappers()
98 context -> SmsManager.getSmsManagerForContextAndSubscriptionId(context, in registerServiceWrappers()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DUtils.java84 boolean isProviderModelEnabled(Context context) { in isProviderModelEnabled() argument
85 return FeatureFlagUtils.isEnabled(context, FeatureFlagUtils.SETTINGS_PROVIDER_MODEL); in isProviderModelEnabled()
91 private static String getActiveScorerPackage(@NonNull Context context) { in getActiveScorerPackage() argument
93 sNetworkScoreManager = context.getSystemService(NetworkScoreManager.class); in getActiveScorerPackage()
298 static String getAppLabel(Context context, String packageName) { in getAppLabel() argument
300 String openWifiPackageName = Settings.Global.getString(context.getContentResolver(), in getAppLabel()
303 getActiveScorerPackage(context))) { in getAppLabel()
307 ApplicationInfo appInfo = context.getPackageManager().getApplicationInfo( in getAppLabel()
310 return appInfo.loadLabel(context.getPackageManager()).toString(); in getAppLabel()
316 static String getConnectedDescription(Context context, in getConnectedDescription() argument
[all …]

12345678910>>...148