/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
H A D | ViewMode.java | 29 * Represents the view mode for the tablet Gmail activity. 31 * dependent on the mode should listen to changes on this object. 35 * A listener for changes on a ViewMode. To listen to mode changes, implement this 37 * instance. On mode changes, the onViewModeChanged method will be called with the new mode. 41 * Called when the mode has changed. 71 * Uncertain mode. The mode has not been initialized. 76 private static final String VIEW_MODE_KEY = "view-mode"; 79 * The actual mode th 194 isListMode(final int mode) argument 202 isConversationMode(final int mode) argument 210 isSearchMode(final int mode) argument 218 isWaitingForSync(final int mode) argument 226 isAdMode(final int mode) argument 269 setModeInternal(int mode) argument [all...] |
H A D | SearchActionBarController.java | 78 // Remove focus from the search action menu in search results mode so 105 // When we are in the search activity, back closes the search action mode. At that point 107 final int mode = getMode(); 108 if (mode == ViewMode.SEARCH_RESULTS_LIST 110 && mode == ViewMode.SEARCH_RESULTS_CONVERSATION)) { 116 // The return value here is whether we want to collapse the action mode. Since we want to 117 // collapse the action mode, we should return true.
|
H A D | OnePaneController.java | 112 * @return true if user is in conversation list mode, viewing the default inbox. 146 // CV is initially GONE on 1-pane (mode changes trigger visibility changes) 172 // When entering conversation list mode, hide and clean up any currently visible 177 // When we step away from the conversation mode, we don't have a current conversation 356 final int mode = mViewMode.getMode(); 358 if (mode == ViewMode.SEARCH_RESULTS_LIST) { 392 * mode and returns the user to whatever view they were in when they began search. 397 final int mode = mViewMode.getMode(); 398 if (mode == ViewMode.SEARCH_RESULTS_LIST) { 401 } else if (mode [all...] |
/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
|
H A D | ActivityController.java | 56 void onActionModeStarted(ActionMode mode); argument 58 void onActionModeFinished(ActionMode mode); 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/UnifiedEmail/tests/src/com/android/mail/ui/ |
H A D | ViewModeTests.java | 30 * Saving and restoring a view mode work correctly. 45 * Register a listener for mode changes. Change a mode, and verify that the listener was 46 * called. Then unregister the listener and change the mode again. Verify that the listener 54 public void onViewModeChanged(int mode) { 59 ViewMode mode = new ViewMode(); 61 mode.addListener(ears); 62 mode.enterConversationListMode(); 64 mode.removeListener(ears); 65 mode [all...] |
/packages/apps/Settings/src/com/android/settings/location/ |
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...] |
H A D | LocationMode.java | 25 * A page with 3 radio buttons to choose the location mode. 96 int mode = Settings.Secure.LOCATION_MODE_OFF; 98 mode = Settings.Secure.LOCATION_MODE_HIGH_ACCURACY; 100 mode = Settings.Secure.LOCATION_MODE_BATTERY_SAVING; 102 mode = Settings.Secure.LOCATION_MODE_SENSORS_ONLY; 104 setLocationMode(mode); 108 public void onModeChanged(int mode, boolean restricted) { argument 109 switch (mode) { 126 boolean enabled = (mode != Settings.Secure.LOCATION_MODE_OFF) && !restricted;
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
H A D | ControlPanelLayout.java | 28 * the shutter button, thumbnail, front/back camera picker, and mode picker. 44 int mode, longSideSize, shortSideSize, specSize; 50 mode = MeasureSpec.getMode(widthSpec); 55 mode = MeasureSpec.getMode(heightSpec); 61 if (widthSpecSize > 0 && heightSpecSize > 0 && mode == MeasureSpec.AT_MOST) { 76 if (mode == MeasureSpec.AT_MOST && measuredSize > specSize) {
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/util/ |
H A D | ThreadPool.java | 51 boolean setMode(int mode); argument 65 public boolean setMode(int mode) { argument 129 // A job is in CPU mode by default. setMode returns false 202 public boolean setMode(int mode) { argument 209 rc = modeToCounter(mode); 214 mMode = mode; 220 private ResourceCounter modeToCounter(int mode) { argument 221 if (mode == MODE_CPU) { 223 } else if (mode == MODE_NETWORK) {
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
H A D | UserDictionaryAddWordActivity.java | 46 final int mode; 48 mode = UserDictionaryAddWordContents.MODE_EDIT; 50 mode = UserDictionaryAddWordContents.MODE_INSERT; 60 args.putInt(UserDictionaryAddWordContents.EXTRA_MODE, mode);
|
/packages/apps/HTMLViewer/src/com/android/htmlviewer/ |
H A D | FileContentProvider.java | 50 public ParcelFileDescriptor openFile(Uri uri, String mode) throws FileNotFoundException { argument 56 if (!"r".equals(mode)) { 57 throw new FileNotFoundException("Bad mode for " + uri + ": " + mode);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
H A D | InputMethodSubtypeCompatUtils.java | 30 // Note that InputMethodSubtype(int nameId, int iconId, String locale, String mode, 55 String mode, String extraValue, boolean isAuxiliary, 59 return new InputMethodSubtype(nameId, iconId, locale, mode, extraValue, isAuxiliary, 63 nameId, iconId, locale, mode, extraValue, isAuxiliary, 54 newInputMethodSubtype(int nameId, int iconId, String locale, String mode, String extraValue, boolean isAuxiliary, boolean overridesImplicitlyEnabledSubtype, int id) argument
|
/packages/apps/Gallery2/src/com/android/photos/ |
H A D | MultiChoiceManager.java | 91 private void updateSelectedTitle(ActionMode mode) { argument 93 mode.setTitle(mContext.getResources().getQuantityString( 109 public void onItemCheckedStateChanged(ActionMode mode, int position, long id, argument 111 updateSelectedTitle(mode); 129 updateActionItemVisibilities(mode.getMenu(), 152 public boolean onCreateActionMode(ActionMode mode, Menu menu) { argument 154 mActionMode = mode; 155 MenuInflater inflater = mode.getMenuInflater(); 160 updateSelectedTitle(mode); 165 public void onDestroyActionMode(ActionMode mode) { argument 177 onPrepareActionMode(ActionMode mode, Menu menu) argument 207 onActionItemClicked(ActionMode mode, MenuItem item) argument [all...] |
/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/Email/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/Mms/src/com/android/mms/ui/ |
H A D | AttachmentTypeSelectorAdapter.java | 43 public AttachmentTypeSelectorAdapter(Context context, int mode) { argument 44 super(context, getData(mode, context)); 52 protected static List<IconListItem> getData(int mode, Context context) { argument 74 if (mode == MODE_WITH_SLIDESHOW) {
|
/packages/apps/Nfc/nci/jni/ |
H A D | NfcTag.cpp | 255 if (mTechParams [0].mode != NFC_DISCOVERY_TYPE_POLL_KOVIO) 362 if ( (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_A) || 363 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_A_ACTIVE) || 364 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_LISTEN_A) || 365 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_LISTEN_A_ACTIVE) ) 374 else if ( (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_B) || 375 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_B_PRIME) || 376 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_LISTEN_B) || 377 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_LISTEN_B_PRIME) ) 470 if ( (discovery_ntf.rf_tech_param.mode [all...] |
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
H A D | LocalBluetoothAdapter.java | 133 void setScanMode(int mode) { argument 134 mAdapter.setScanMode(mode); 137 boolean setScanMode(int mode, int duration) { argument 138 return mAdapter.setScanMode(mode, duration);
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
H A D | OpenWnnEvent.java | 135 * The definition class of engine's mode. 264 /** Detail mode of the event */ 265 public int mode = 0; field in class:OpenWnnEvent 290 * Generate {@link OpenWnnEvent} for changing the mode 293 * @param mode The mode 295 public OpenWnnEvent(int code, int mode) { argument 297 this.mode = mode;
|
/packages/apps/Camera/jni/feature_mos/src/mosaic/ |
H A D | Pyramid.h | 48 static void BorderExpandOdd(PyramidShort *in, PyramidShort *out, PyramidShort *scr, int mode); 49 static int BorderExpand(PyramidShort *pyr, int nlev, int mode);
|
/packages/apps/Camera2/src_pd/com/android/camera/util/ |
H A D | UsageStatistics.java | 48 public void foregrounded(int source, int mode) { argument 62 public void photoCaptureDoneEvent(int mode, String fileRef, ExifInterface exifRef, argument
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
H A D | Pyramid.h | 48 static void BorderExpandOdd(PyramidShort *in, PyramidShort *out, PyramidShort *scr, int mode); 49 static int BorderExpand(PyramidShort *pyr, int nlev, int 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 + ")");
|