Searched refs:mode (Results 1 - 25 of 199) 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
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 DOnePaneController.java75 // 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/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/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/deviceinfo/
H A DUsbBackend.java92 private void setUsbFunction(int mode) { argument
93 switch (mode) {
113 public void setMode(int mode) { argument
115 int powerRole = modeToPower(mode);
116 // If we aren't using any data modes and we support host mode, then go to host mode
118 // mode because we have no choice.
119 int dataRole = (mode & MODE_DATA_MASK) == MODE_DATA_NONE
124 setUsbFunction(mode & MODE_DATA_MASK);
127 private int modeToPower(int mode) { argument
132 isModeSupported(int mode) argument
[all...]
H A DUsbModeChooserActivity.java87 private void inflateOption(final int mode, boolean selected, LinearLayout container) { argument
90 ((TextView) v.findViewById(android.R.id.title)).setText(getTitle(mode));
91 ((TextView) v.findViewById(android.R.id.summary)).setText(getSummary(mode));
97 mBackend.setMode(mode);
107 private static int getSummary(int mode) { argument
108 switch (mode) {
123 private static int getTitle(int mode) { argument
124 switch (mode) {
/packages/apps/Settings/src/com/android/settings/location/
H A DLocationSettingsBase.java37 /** 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 DLocationMode.java26 * 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 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/Settings/src/com/android/settings/notification/
H A DZenModeVoiceActivity.java40 * 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 DHttpUrlConnectionBuilder.java173 * 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 DNfcTag.cpp257 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/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;
63 args.putInt(UserDictionaryAddWordContents.EXTRA_MODE, mode);
/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/Contacts/src/com/android/contacts/editor/
H A DPhotoActionPopup.java73 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/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
H A DInputMethodSubtypeCompatUtils.java33 // 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/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/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/Email/provider_src/com/android/email/provider/
H A DUtilities.java199 * 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/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/src_pd/com/android/camera/stats/
H A DUsageStatistics.java51 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 DCalculatorText.java44 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);

Completed in 2457 milliseconds

12345678