Home
last modified time | relevance | path

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

12

/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/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/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/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()
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()
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()
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()
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()
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/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/Bluetooth/src/com/android/bluetooth/btservice/
DConfig.java108 static void init(Context ctx) { in init() argument
109 if (ctx == null) { in init()
112 Resources resources = ctx.getResources(); in init()
121 …if (!supported && (config.mClass == HearingAidService.class) && isHearingAidSettingsEnabled(ctx)) { in init()
126 if (supported && !isProfileDisabled(ctx, config.mMask)) { 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.java105 Context ctx = getContext(); in setType() local
108 btn.setTextColor(ctx.getColor(active in setType()
111 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/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/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()
DRedactionInterstitial.java86 public static Intent createStartIntent(Context ctx, int userId) { in createStartIntent() argument
87 return new Intent(ctx, RedactionInterstitial.class) in createStartIntent()
89 UserManager.get(ctx).isManagedProfile(userId) in createStartIntent()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherProvider.java513 Context ctx = getContext(); in createWorkspaceLoaderFromAppRestriction() local
514 InvariantDeviceProfile grid = LauncherAppState.getIDP(ctx); in createWorkspaceLoaderFromAppRestriction()
516 String authority = Settings.Secure.getString(ctx.getContentResolver(), in createWorkspaceLoaderFromAppRestriction()
522 ProviderInfo pi = ctx.getPackageManager().resolveContentProvider(authority, 0); in createWorkspaceLoaderFromAppRestriction()
534 try (InputStream in = ctx.getContentResolver().openInputStream(uri)) { in createWorkspaceLoaderFromAppRestriction()
541 return new AutoInstallsLayout(ctx, widgetHost, mOpenHelper, in createWorkspaceLoaderFromAppRestriction()
542 ctx.getPackageManager().getResourcesForApplication(pi.applicationInfo), in createWorkspaceLoaderFromAppRestriction()

12