/packages/apps/Browser/src/com/android/browser/ |
H A D | UrlSelectionActionMode.java | 34 public boolean onCreateActionMode(ActionMode mode, Menu menu) { argument 35 mode.getMenuInflater().inflate(R.menu.url_selection, menu); 40 public boolean onActionItemClicked(ActionMode mode, MenuItem item) { argument 44 mode.finish(); 53 public void onDestroyActionMode(ActionMode mode) { argument 57 public boolean onPrepareActionMode(ActionMode mode, Menu menu) { argument
|
/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...] |
H A D | AttachmentProvider.java | 144 public ParcelFileDescriptor openFile(Uri uri, String mode) throws FileNotFoundException { argument 147 if (mode.equals("w")) {
|
/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/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/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
H A D | InputMethodSubtypeCompatUtils.java | 33 // Note that InputMethodSubtype(int nameId, int iconId, String locale, String mode, 60 String mode, String extraValue, boolean isAuxiliary, 64 return new InputMethodSubtype(nameId, iconId, locale, mode, extraValue, isAuxiliary, 68 nameId, iconId, locale, mode, extraValue, isAuxiliary, 59 newInputMethodSubtype(int nameId, int iconId, String locale, String mode, String extraValue, boolean isAuxiliary, boolean overridesImplicitlyEnabledSubtype, int id) argument
|
/packages/services/Telephony/common/src/com/android/services/telephony/common/ |
H A D | AudioMode.java | 32 public static String toString(int mode) { argument 33 if ((mode & ~ALL_MODES) != 0x0) { 38 if ((mode & EARPIECE) == EARPIECE) { 41 if ((mode & BLUETOOTH) == BLUETOOTH) { 44 if ((mode & WIRED_HEADSET) == WIRED_HEADSET) { 47 if ((mode & SPEAKER) == SPEAKER) {
|
/packages/apps/Browser/src/com/android/browser/homepages/ |
H A D | HomeProvider.java | 76 public ParcelFileDescriptor openFile(Uri uri, String 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 | 78 public SharedPreferences getSharedPreferences(String name, int mode) { argument 86 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/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/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/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/apps/Browser/tests/src/com/android/browser/tests/utils/ |
H A D | ProviderTestCase3.java | 54 public File getDir(String name, int mode) { argument 57 return getContext().getDir("mockcontext2_" + name, mode); 66 public SharedPreferences getSharedPreferences(String name, int mode) { argument 67 return getContext().getSharedPreferences("mockcontext2_" + name, mode);
|
/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 | 89 public void setDirectorySearchMode(int mode) { argument 90 mDirectorySearchMode = mode; 145 "Unsupported directory search mode: " + mDirectorySearchMode);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/provider/ |
H A D | SharedImageProvider.java | 124 public ParcelFileDescriptor openFile(Uri uri, String mode) argument
|