Home
last modified time | relevance | path

Searched refs:ctx (Results 1 – 25 of 48) sorted by relevance

12

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DLinkablePreference.java44 public LinkablePreference(Context ctx, AttributeSet attrs, int defStyle) { in LinkablePreference() argument
45 super(ctx, attrs, defStyle); in LinkablePreference()
50 public LinkablePreference(Context ctx, AttributeSet attrs) { in LinkablePreference() argument
51 this(ctx, attrs, TypedArrayUtils.getAttr( in LinkablePreference()
52 ctx, R.attr.footerPreferenceStyle, android.R.attr.preferenceStyle)); in LinkablePreference()
55 public LinkablePreference(Context ctx) { in LinkablePreference() argument
56 this(ctx, null); in LinkablePreference()
/packages/apps/Settings/src/com/android/settings/wifi/
DLinkablePreference.java44 public LinkablePreference(Context ctx, AttributeSet attrs, int defStyle) { in LinkablePreference() argument
45 super(ctx, attrs, defStyle); in LinkablePreference()
50 public LinkablePreference(Context ctx, AttributeSet attrs) { in LinkablePreference() argument
51 this(ctx, attrs, TypedArrayUtils.getAttr( in LinkablePreference()
52 ctx, R.attr.footerPreferenceStyle, android.R.attr.preferenceStyle)); in LinkablePreference()
55 public LinkablePreference(Context ctx) { in LinkablePreference() argument
56 this(ctx, null); in LinkablePreference()
/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tester/utils/
DAnomalyActions.java43 public static void doAction(Context ctx, String actionCode, long durationMs) { in doAction() argument
50 doUnoptimizedBleScan(ctx, durationMs); in doAction()
53 doHoldWakelock(ctx, durationMs); in doAction()
59 private static void doUnoptimizedBleScan(Context ctx, long durationMs) { in doUnoptimizedBleScan() argument
101 private static void doHoldWakelock(Context ctx, long durationMs) { in doHoldWakelock() argument
102 PowerManager powerManager = ctx.getSystemService(PowerManager.class); in doHoldWakelock()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DSystemActivityMonitoringServiceTest.java191 private static ComponentName toComponentName(Context ctx, Class<?> cls) { in toComponentName() argument
192 return ComponentName.createRelative(ctx, cls.getName()); in toComponentName()
195 private static void startActivity(Context ctx, ComponentName name) { in startActivity() argument
196 startActivity(ctx, name, Display.DEFAULT_DISPLAY); in startActivity()
199 private static void startActivity(Context ctx, ComponentName name, int displayId) { in startActivity() argument
207 ctx.startActivity(intent, options.toBundle()); in startActivity()
/packages/apps/Email/src/com/android/email/activity/setup/
DPolicyListPreference.java32 public PolicyListPreference(Context ctx, AttributeSet attrs, int defStyle) { in PolicyListPreference() argument
33 super(ctx, attrs, defStyle); in PolicyListPreference()
36 public PolicyListPreference(Context ctx, AttributeSet attrs) { in PolicyListPreference() argument
37 super(ctx, attrs); in PolicyListPreference()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/
DColorValueView.java57 public ColorValueView(Context ctx, AttributeSet attrs) { in ColorValueView() argument
58 super(ctx, attrs); in ColorValueView()
59 DisplayMetrics metrics = ctx.getResources().getDisplayMetrics(); in ColorValueView()
69 mDotPaint.setColor(ctx.getResources().getColor(R.color.slider_dot_color)); in ColorValueView()
76 mSliderColor = ctx.getResources().getColor(R.color.slider_line_color); in ColorValueView()
DColorSaturationView.java63 public ColorSaturationView(Context ctx, AttributeSet attrs) { in ColorSaturationView() argument
64 super(ctx, attrs); in ColorSaturationView()
65 DisplayMetrics metrics = ctx.getResources().getDisplayMetrics(); in ColorSaturationView()
74 mDotPaint.setColor(ctx.getResources().getColor(R.color.slider_dot_color)); in ColorSaturationView()
75 mSliderColor = ctx.getResources().getColor(R.color.slider_line_color); in ColorSaturationView()
DColorBrightnessView.java63 public ColorBrightnessView(Context ctx, AttributeSet attrs) { in ColorBrightnessView() argument
64 super(ctx, attrs); in ColorBrightnessView()
65 DisplayMetrics metrics = ctx.getResources().getDisplayMetrics(); in ColorBrightnessView()
74 mDotPaint.setColor(ctx.getResources().getColor(R.color.slider_dot_color)); in ColorBrightnessView()
75 mSliderColor = ctx.getResources().getColor(R.color.slider_line_color); in ColorBrightnessView()
DColorHueView.java64 public ColorHueView(Context ctx, AttributeSet attrs) { in ColorHueView() argument
65 super(ctx, attrs); in ColorHueView()
66 DisplayMetrics metrics = ctx.getResources().getDisplayMetrics(); in ColorHueView()
74 mDotPaint.setColor(ctx.getResources().getColor(R.color.slider_dot_color)); in ColorHueView()
75 mSliderColor = ctx.getResources().getColor(R.color.slider_line_color); in ColorHueView()
DColorSVRectView.java62 public ColorSVRectView(Context ctx, AttributeSet attrs) { in ColorSVRectView() argument
63 super(ctx, attrs); in ColorSVRectView()
65 DisplayMetrics metrics = ctx.getResources().getDisplayMetrics(); in ColorSVRectView()
78 mDotPaint.setColor(ctx.getResources().getColor(R.color.slider_dot_color)); in ColorSVRectView()
79 mSliderColor = ctx.getResources().getColor(R.color.slider_line_color); in ColorSVRectView()
DColorRectView.java67 public ColorRectView(Context ctx, AttributeSet attrs) { in ColorRectView() argument
68 super(ctx, attrs); in ColorRectView()
70 DisplayMetrics metrics = ctx.getResources().getDisplayMetrics(); in ColorRectView()
81 mDotPaint.setColor(ctx.getResources().getColor(R.color.slider_dot_color)); in ColorRectView()
82 mSliderColor = ctx.getResources().getColor(R.color.slider_line_color); in ColorRectView()
DColorCompareView.java59 public ColorCompareView(Context ctx, AttributeSet attrs) { in ColorCompareView() argument
60 super(ctx, attrs); in ColorCompareView()
61 DisplayMetrics metrics = ctx.getResources().getDisplayMetrics(); in ColorCompareView()
66 Resources res = ctx.getResources(); in ColorCompareView()
DColorOpacityView.java61 public ColorOpacityView(Context ctx, AttributeSet attrs) { in ColorOpacityView() argument
62 super(ctx, attrs); in ColorOpacityView()
63 DisplayMetrics metrics = ctx.getResources().getDisplayMetrics(); in ColorOpacityView()
72 Resources res = ctx.getResources(); in ColorOpacityView()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DConfig.java107 static void init(Context ctx) { in init() argument
108 if (ctx == null) { in init()
111 Resources resources = ctx.getResources(); in init()
121 .isEnabled(ctx, FeatureFlagUtils.HEARING_AID_SETTINGS)) { in init()
126 if (supported && !isProfileDisabled(ctx, config.mMask)) { in init()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapUtils.java113 static VCardComposer createFilteredVCardComposer(final Context ctx, final int vcardType, in createFilteredVCardComposer() argument
125 return new VCardComposer(ctx, vType, true); in createFilteredVCardComposer()
141 static String createProfileVCard(Context ctx, final int vcardType, final byte[] filter) { in createProfileVCard() argument
145 composer = createFilteredVCardComposer(ctx, vcardType, filter); in createProfileVCard()
163 static void savePbapParams(Context ctx) { in savePbapParams() argument
164 SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(ctx); in savePbapParams()
187 static void fetchPbapParams(Context ctx) { in fetchPbapParams() argument
188 SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(ctx); in fetchPbapParams()
DBluetoothPbapConfig.java30 public static void init(Context ctx) { in init() argument
31 Resources r = ctx.getResources(); in init()
/packages/apps/Settings/src/com/android/settings/
DSetupEncryptionInterstitial.java31 public static Intent createStartIntent(Context ctx, int quality, in createStartIntent() argument
33 Intent startIntent = EncryptionInterstitial.createStartIntent(ctx, quality, in createStartIntent()
35 startIntent.setClass(ctx, SetupEncryptionInterstitial.class); in createStartIntent()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DSetupEncryptionInterstitial.java33 public static Intent createStartIntent(Context ctx, int quality, in createStartIntent() argument
35 Intent startIntent = EncryptionInterstitial.createStartIntent(ctx, quality, in createStartIntent()
37 startIntent.setClass(ctx, SetupEncryptionInterstitial.class); in createStartIntent()
/packages/apps/Car/Radio/src/com/android/car/radio/widget/
DBandSelectorFlat.java73 Context ctx = getContext(); in setType() local
76 btn.setTextColor(ctx.getColor(active in setType()
79 btn.setBackground(ctx.getDrawable(active in setType()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DRealSystemFacade.java108 SSLContext ctx = SSLContext.getInstance("TLS"); in getSSLContextForPackage() local
109 ctx.init(null, new TrustManager[] {appConfig.getTrustManager()}, null); in getSSLContextForPackage()
110 return ctx; in getSSLContextForPackage()
/packages/apps/Car/Radio/src/com/android/car/radio/platform/
DRadioManagerExt.java61 public RadioManagerExt(@NonNull Context ctx) { in RadioManagerExt() argument
62 mContext = Objects.requireNonNull(ctx); in RadioManagerExt()
63 mRadioManager = (RadioManager)ctx.getSystemService(Context.RADIO_SERVICE); in RadioManagerExt()
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationAccessSettings.java69 final Context ctx = getContext(); in onCreate() local
70 if (UserManager.get(ctx).isManagedProfile()) { in onCreate()
72 Toast.makeText(ctx, R.string.notification_settings_work_profile, Toast.LENGTH_SHORT) in onCreate()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DNotificationAccessSettings.java69 final Context ctx = getContext(); in onCreate() local
70 if (UserManager.get(ctx).isManagedProfile()) { in onCreate()
72 Toast.makeText(ctx, R.string.notification_settings_work_profile, Toast.LENGTH_SHORT) in onCreate()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/utils/
DFlingAnimationUtils.java46 public FlingAnimationUtils(Context ctx, float maxLengthSeconds) { in FlingAnimationUtils() argument
50 MIN_VELOCITY_DP_PER_SECOND * ctx.getResources().getDisplayMetrics().density; in FlingAnimationUtils()
52 HIGH_VELOCITY_DP_PER_SECOND * ctx.getResources().getDisplayMetrics().density; in FlingAnimationUtils()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherProvider.java515 Context ctx = getContext(); in createWorkspaceLoaderFromAppRestriction() local
516 InvariantDeviceProfile grid = LauncherAppState.getIDP(ctx); in createWorkspaceLoaderFromAppRestriction()
518 String authority = Settings.Secure.getString(ctx.getContentResolver(), in createWorkspaceLoaderFromAppRestriction()
524 ProviderInfo pi = ctx.getPackageManager().resolveContentProvider(authority, 0); in createWorkspaceLoaderFromAppRestriction()
536 try (InputStream in = ctx.getContentResolver().openInputStream(uri)) { in createWorkspaceLoaderFromAppRestriction()
543 return new AutoInstallsLayout(ctx, widgetHost, mOpenHelper, in createWorkspaceLoaderFromAppRestriction()
544 ctx.getPackageManager().getResourcesForApplication(pi.applicationInfo), in createWorkspaceLoaderFromAppRestriction()

12