Searched refs:mode (Results 1 - 25 of 193) sorted by relevance

12345678

/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DViewMode.java29 * 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
193 isListMode(final int mode) argument
201 isConversationMode(final int mode) argument
205 isSearchMode(final int mode) argument
213 isWaitingForSync(final int mode) argument
221 isAdMode(final int mode) argument
264 setModeInternal(int mode) argument
[all...]
H A DTwoPaneController.java138 // 2-pane layout is the main listener of view mode changes, and issues secondary
163 // It's possible that we are not in conversation list mode
191 // In conversation mode, if the conversation list is not visible, then the user cannot
192 // see the selected conversations. Disable the CAB mode while leaving the selected set
195 // mode if any conversations are selected.
225 // On two-pane, the back button is only removed in the conversation list mode for top level
236 * Enable or disable the CAB mode based on the visibility of the conversation list fragment.
282 // If conversation list is not visible, then the user cannot see the CAB mode, so exit it.
284 // while viewing a conversation don't change the viewmode: the mode stays
288 // When a mode chang
[all...]
H A DOnePaneController.java106 * @return true if user is in conversation list mode, viewing the default inbox.
146 // When entering conversation list mode, hide and clean up any currently visible
151 // When we step away from the conversation mode, we don't have a current conversation
312 final int mode = mViewMode.getMode();
314 if (mode == ViewMode.SEARCH_RESULTS_LIST) {
350 * mode and returns the user to whatever view they were in when they began search.
355 final int mode = mViewMode.getMode();
356 if (mode == ViewMode.SEARCH_RESULTS_LIST) {
359 } else if (mode == ViewMode.CONVERSATION_LIST
360 || mode
[all...]
H A DSearchMailActionBarView.java88 // Remove focus from the search action menu in search results mode so
116 // When we are in the search activity, back closes the search action mode. At that point
118 final int mode = getMode();
119 if (mode == ViewMode.SEARCH_RESULTS_LIST
121 && mode == ViewMode.SEARCH_RESULTS_CONVERSATION)) {
127 // The return value here is whether we want to collapse the action mode. Since we want to
128 // collapse the action mode, we should return true.
/packages/apps/Browser/src/com/android/browser/
H A DUrlSelectionActionMode.java34 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 DActivityController.java56 void onActionModeStarted(ActionMode mode); argument
58 void onActionModeFinished(ActionMode mode); argument
/packages/services/Telephony/common/src/com/android/services/telephony/common/
H A DAudioMode.java32 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/services/Telephony/src/com/android/phone/
H A DAudioRouter.java67 * Return the current audio mode.
88 * Add a listener to audio mode changes.
110 * Sets the audio mode to the mode that is passed in.
112 public void setAudioMode(int mode) { argument
113 logD("setAudioMode " + AudioMode.toString(mode));
117 mode = selectWiredOrEarpiece(mode);
119 // If mode is unsupported, do nothing.
120 if ((calculateSupportedModes() | mode)
248 selectWiredOrEarpiece(int mode) argument
324 updateAudioModeTo(int mode) argument
[all...]
/packages/apps/UnifiedEmail/tests/src/com/android/mail/ui/
H A DViewModeTests.java30 * 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 DLocationSettingsBase.java39 /** Broadcast intent action when the location mode is about to change. */
71 /** Called when location mode has changed. */
72 public abstract void onModeChanged(int mode, boolean restricted); argument
79 public void setLocationMode(int mode) { argument
81 // Location toggling disabled by user restriction. Read the current location mode to
84 Log.i(TAG, "Restricted user, not setting location mode");
86 mode = Settings.Secure.getInt(getContentResolver(), Settings.Secure.LOCATION_MODE,
89 onModeChanged(mode, true);
95 intent.putExtra(NEW_MODE_KEY, mode);
97 Settings.Secure.putInt(getContentResolver(), Settings.Secure.LOCATION_MODE, mode);
[all...]
H A DLocationMode.java25 * 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 DControlPanelLayout.java28 * 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 DThreadPool.java51 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 DUserDictionaryAddWordActivity.java46 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 DFileContentProvider.java50 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 DInputMethodSubtypeCompatUtils.java26 // Note that InputMethodSubtype(int nameId, int iconId, String locale, String mode,
45 String mode, String extraValue, boolean isAuxiliary,
49 return new InputMethodSubtype(nameId, iconId, locale, mode, extraValue, isAuxiliary,
53 nameId, iconId, locale, mode, extraValue, isAuxiliary,
44 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 DMultiChoiceManager.java91 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 DProviderTestCase3.java54 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/Mms/src/com/android/mms/ui/
H A DAttachmentTypeSelectorAdapter.java43 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/Settings/src/com/android/settings/bluetooth/
H A DLocalBluetoothAdapter.java133 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 DOpenWnnEvent.java135 * 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/Nfc/nci/jni/
H A DNfcTag.cpp247 if (mTechParams [0].mode != NFC_DISCOVERY_TYPE_POLL_KOVIO)
340 if ( (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_A) ||
341 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_A_ACTIVE) ||
342 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_LISTEN_A) ||
343 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_LISTEN_A_ACTIVE) )
352 else if ( (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_B) ||
353 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_B_PRIME) ||
354 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_LISTEN_B) ||
355 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_LISTEN_B_PRIME) )
447 if ( (discovery_ntf.rf_tech_param.mode
[all...]
/packages/apps/Calculator/src/com/android/calculator2/
H A DPersist.java42 public void setDeleteMode(int mode) { argument
43 mDeleteMode = mode;
/packages/apps/Camera/jni/feature_mos/src/mosaic/
H A DPyramid.h48 static void BorderExpandOdd(PyramidShort *in, PyramidShort *out, PyramidShort *scr, int mode);
49 static int BorderExpand(PyramidShort *pyr, int nlev, int mode);
/packages/apps/Camera2/jni/feature_mos/src/mosaic/
H A DPyramid.h48 static void BorderExpandOdd(PyramidShort *in, PyramidShort *out, PyramidShort *scr, int mode);
49 static int BorderExpand(PyramidShort *pyr, int nlev, int mode);

Completed in 899 milliseconds

12345678