/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 | OnePaneController.java | 75 // Make sure that while we were animating, the mode did not change back 76 // If it's still in conversation view mode, remove the TL fragment from behind 146 * @return true if user is in conversation list mode, viewing the default inbox. 181 // CV is initially GONE on 1-pane (mode changes trigger visibility changes) 207 // When entering conversation list mode, hide and clean up any currently visible 217 // When we step away from the conversation mode, we don't have a current conversation 383 final int mode = mViewMode.getMode(); 385 if (mode == ViewMode.SEARCH_RESULTS_LIST) { 419 * mode and returns the user to whatever view they were in when they began search. 424 final int mode [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/Settings/src/com/android/settings/deviceinfo/ |
H A D | UsbBackend.java | 101 private void setUsbFunction(int mode) { argument 102 switch (mode) { 122 public void setMode(int mode) { argument 124 int powerRole = modeToPower(mode); 125 // If we aren't using any data modes and we support host mode, then go to host mode 127 // mode because we have no choice. 128 int dataRole = (mode & MODE_DATA_MASK) == MODE_DATA_NONE 133 setUsbFunction(mode & MODE_DATA_MASK); 136 private int modeToPower(int mode) { argument 141 isModeDisallowed(int mode) argument 150 isModeDisallowedBySystem(int mode) argument 159 isModeSupported(int mode) argument [all...] |
/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 | 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;
|
/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/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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/network/ |
H A D | HttpUrlConnectionBuilder.java | 173 * The request mode. 174 * Sets the request mode to be one of: upload-only, download-only or bidirectional. 183 public HttpUrlConnectionBuilder setMode(int mode) { argument 184 if (mode != MODE_UPLOAD_ONLY 185 && mode != MODE_DOWNLOAD_ONLY 186 && mode != MODE_BI_DIRECTIONAL) { 187 throw new IllegalArgumentException("Invalid mode specified:" + mode); 189 mMode = mode;
|
/packages/apps/Nfc/nci/jni/ |
H A D | NfcTag.cpp | 257 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) ) 482 if ( (discovery_ntf.rf_tech_param.mode [all...] |
/packages/apps/Browser2/test/ |
H A D | run_tests.sh | 17 adb shell am instrument -w -e mode rebaseline -e class \
|
/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/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/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; 63 args.putInt(UserDictionaryAddWordContents.EXTRA_MODE, mode);
|
/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/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/Settings/src/com/android/settings/wifi/ |
H A D | WifiDialog.java | 49 int mode, boolean hideSubmitButton) { 50 this(context, listener, accessPoint, mode); 55 int mode) { 57 mMode = mode; 48 WifiDialog(Context context, WifiDialogListener listener, AccessPoint accessPoint, int mode, boolean hideSubmitButton) argument 54 WifiDialog(Context context, WifiDialogListener listener, AccessPoint accessPoint, int mode) argument
|
/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/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/TvSettings/Settings/src/com/android/tv/settings/system/ |
H A D | LocationFragment.java | 66 Log.d(TAG, "Received location mode change intent: " + intent); 174 int mode = Settings.Secure.LOCATION_MODE_OFF; 179 mode = Settings.Secure.LOCATION_MODE_HIGH_ACCURACY; 181 mode = Settings.Secure.LOCATION_MODE_OFF; 183 Log.wtf(TAG, "Tried to set unknown location mode!"); 190 intent.putExtra(NEW_MODE_KEY, mode); 193 Settings.Secure.LOCATION_MODE, mode); 204 final int mode = Settings.Secure.getInt(getActivity().getContentResolver(), 206 if (mode == Settings.Secure.LOCATION_MODE_HIGH_ACCURACY) { 208 } else if (mode [all...] |
/packages/apps/Camera2/src_pd/com/android/camera/stats/ |
H A D | UsageStatistics.java | 51 public void foregrounded(int source, int mode, boolean isKeyguardLocked, argument 73 public void photoCaptureDoneEvent(int mode, String fileRef, ExifInterface exifRef, argument
|
/packages/apps/ExactCalculator/src/com/android/calculator2/ |
H A D | CalculatorText.java | 44 public boolean onActionItemClicked(ActionMode mode, MenuItem item) { 47 mode.finish(); 54 public boolean onCreateActionMode(ActionMode mode, Menu menu) { 59 MenuInflater inflater = mode.getMenuInflater(); 63 // Prevents the selection action mode on double tap. 68 public boolean onPrepareActionMode(ActionMode mode, Menu menu) { 73 public void onDestroyActionMode(ActionMode mode) { 78 public void onGetContentRect(ActionMode mode, View view, Rect outRect) { 79 super.onGetContentRect(mode, view, outRect);
|
/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);
|