/aosp14/system/core/property_service/libpropertyinfoserializer/ |
H A D | property_info_serializer_test.cpp | 148 const char* context; in TEST() local 161 EXPECT_STREQ("1st", context); in TEST() 164 EXPECT_STREQ("1st", context); in TEST() 167 EXPECT_STREQ("1st", context); in TEST() 171 EXPECT_STREQ("5th", context); in TEST() 174 EXPECT_STREQ("2nd", context); in TEST() 177 EXPECT_STREQ("2nd", context); in TEST() 180 EXPECT_STREQ("2nd", context); in TEST() 781 const char* context; in TEST() local 826 const char* context; in TEST() local [all …]
|
/aosp14/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/theme/ |
H A D | AndroidColorScheme.kt | 40 class AndroidColorScheme(context: Context) { 72 val onError = getColor(context, R.attr.materialColorOnError) 73 val surface = getColor(context, R.attr.materialColorSurface) 77 val outline = getColor(context, R.attr.materialColorOutline) 82 val primary = getColor(context, R.attr.materialColorPrimary) 87 val deprecated = DeprecatedValues(context) 89 class DeprecatedValues(context: Context) { 90 val colorPrimary = getColor(context, R.attr.colorPrimary) 92 val colorAccent = getColor(context, R.attr.colorAccent) 103 val colorError = getColor(context, R.attr.colorError) [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/dagger/ |
H A D | FrameworkServicesModule.java | 208 return context.getContentResolver(); in provideContentResolver() 225 static int provideDisplayId(Context context) { in provideDisplayId() argument 226 return context.getDisplayId(); in provideDisplayId() 387 return LatencyTracker.getInstance(context); in provideLatencyTracker() 400 return LayoutInflater.from(context); in providerLayoutInflater() 407 return new AsyncLayoutInflater(context); in provideAsyncLayoutInflater() 454 return context.getPackageManager(); in providePackageManager() 481 return Prefs.get(context); in provideSharePreferences() 494 return context.getResources(); in provideResources() 500 return context.getAssets(); in provideAssetManager() [all …]
|
/aosp14/system/core/libstats/push_compat/ |
H A D | stats_event_list.c | 56 context->tag = tag; in reset_log_context() 63 context->storage[context->pos + 0] = EVENT_TYPE_LIST; in reset_log_context() 64 context->list[0] = context->pos + 1; in reset_log_context() 74 if (!context || (kAndroidLoggerWrite != context->read_write_flag)) { in stats_write_list() 83 context->storage[1] = context->count[0]; in stats_write_list() 84 len = context->len = context->pos; in stats_write_list() 212 if (!context || (kAndroidLoggerWrite != context->read_write_flag)) { in android_log_write_char_array() 231 context->count[context->list_nest_depth]++; in android_log_write_char_array() 232 context->storage[context->pos + 0] = EVENT_TYPE_STRING; in android_log_write_char_array() 233 copy4LE(&context->storage[context->pos + 1], len); in android_log_write_char_array() [all …]
|
/aosp14/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/ |
H A D | CarrierActionUtils.java | 63 onEnableAllMeteredApns(intent, context); in applyCarrierAction() 69 onDisableRadio(intent, context); in applyCarrierAction() 72 onEnableRadio(intent, context); in applyCarrierAction() 81 onCancelAllNotifications(context); in applyCarrierAction() 84 onEnableDefaultURLHandler(context); in applyCarrierAction() 87 onDisableDefaultURLHandler(context); in applyCarrierAction() 123 new ComponentName(context, CaptivePortalLoginActivity.getAlias(context)), in onEnableDefaultURLHandler() 131 new ComponentName(context, CaptivePortalLoginActivity.getAlias(context)), in onDisableDefaultURLHandler() 223 createNotificationChannels(context); in getNotification() 228 .setColor(context.getColor( in getNotification() [all …]
|
/aosp14/frameworks/base/telephony/common/com/android/internal/telephony/ |
H A D | TelephonyPermissions.java | 136 Context context, String message) { in checkCallingOrSelfReadNonDangerousPhoneStateNoThrow() argument 138 context.enforcePermission( in checkCallingOrSelfReadNonDangerousPhoneStateNoThrow() 173 context.enforcePermission( in checkReadPhoneState() 180 context.enforcePermission( in checkReadPhoneState() 230 context.enforcePermission( in checkReadPhoneStateOnAnyActiveSub() 237 context.enforcePermission( in checkReadPhoneStateOnAnyActiveSub() 451 if (context.checkPermission( in reportAccessDeniedToReadIdentifiers() 549 Context context, int subId, int pid, int uid, in checkReadPhoneNumber() argument 585 Context context, int subId, String message) { in enforceCallingOrSelfModifyPermissionOrCarrierPrivilege() argument 613 Context context, int subId, String message) { in enforceCallingOrSelfReadPhoneStatePermissionOrCarrierPrivilege() argument [all …]
|
/aosp14/frameworks/base/core/java/android/app/admin/ |
H A D | DeviceAdminReceiver.java | 579 mWho = new ComponentName(context, getClass()); in getWho() 617 + context.getUserId()); in onDisableRequested() 664 onPasswordChanged(context, intent); in onPasswordChanged() 695 onPasswordFailed(context, intent); in onPasswordFailed() 726 onPasswordSucceeded(context, intent); in onPasswordSucceeded() 777 onPasswordExpiring(context, intent); in onPasswordExpiring() 810 + context.getUserId()); in onProfileProvisioningComplete() 1178 + context.getUserId()); in onReceive() 1188 onEnabled(context, intent); in onReceive() 1196 onDisabled(context, intent); in onReceive() [all …]
|
/aosp14/frameworks/base/core/java/android/content/ |
H A D | PermissionChecker.java | 197 return checkPermissionForDataDelivery(context, permission, pid, uid, in checkPermissionForDataDelivery() 388 public static int startOpForDataDelivery(@NonNull Context context, in startOpForDataDelivery() argument 465 public static int checkOpForPreflight(@NonNull Context context, in checkOpForPreflight() argument 500 public static int checkOpForDataDelivery(@NonNull Context context, in checkOpForDataDelivery() argument 539 public static int checkPermissionForPreflight(@NonNull Context context, in checkPermissionForPreflight() argument 577 return context.getSystemService(PermissionCheckerManager.class) in checkPermissionForPreflight() 615 Process.myUid(), context.getPackageName(), context.getAttributionTag(), message, in checkSelfPermissionForDataDelivery() 651 Process.myUid(), context.getPackageName()); in checkSelfPermissionForPreflight() 772 ? context.getPackageName() : callingPackageName; in checkCallingOrSelfPermissionForDataDelivery() 774 ? context.getAttributionTag() : callingAttributionTag; in checkCallingOrSelfPermissionForDataDelivery() [all …]
|
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/ |
H A D | PowerUtil.java | 74 return getMoreThanOneDayString(context, drainTimeMs, in getBatteryRemainingStringFormatted() 97 Context context, long drainTimeMs) { in getBatteryRemainingShortStringFormatted() argument 105 return getMoreThanOneDayShortString(context, drainTimeMs, in getBatteryRemainingShortStringFormatted() 124 getDateTimeStringFromMs(context, drainTimeMs)); in getBatteryTipStringFormatted() 126 return getMoreThanOneDayShortString(context, drainTimeMs, in getBatteryTipStringFormatted() 134 : context.getString( in getShutdownImminentString() 143 : context.getString( in getUnderFifteenString() 161 return context.getString(id, timeString); in getMoreThanOneDayString() 176 return context.getString(resId, timeString); in getMoreThanOneDayShortString() 188 : context.getString( in getMoreThanTwoDaysString() [all …]
|
/aosp14/frameworks/base/core/jni/ |
H A D | runtime_native_boot-flags-test.sh | 66 local context=$1 81 local context=$1 108 local context=$1 123 local context=$1 147 local context=$1 163 local context=$1 178 local context=$1 191 local context=$1 227 $check_no_effect "$context" 234 $check_effect "$context" [all …]
|
/aosp14/frameworks/base/core/java/android/hardware/input/ |
H A D | InputSettings.java | 79 public static int getPointerSpeed(Context context) { in getPointerSpeed() argument 80 return Settings.System.getInt(context.getContentResolver(), in getPointerSpeed() 97 public static void setPointerSpeed(Context context, int speed) { in setPointerSpeed() argument 102 Settings.System.putInt(context.getContentResolver(), in setPointerSpeed() 154 @NonNull Context context, in setMaximumObscuringOpacityForTouch() 160 Settings.Global.putFloat(context.getContentResolver(), in setMaximumObscuringOpacityForTouch() 169 return Settings.Global.getInt(context.getContentResolver(), in isStylusEverUsed() 180 Settings.Global.putInt(context.getContentResolver(), in setStylusEverUsed() 219 Settings.System.putIntForUser(context.getContentResolver(), in setTouchpadPointerSpeed() 252 Settings.System.putIntForUser(context.getContentResolver(), in setTouchpadNaturalScrolling() [all …]
|
/aosp14/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/framework/theme/ |
H A D | SettingsTonalPalette.kt | 200 internal fun dynamicTonalPalette(context: Context) = SettingsTonalPalette( 202 neutral100 = ColorResourceHelper.getColor(context, R.color.system_neutral1_0), 203 neutral99 = ColorResourceHelper.getColor(context, R.color.system_neutral1_10), 204 neutral95 = ColorResourceHelper.getColor(context, R.color.system_neutral1_50), 233 primary100 = ColorResourceHelper.getColor(context, R.color.system_accent1_0), 234 primary99 = ColorResourceHelper.getColor(context, R.color.system_accent1_10), 235 primary95 = ColorResourceHelper.getColor(context, R.color.system_accent1_50), 236 primary90 = ColorResourceHelper.getColor(context, R.color.system_accent1_100), 237 primary80 = ColorResourceHelper.getColor(context, R.color.system_accent1_200), 280 fun getColor(context: Context, @ColorRes id: Int): Color { [all …]
|
/aosp14/frameworks/base/core/java/com/android/internal/view/ |
H A D | RotationPolicy.java | 57 public static boolean isRotationSupported(Context context) { in isRotationSupported() argument 58 PackageManager pm = context.getPackageManager(); in isRotationSupported() 62 && context.getResources().getBoolean( in isRotationSupported() 74 public static int getRotationLockOrientation(Context context) { in getRotationLockOrientation() argument 75 if (areAllRotationsAllowed(context)) { in getRotationLockOrientation() 91 return isRotationSupported(context) && in isRotationLockToggleVisible() 100 public static boolean isRotationLocked(Context context) { in isRotationLocked() argument 109 final int rotation = areAllRotationsAllowed(context) in setRotationLock() 112 setRotationLockAtAngle(context, enabled, rotation); in setRotationLock() 120 Settings.System.putIntForUser(context.getContentResolver(), in setRotationLockAtAngle() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
H A D | BiometricNotificationDialogFactory.java | 56 sysuiDialog.setMessage(context.getString( in createReenrollDialog() 59 sysuiDialog.setMessage(context.getString( in createReenrollDialog() 76 sysuiDialog.setMessage(context.getString( in createReenrollFailureDialog() 79 sysuiDialog.setMessage(context.getString( in createReenrollFailureDialog() 90 reenrollFace(context); in onReenrollDialogConfirm() 92 reenrollFingerprint(context); in onReenrollDialogConfirm() 110 fingerprintManager.removeAll(context.getUserId(), in reenrollFingerprint() 132 context.startActivity(intent); in reenrollFingerprint() 138 private static void reenrollFace(Context context) { in reenrollFace() argument 152 faceManager.removeAll(context.getUserId(), in reenrollFace() [all …]
|
/aosp14/frameworks/base/core/java/com/android/internal/accessibility/dialog/ |
H A D | AccessibilityTargetHelper.java | 206 final int uid = context.getApplicationInfo().uid; in getAllowListingFeatureTargets() 220 new ToggleAllowListingFeatureTarget(context, in getAllowListingFeatureTargets() 222 isShortcutContained(context, shortcutType, in getAllowListingFeatureTargets() 232 new ToggleAllowListingFeatureTarget(context, in getAllowListingFeatureTargets() 234 isShortcutContained(context, shortcutType, in getAllowListingFeatureTargets() 245 new ToggleAllowListingFeatureTarget(context, in getAllowListingFeatureTargets() 258 new ToggleAllowListingFeatureTarget(context, in getAllowListingFeatureTargets() 260 isShortcutContained(context, shortcutType, in getAllowListingFeatureTargets() 272 isShortcutContained(context, shortcutType, in getAllowListingFeatureTargets() 299 static View createEnableDialogContentView(Context context, in createEnableDialogContentView() argument [all …]
|
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/ |
H A D | BatterySaverUtils.java | 99 public Parameters(Context context) { in Parameters() argument 100 mContext = context; in Parameters() 137 setBatterySaverConfirmationAcknowledged(context); in setPowerSaveMode() 177 if (Secure.getInt(context.getContentResolver(), in maybeShowBatterySaverConfirmation() 201 context.sendBroadcast(intent); in sendSystemUiBroadcast() 205 Secure.putIntForUser(context.getContentResolver(), in setBatterySaverConfirmationAcknowledged() 207 Secure.putIntForUser(context.getContentResolver(), in setBatterySaverConfirmationAcknowledged() 215 Secure.putInt(context.getContentResolver(), in suppressAutoBatterySaver() 224 suppressAutoBatterySaver(context); in setAutoBatterySaverTriggerLevel() 236 setAutoBatterySaverTriggerLevel(context, level); in ensureAutoBatterySaver() [all …]
|
/aosp14/frameworks/base/core/java/com/android/internal/policy/ |
H A D | DecorContext.java | 87 return (context != null) ? context.getSystemService(name) : super.getSystemService(name); in getSystemService() 92 Context context = mContext.get(); in getResources() local 95 if (context != null) { in getResources() 109 Context context = mContext.get(); in getAutofillOptions() local 110 if (context != null) { in getAutofillOptions() 118 Context context = mContext.get(); in getContentCaptureOptions() local 119 if (context != null) { in getContentCaptureOptions() 127 Context context = mContext.get(); in isUiContext() local 128 if (context != null) { in isUiContext() 129 return context.isUiContext(); in isUiContext() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | Prefs.java | 125 return get(context).getBoolean(key, defaultValue); in getBoolean() 133 return get(context).getInt(key, defaultValue); in getInt() 137 get(context).edit().putInt(key, value).apply(); in putInt() 141 return get(context).getLong(key, defaultValue); in getLong() 145 get(context).edit().putLong(key, value).apply(); in putLong() 149 return get(context).getString(key, defaultValue); in getString() 153 get(context).edit().putString(key, value).apply(); in putString() 166 return get(context).getAll(); in getAll() 170 get(context).edit().remove(key).apply(); in remove() 173 public static void registerListener(Context context, in registerListener() argument [all …]
|
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
H A D | RestrictedLockUtilsInternal.java | 67 public static Drawable getRestrictedPadlock(Context context) { in getRestrictedPadlock() argument 100 final UserManager um = UserManager.get(context); in checkIfRestrictionEnforced() 135 public static boolean hasBaseUserRestriction(Context context, in hasBaseUserRestriction() argument 170 return checkForLockSetting(context, userId, check); in checkIfKeyguardFeaturesDisabled() 312 EnforcedAdmin admin = getProfileOwner(context, userId); in checkIfRemoteContactSearchDisallowed() 384 PackageManager pm = context.getPackageManager(); in checkIfAccountManagementDisabled() 511 return checkForLockSetting(context, userId, check); in checkIfPasswordQualityIsSet() 590 return getDeviceOwner(context, null); in getDeviceOwner() 608 return getProfileOwner(context, null, userId); in getProfileOwner() 679 UserManager um = UserManager.get(context); in isAdminInCurrentUserOrProfile() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/biometrics/sensors/ |
H A D | BiometricNotificationUtils.java | 63 context.getSystemService(NotificationManager.class); in showReEnrollmentNotification() 88 public static void showFaceEnrollNotification(@NonNull Context context) { in showFaceEnrollNotification() argument 91 context.getString(R.string.device_unlock_notification_name); in showFaceEnrollNotification() 115 context.getString(R.string.device_unlock_notification_name); in showFingerprintEnrollNotification() 128 showNotificationHelper(context, name, title, content, pendingIntent, in showFingerprintEnrollNotification() 163 showNotificationHelper(context, name, title, content, pendingIntent, in showBadCalibrationNotification() 172 context.getSystemService(NotificationManager.class); in showNotificationHelper() 199 context.getSystemService(NotificationManager.class); in cancelFaceReEnrollNotification() 209 context.getSystemService(NotificationManager.class); in cancelFaceEnrollNotification() 219 context.getSystemService(NotificationManager.class); in cancelFingerprintEnrollNotification() [all …]
|
/aosp14/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/ |
H A D | XmlConfigTests.java | 61 SSLContext context = TestUtils.getSSLContext(source); in testEmptyConfigFile() local 80 SSLContext context = TestUtils.getSSLContext(source); in testEmptyAnchors() local 107 SSLContext context = TestUtils.getSSLContext(source); in testBasicDomainConfig() local 133 SSLContext context = TestUtils.getSSLContext(source); in testBasicPinning() local 149 SSLContext context = TestUtils.getSSLContext(source); in testExpiredPin() local 164 SSLContext context = TestUtils.getSSLContext(source); in testOverridesPins() local 179 SSLContext context = TestUtils.getSSLContext(source); in testBadPin() local 200 SSLContext context = TestUtils.getSSLContext(source); in testMultipleDomains() local 217 SSLContext context = TestUtils.getSSLContext(source); in testMultipleDomainConfigs() local 437 SSLContext context = SSLContext.getInstance("TLS"); in testTrustManagerKeystore() local [all …]
|
/aosp14/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/ |
H A D | Cat.java | 165 public Cat(Context context, long seed) { in Cat() argument 166 D = new CatParts(context); in Cat() 236 public static Cat create(Context context) { 358 return createIcon(context, w, h); 411 public void logAdd(Context context) { 412 logCatAction(context, "egg_neko_add"); 415 public void logRename(Context context) { 419 public void logRemove(Context context) { 423 public void logShare(Context context) { 424 logCatAction(context, "egg_neko_share"); [all …]
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/log/ |
H A D | OperationContextExtTest.java | 57 assertThat(context.toAidlContext()).isNotNull(); in hasAidlContext() 61 context = new OperationContextExt(aidlContext, false); in hasAidlContext() 73 assertThat(context.getId()).isEqualTo(id); in hasAidlContext() 74 assertThat(context.isAod()).isTrue(); in hasAidlContext() 75 assertThat(context.isCrypto()).isTrue(); in hasAidlContext() 76 assertThat(context.getReason()).isEqualTo(reason); in hasAidlContext() 101 assertThat(context.update(mBiometricContext, context.isCrypto()).getDisplayState()) in mapsDisplayStatesToAidl() 142 assertThat(context.update(mBiometricContext, context.isCrypto())).isSameInstanceAs(context); in updatesFromSource() 146 final int order = context.getOrderAndIncrement(); in updatesFromSource() 149 assertThat(context.getId()).isEqualTo(0); in updatesFromSource() [all …]
|
/aosp14/frameworks/base/telephony/java/android/telephony/ |
H A D | TelephonyFrameworkInitializer.java | 69 context -> new TelephonyManager(context) in registerServiceWrappers() 74 context -> new SubscriptionManager(context) in registerServiceWrappers() 79 context -> new CarrierConfigManager(context) in registerServiceWrappers() 84 context -> new EuiccManager(context) in registerServiceWrappers() 89 context -> new EuiccCardManager(context) in registerServiceWrappers() 94 context -> new ImsManager(context) in registerServiceWrappers() 99 context -> SmsManager.getSmsManagerForContextAndSubscriptionId(context, in registerServiceWrappers() 105 context -> new SatelliteManager(context) in registerServiceWrappers()
|
/aosp14/frameworks/base/core/java/android/appwidget/ |
H A D | AppWidgetProvider.java | 57 public void onReceive(Context context, Intent intent) { in onReceive() argument 62 this.onReceive(context, new Intent(intent) in onReceive() 64 this.onReceive(context, new Intent(intent) in onReceive() 71 this.onUpdate(context, AppWidgetManager.getInstance(context), appWidgetIds); in onReceive() 86 this.onAppWidgetOptionsChanged(context, AppWidgetManager.getInstance(context), in onReceive() 90 this.onEnabled(context); in onReceive() 92 this.onDisabled(context); in onReceive() 99 this.onRestored(context, oldIds, newIds); in onReceive() 100 this.onUpdate(context, AppWidgetManager.getInstance(context), newIds); in onReceive() 180 public void onEnabled(Context context) { in onEnabled() argument [all …]
|