/packages/apps/Car/Settings/src/com/android/car/settings/display/ |
AutoBrightnessLineItem.java | 23 import android.content.Context; 35 private final Context mContext; 37 public AutoBrightnessLineItem(Context context) { 38 super(context.getText(R.string.auto_brightness_title)); 39 mContext = context;
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
TimePickerDialogFragment.java | 24 import android.content.Context; 59 final Context context = getActivity(); local 60 return new TimePickerDialog(context, new TimePickerDialog.OnTimeSetListener() { 65 }, hour, minute, DateFormat.is24HourFormat(context)); 68 final Context context = builder.getContext(); external variable declarations 70 final TimePicker timePicker = new TimePicker(context); 73 timePicker.setIs24HourView(DateFormat.is24HourFormat(context));
|
/packages/apps/DeskClock/src/com/android/deskclock/widget/selector/ |
AlarmSelectionAdapter.java | 18 import android.content.Context; 38 public AlarmSelectionAdapter(Context context, int id, List<AlarmSelection> alarms) { 39 super(context, id, alarms); 45 final Context context = getContext(); local 48 final LayoutInflater inflater = LayoutInflater.from(context); 65 context.getResources().getString(R.string.alarm_tomorrow) : 66 context.getResources().getString(R.string.alarm_today); 69 daysOfWeek = alarm.daysOfWeek.toString(context, weekdayOrder) [all...] |
/packages/apps/Dialer/java/com/android/dialer/app/calllog/ |
CallLogAsync.java | 19 import android.content.Context; 56 public final Context context; field in class:CallLogAsync.GetLastOutgoingCallArgs 59 public GetLastOutgoingCallArgs(Context context, OnLastOutgoingCallComplete callback) { 60 this.context = context; 83 number = Calls.getLastOutgoingCall(args.context);
|
/packages/apps/Dialer/java/com/android/dialer/shortcuts/ |
IconFactory.java | 19 import android.content.Context; 39 private final Context context; field in class:IconFactory 41 IconFactory(@NonNull Context context) { 42 this.context = context; 84 context.getContentResolver(), lookupUri, false /* preferHighres */); 89 LetterTileDrawable letterTileDrawable = new LetterTileDrawable(context.getResources()); 99 context.getResources().getDimensionPixelSize(R.dimen.launcher_shortcut_icon_size) [all...] |
ShortcutRefresher.java | 19 import android.content.Context; 40 public static void refresh(@NonNull Context context, List<ContactEntry> contacts) { 42 Assert.isNotNull(context); 48 if (!Shortcuts.areDynamicShortcutsEnabled(context)) { 53 EXECUTOR.submit(Task.ID, new Task(context), new ArrayList<>(contacts)); 59 private final Context context; field in class:ShortcutRefresher.Task 61 Task(Context context) { [all...] |
/packages/apps/Dialer/java/com/android/dialer/simulator/impl/ |
SimulatorActionProvider.java | 19 import android.content.Context; 37 @NonNull private final Context context; field in class:SimulatorActionProvider 48 public SimulatorActionProvider(@NonNull Context context) { 49 super(Assert.isNotNull(context)); 50 this.context = context; 80 SimulatorVoiceCall.addNewIncomingCall(context); 95 context.sendBroadcast(intent) [all...] |
/packages/apps/Dialer/java/com/android/incallui/legacyblocking/ |
BlockedNumberContentObserver.java | 19 import android.content.Context; 43 @NonNull private final Context context; field in class:BlockedNumberContentObserver 65 @NonNull Context context, @NonNull Handler handler, String number, long timeAddedMillis) { 67 this.context = Objects.requireNonNull(context, "context").getApplicationContext(); 80 new DeleteBlockedCallTask(context, this, number, timeAddedMillis)); 97 if (PermissionsUtil.hasCallLogReadPermissions(context) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/controller/ |
BasicSlider.java | 19 import android.content.Context; 39 Context context = container.getContext(); local 42 (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
HandleView.java | 20 import android.content.Context; 35 public HandleView(Context context) { 36 super(context); 39 public HandleView(Context context, AttributeSet attrs) { 40 this(context, attrs, 0); 43 public HandleView(Context context, AttributeSet attrs, int defStyle) { 44 super(context, attrs, defStyle) [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/ |
OverviewAccessibilityDelegate.java | 19 import android.content.Context; 44 Context context = host.getContext(); local 45 info.addAction(new AccessibilityAction(OVERVIEW, context.getText(OVERVIEW))); 47 if (Utilities.isWallpaperAllowed(context)) { 48 info.addAction(new AccessibilityAction(WALLPAPERS, context.getText(WALLPAPERS))); 50 info.addAction(new AccessibilityAction(WIDGETS, context.getText(WIDGETS))); 51 info.addAction(new AccessibilityAction(SETTINGS, context.getText(SETTINGS)));
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
SettingsFacade.java | 24 import android.content.Context; 35 public void setUserSetupCompleted(Context context, int userId) { 37 Secure.putIntForUser(context.getContentResolver(), USER_SETUP_COMPLETE, 1, userId); 43 public boolean isUserSetupCompleted(Context context) { 44 return Secure.getInt(context.getContentResolver(), USER_SETUP_COMPLETE, 0) != 0; 50 public boolean isDeviceProvisioned(Context context) { 51 return Global.getInt(context.getContentResolver(), DEVICE_PROVISIONED, 0) != 0 [all...] |
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
DatabaseUpgradeHelper.java | 18 import android.content.Context; 52 final Context context = Factory.get().getApplicationContext(); local 54 DatabaseHelper.rebuildAllViews(new DatabaseWrapper(context, db));
|
MmsFileProvider.java | 19 import android.content.Context; 64 final Context context = Factory.get().getApplicationContext(); local 65 final File filePath = new File(getDirectory(context), path + ".dat"); 69 .startsWith(getDirectory(context).getCanonicalPath())) { 73 + getDirectory(context).getCanonicalPath()); 83 private static File getDirectory(final Context context) { 84 return new File(context.getCacheDir(), RAW_MMS_DIR);
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
BugleActionToasts.java | 18 import android.content.Context; 100 final Context context = Factory.get().getApplicationContext(); local 101 if (AccessibilityUtil.isTouchExplorationEnabled(context)) { 105 final Resources res = context.getResources(); 139 private static Context getApplicationContext() { 145 private final Context mContext; 147 UpdateDestinationBlockedActionToast(final Context context) { 148 mContext = context; [all...] |
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/ |
EnterSelfPhoneNumberDialog.java | 21 import android.content.Context; 48 final Context context = getActivity(); local 49 final LayoutInflater inflater = LayoutInflater.from(context); 52 final AlertDialog.Builder builder = new AlertDialog.Builder(context);
|
/packages/apps/PackageInstaller/tests/src/com/android/packageinstaller/shadows/ |
ShadowMetricsLogger.java | 19 import android.content.Context; 53 public static void action(Context context, int category, String pkg) { 54 sLogs.add(new Log(context, category, pkg)); 58 public final Context context; field in class:ShadowMetricsLogger.Log 62 public Log(Context context, int category, String pkg) { 63 this.context = context; [all...] |
/packages/apps/PhoneCommon/src/com/android/phone/common/ |
CallLogAsync.java | 18 import android.content.Context; 53 public GetLastOutgoingCallArgs(Context context, 55 this.context = context; 58 public final Context context; field in class:CallLogAsync.GetLastOutgoingCallArgs 97 number = Calls.getLastOutgoingCall(args.context);
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/ |
StorageSummaryDonutPreference.java | 19 import android.content.Context; 51 public StorageSummaryDonutPreference(Context context) { 52 this(context, null); 55 public StorageSummaryDonutPreference(Context context, AttributeSet attrs) { 56 super(context, attrs); 88 Context context = getContext(); local 89 FeatureFactory.getFactory(context).getMetricsFeatureProvider().action [all...] |
/packages/apps/Settings/src/com/android/settings/vpn2/ |
AppDialog.java | 20 import android.content.Context; 30 * Among the actions available are (depending on context): 43 AppDialog(Context context, Listener listener, PackageInfo pkgInfo, String label) { 44 super(context); 65 Context context = getContext(); local 69 context.getString(R.string.vpn_forget), this); 73 context.getString(R.string.vpn_done), this);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/ |
DeviceInfoSettingsTest.java | 25 import android.content.Context; 51 private Context mContext; 64 when(mContext.getSystemService(Context.USER_SERVICE)).thenReturn(mUserManager); 87 final Context context = RuntimeEnvironment.application; local 89 .getNonIndexableKeys(context); 92 final List<String> keys = XmlTestUtils.getKeysFromPreferenceXml(context, xmlId);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/ |
DashboardItemAnimatorTest.java | 19 import android.content.Context; 42 final Context context = ShadowApplication.getInstance().getApplicationContext(); local 44 mViewHolder = new ViewHolder(new TextView(context));
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/ |
AutoBrightnessPreferenceControllerTest.java | 19 import android.content.Context; 44 private Context mContext; 75 final Context context = ShadowApplication.getInstance().getApplicationContext(); local 76 mController = new AutoBrightnessPreferenceController(context, PREFERENCE_KEY); 83 final Context context = ShadowApplication.getInstance().getApplicationContext(); local 84 mController = new AutoBrightnessPreferenceController(context, PREFERENCE_KEY);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
BatteryHistoryPreferenceTest.java | 18 import android.content.Context; 70 final Context context = RuntimeEnvironment.application; local 71 final View itemView = LayoutInflater.from(context).inflate(R.layout.battery_usage_graph, 74 mBatteryHistoryPreference = new BatteryHistoryPreference(context, null);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/search/ |
InlineSwitchPayloadTest.java | 22 import android.content.Context; 45 final Context context = ShadowApplication.getInstance().getApplicationContext(); local 48 payload.getSwitchValue(context); 61 final Context context = ShadowApplication.getInstance().getApplicationContext(); local 64 payload.getSwitchValue(context);
|