/packages/apps/Email/provider_src/com/android/email/provider/ |
H A D | Utilities.java | 199 * Converts a string representing a file mode, such as "rw", into a bitmask suitable for use 202 * @param mode The string representation of the file mode. 203 * @return A bitmask representing the given file mode. 204 * @throws IllegalArgumentException if the given string does not match a known file mode. 207 public static int parseMode(String mode) { argument 209 return ParcelFileDescriptor.parseMode(mode); 212 if ("r".equals(mode)) { 214 } else if ("w".equals(mode) || "wt".equals(mode)) { [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
H A D | NoLocaleSqliteContext.java | 23 String name, int mode, CursorFactory factory, DatabaseErrorHandler errorHandler) { 25 name, mode | MODE_NO_LOCALIZED_COLLATORS, factory, errorHandler); 22 openOrCreateDatabase( String name, int mode, CursorFactory factory, DatabaseErrorHandler errorHandler) argument
|
/packages/apps/Settings/src/com/android/settings/notification/ |
H A D | ZenModeVoiceActivity.java | 40 * Activity for modifying the Zen mode (Do not disturb) by voice 52 int mode = Global.ZEN_MODE_OFF; 58 mode = Global.ZEN_MODE_ALARMS; 60 setZenModeConfig(mode, condition); 69 notifySuccess(getChangeSummary(mode, minutes)); 77 private void setZenModeConfig(int mode, Condition condition) { argument 79 NotificationManager.from(this).setZenMode(mode, condition.id, TAG); 81 NotificationManager.from(this).setZenMode(mode, null, TAG); 86 * Produce a summary of the Zen mode change to be read aloud as TTS. 88 private CharSequence getChangeSummary(int mode, in argument [all...] |
/packages/apps/TV/src/com/android/tv/data/ |
H A D | DisplayMode.java | 32 * Constant to indicate that any mode is not set yet. 38 public static String getLabel(int mode, Context context) { argument 39 return context.getResources().getStringArray(R.array.display_mode_labels)[mode];
|
/packages/apps/UnifiedEmail/tests/src/com/android/mail/browse/ |
H A D | EmlMessageLoaderTest.java | 89 public ParcelFileDescriptor openFile(Uri uri, String mode) throws FileNotFoundException { argument 94 return super.openFile(uri, mode);
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
H A D | SwitchCompatUtils.java | 54 final ColorStateList colorStateList, final PorterDuff.Mode mode) { 59 final Drawable newDrawable = new TintDrawableWrapper(oldDrawable, colorStateList, mode); 53 getColorTintedDrawable(Drawable oldDrawable, final ColorStateList colorStateList, final PorterDuff.Mode mode) argument
|
/packages/apps/Contacts/src/com/android/contacts/ |
H A D | ContactsActivity.java | 55 public SharedPreferences getSharedPreferences(String name, int mode) { argument 64 return super.getSharedPreferences(name, mode);
|
H A D | ContactsApplication.java | 75 public SharedPreferences getSharedPreferences(String name, int mode) { argument 83 return super.getSharedPreferences(name, mode);
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
H A D | DeskClockBackupAgent.java | 62 int type, long mode, long mtime) throws IOException { 70 super.onRestoreFile(data, size, destination, type, mode, mtime); 61 onRestoreFile(@onNull ParcelFileDescriptor data, long size, File destination, int type, long mode, long mtime) argument
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/info/ |
H A D | HistogramView.java | 81 private void drawHistogram(Canvas canvas, int[] histogram, int color, PorterDuff.Mode mode) { argument 108 mPaint.setXfermode(new PorterDuffXfermode(mode));
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
H A D | MenuHelper.java | 50 public static void addSwitchModeMenuItem(Menu menu, int mode, argument 53 switch(mode) { 67 // incorrect mode, do nothing. 99 public static void gotoMode(int mode, Activity activity) { argument 101 switch (mode) { 115 Log.e(TAG, "unknown camera mode:" + mode);
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/tests/ |
H A D | CrashingIconProvider.java | 42 public ParcelFileDescriptor openFile(Uri uri, String mode) { argument 43 if (DBG) Log.d(TAG, "openFile(" + uri + ", " + mode + ")");
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
H A D | UsbModeChooserActivity.java | 133 private void inflateOption(final int mode, boolean selected, LinearLayout container, argument 138 titleView.setText(getTitle(mode)); 140 summaryView.setText(getSummary(mode)); 159 mBackend.setMode(mode); 180 private static int getSummary(int mode) { argument 181 switch (mode) { 196 private static int getTitle(int mode) { argument 197 switch (mode) {
|
/packages/apps/Settings/src/com/android/settings/location/ |
H A D | LocationMode.java | 26 * A page with 3 radio buttons to choose the location mode. 102 int mode = Settings.Secure.LOCATION_MODE_OFF; 104 mode = Settings.Secure.LOCATION_MODE_HIGH_ACCURACY; 106 mode = Settings.Secure.LOCATION_MODE_BATTERY_SAVING; 108 mode = Settings.Secure.LOCATION_MODE_SENSORS_ONLY; 110 setLocationMode(mode); 114 public void onModeChanged(int mode, boolean restricted) { argument 115 switch (mode) { 132 boolean enabled = (mode != Settings.Secure.LOCATION_MODE_OFF) && !restricted;
|
H A D | LocationSettingsBase.java | 37 /** Broadcast intent action when the location mode is about to change. */ 58 Log.d(TAG, "Received location mode change intent: " + intent); 85 /** Called when location mode has changed. */ 86 public abstract void onModeChanged(int mode, boolean restricted); argument 93 public void setLocationMode(int mode) { argument 95 // Location toggling disabled by user restriction. Read the current location mode to 98 Log.i(TAG, "Restricted user, not setting location mode"); 100 mode = Settings.Secure.getInt(getContentResolver(), Settings.Secure.LOCATION_MODE, 103 onModeChanged(mode, true); 109 intent.putExtra(NEW_MODE_KEY, mode); [all...] |
/packages/apps/Test/connectivity/sl4n/facades/bluetooth/ |
H A D | bluetooth_binder_facade.cpp | 125 int mode, int timeout_seconds, int tx_power_level, bool is_connectable) { 130 switch (mode) { 139 ": Input mode is outside the accepted values"; 124 BluetoothBinderSetAdvSettings( int mode, int timeout_seconds, int tx_power_level, bool is_connectable) argument
|
/packages/experimental/StrictModeTest/src/com/android/strictmodetest/ |
H A D | StrictModeActivity.java | 447 private long settingsWrite(int mode) { argument
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
H A D | InputMethodSubtypeCompatUtils.java | 36 // Note that InputMethodSubtype(int nameId, int iconId, String locale, String mode, 63 String mode, String extraValue, boolean isAuxiliary, 67 return new InputMethodSubtype(nameId, iconId, locale, mode, extraValue, isAuxiliary, 71 nameId, iconId, locale, mode, extraValue, isAuxiliary, 62 newInputMethodSubtype(int nameId, int iconId, String locale, String mode, String extraValue, boolean isAuxiliary, boolean overridesImplicitlyEnabledSubtype, int id) argument
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
H A D | CapsModeUtils.java | 36 * Apply an auto-caps mode to a string. 38 * This intentionally does NOT apply manual caps mode. It only changes the capitalization if 39 * the mode is one of the auto-caps modes. 41 * @param capitalizeMode The mode in which to capitalize. 57 * Return whether a constant represents an auto-caps mode (either auto-shift or auto-shift-lock) 58 * @param mode The mode to test for 59 * @return true if this represents an auto-caps mode, false otherwise 61 public static boolean isAutoCapsMode(final int mode) { argument 62 return WordComposer.CAPS_MODE_AUTO_SHIFTED == mode [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | VoicemailTable.java | 45 public ParcelFileDescriptor openFile(UriData uriData, String mode) argument 63 public ParcelFileDescriptor openDataFile(UriData uriData, String mode) argument
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/debug/ |
H A D | DumpFileProvider.java | 75 public ParcelFileDescriptor openFile(Uri uri, String mode) throws FileNotFoundException { argument 76 if (!"r".equals(mode)) {
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
H A D | BluetoothHeadsetProxy.java | 39 public void clccResponse(int index, int direction, int status, int mode, boolean mpty, argument 42 mBluetoothHeadset.clccResponse(index, direction, status, mode, mpty, number, type);
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
H A D | PhotoActionPopup.java | 73 public static ArrayList<ChoiceListItem> getChoices(Context context, int mode) { argument 74 // Build choices, depending on the current mode. We assume this Dialog is never called 78 if ((mode & Flags.REMOVE_PHOTO) > 0) { 83 if ((mode & Flags.TAKE_OR_PICK_PHOTO) > 0) { 84 boolean replace = (mode & Flags.TAKE_OR_PICK_PHOTO_REPLACE_WORDING) > 0; 98 final Listener listener, int mode) { 99 final ArrayList<ChoiceListItem> choices = getChoices(context, mode); 97 createPopupMenu(Context context, View anchorView, final Listener listener, int mode) argument
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
H A D | DirectoryListLoader.java | 64 public static Uri getDirectoryUri(int mode) { argument 65 if (mode == SEARCH_MODE_DATA_SHORTCUT || mode == SEARCH_MODE_CONTACT_SHORTCUT) { 99 public void setDirectorySearchMode(int mode) { argument 100 mDirectorySearchMode = mode; 151 "Unsupported directory search mode: " + mDirectorySearchMode);
|
/packages/apps/Dialer/src/com/android/dialer/database/ |
H A D | VoicemailArchiveProvider.java | 174 public ParcelFileDescriptor openFile(Uri uri, String mode) throws FileNotFoundException { argument 178 return openFileHelper(uri, mode);
|