Home
last modified time | relevance | path

Searched refs:mode (Results 1 – 25 of 212) sorted by relevance

123456789

/packages/apps/Nfc/nci/jni/
DNfcTag.cpp257 if (mTechParams [0].mode != NFC_DISCOVERY_TYPE_POLL_KOVIO) in IsSameKovio()
362 if ( (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_A) || in discoverTechnologies()
363 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_A_ACTIVE) || in discoverTechnologies()
364 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_LISTEN_A) || in discoverTechnologies()
365 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_LISTEN_A_ACTIVE) ) in discoverTechnologies()
374 else if ( (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_B) || in discoverTechnologies()
375 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_B_PRIME) || in discoverTechnologies()
376 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_LISTEN_B) || in discoverTechnologies()
377 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_LISTEN_B_PRIME) ) in discoverTechnologies()
482 if ( (discovery_ntf.rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_A) || in discoverTechnologies()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DViewMode.java194 public static boolean isListMode(final int mode) { in isListMode() argument
195 return mode == CONVERSATION_LIST || mode == SEARCH_RESULTS_LIST; in isListMode()
202 public static boolean isConversationMode(final int mode) { in isConversationMode() argument
203 return mode == CONVERSATION || mode == SEARCH_RESULTS_CONVERSATION; in isConversationMode()
210 public static boolean isSearchMode(final int mode) { in isSearchMode() argument
211 return mode == SEARCH_RESULTS_LIST || mode == SEARCH_RESULTS_CONVERSATION; in isSearchMode()
218 public static boolean isWaitingForSync(final int mode) { in isWaitingForSync() argument
219 return mode == WAITING_FOR_ACCOUNT_INITIALIZATION; in isWaitingForSync()
226 public static boolean isAdMode(final int mode) { in isAdMode() argument
227 return mode == AD; in isAdMode()
[all …]
DOnePaneController.java383 final int mode = mViewMode.getMode(); in handleBackPress() local
385 if (mode == ViewMode.SEARCH_RESULTS_LIST) { in handleBackPress()
424 final int mode = mViewMode.getMode(); in handleUpPress() local
425 if (mode == ViewMode.SEARCH_RESULTS_LIST) { in handleUpPress()
428 } else if (mode == ViewMode.CONVERSATION_LIST in handleUpPress()
429 || mode == ViewMode.WAITING_FOR_ACCOUNT_INITIALIZATION) { in handleUpPress()
438 } else if (mode == ViewMode.CONVERSATION || mode == ViewMode.SEARCH_RESULTS_CONVERSATION in handleUpPress()
439 || mode == ViewMode.AD) { in handleUpPress()
447 final int mode = mViewMode.getMode(); in transitionBackToConversationListMode() local
450 if (mode == ViewMode.SEARCH_RESULTS_CONVERSATION) { in transitionBackToConversationListMode()
[all …]
DTwoPaneController.java589 final int mode = mViewMode.getMode(); in showConversation() local
591 if (mode == ViewMode.SEARCH_RESULTS_LIST || mode == ViewMode.SEARCH_RESULTS_CONVERSATION) { in showConversation()
777 int mode = mViewMode.getMode(); in popView() local
778 if (mode == ViewMode.SEARCH_RESULTS_LIST) { in popView()
780 } else if (ViewMode.isConversationMode(mode) || mViewMode.isAdMode()) { in popView()
784 } else if (mode == ViewMode.SEARCH_RESULTS_CONVERSATION) { in popView()
793 if (mode == ViewMode.CONVERSATION_LIST && folderList != null in popView()
852 final int mode = mViewMode.getMode(); in onUndoAvailable() local
855 switch (mode) { in onUndoAvailable()
959 final int mode = mViewMode.getMode(); in shouldShowSearchMenuItem() local
[all …]
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DUsbBackend.java92 private void setUsbFunction(int mode) { in setUsbFunction() argument
93 switch (mode) { in setUsbFunction()
113 public void setMode(int mode) { in setMode() argument
115 int powerRole = modeToPower(mode); in setMode()
119 int dataRole = (mode & MODE_DATA_MASK) == MODE_DATA_NONE in setMode()
124 setUsbFunction(mode & MODE_DATA_MASK); in setMode()
127 private int modeToPower(int mode) { in modeToPower() argument
128 return (mode & MODE_POWER_MASK) == MODE_POWER_SOURCE in modeToPower()
132 public boolean isModeSupported(int mode) { in isModeSupported() argument
133 if (mRestricted && (mode & MODE_DATA_MASK) != MODE_DATA_NONE in isModeSupported()
[all …]
DUsbModeChooserActivity.java87 private void inflateOption(final int mode, boolean selected, LinearLayout container) { in inflateOption() argument
90 ((TextView) v.findViewById(android.R.id.title)).setText(getTitle(mode)); in inflateOption()
91 ((TextView) v.findViewById(android.R.id.summary)).setText(getSummary(mode)); in inflateOption()
97 mBackend.setMode(mode); in inflateOption()
107 private static int getSummary(int mode) { in getSummary() argument
108 switch (mode) { in getSummary()
123 private static int getTitle(int mode) { in getTitle() argument
124 switch (mode) { in getTitle()
/packages/apps/Gallery2/src/com/android/photos/
DMultiChoiceManager.java91 private void updateSelectedTitle(ActionMode mode) { in updateSelectedTitle() argument
93 mode.setTitle(mContext.getResources().getQuantityString( in updateSelectedTitle()
109 public void onItemCheckedStateChanged(ActionMode mode, int position, long id, in onItemCheckedStateChanged() argument
111 updateSelectedTitle(mode); in onItemCheckedStateChanged()
129 updateActionItemVisibilities(mode.getMenu(), in onItemCheckedStateChanged()
152 public boolean onCreateActionMode(ActionMode mode, Menu menu) { in onCreateActionMode() argument
154 mActionMode = mode; in onCreateActionMode()
155 MenuInflater inflater = mode.getMenuInflater(); in onCreateActionMode()
160 updateSelectedTitle(mode); in onCreateActionMode()
165 public void onDestroyActionMode(ActionMode mode) { in onDestroyActionMode() argument
[all …]
/packages/apps/Settings/src/com/android/settings/notification/
DZenModeVoiceActivity.java52 int mode = Global.ZEN_MODE_OFF; in onVoiceSettingInteraction() local
58 mode = Global.ZEN_MODE_ALARMS; in onVoiceSettingInteraction()
60 setZenModeConfig(mode, condition); in onVoiceSettingInteraction()
69 notifySuccess(getChangeSummary(mode, minutes)); in onVoiceSettingInteraction()
77 private void setZenModeConfig(int mode, Condition condition) { in setZenModeConfig() argument
79 NotificationManager.from(this).setZenMode(mode, condition.id, TAG); in setZenModeConfig()
81 NotificationManager.from(this).setZenMode(mode, null, TAG); in setZenModeConfig()
88 private CharSequence getChangeSummary(int mode, int minutes) { in getChangeSummary() argument
94 switch (mode) { in getChangeSummary()
106 if (minutes < 0 || mode == Global.ZEN_MODE_OFF) { in getChangeSummary()
/packages/apps/InCallUI/src/com/android/incallui/
DCallButtonFragment.java495 public void setAudio(int mode) { in setAudio() argument
499 if (mPrevAudioMode != mode) { in setAudio()
500 updateAudioButtonContentDescription(mode); in setAudio()
501 mPrevAudioMode = mode; in setAudio()
517 int mode = CallAudioState.ROUTE_WIRED_OR_EARPIECE; in onMenuItemClick() local
521 mode = CallAudioState.ROUTE_SPEAKER; in onMenuItemClick()
527 mode = CallAudioState.ROUTE_WIRED_OR_EARPIECE; in onMenuItemClick()
530 mode = CallAudioState.ROUTE_BLUETOOTH; in onMenuItemClick()
538 getPresenter().setAudioMode(mode); in onMenuItemClick()
695 private void updateAudioButtonContentDescription(int mode) { in updateAudioButtonContentDescription() argument
[all …]
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DOpenWnnEN.java266 private void setSymbolMode(String mode) { in setSymbolMode() argument
267 if (mode != null) { in setSymbolMode()
270 mSymbolList.setDictionary(mode); in setSymbolMode()
921 int mode = 0; in updateMetaKeyStateDisplay() local
923 mode = DefaultSoftKeyboard.HARD_KEYMODE_SHIFT_OFF_ALT_OFF; in updateMetaKeyStateDisplay()
925 mode = DefaultSoftKeyboard.HARD_KEYMODE_SHIFT_ON_ALT_OFF; in updateMetaKeyStateDisplay()
927 mode = DefaultSoftKeyboard.HARD_KEYMODE_SHIFT_LOCK_ALT_OFF; in updateMetaKeyStateDisplay()
929 mode = DefaultSoftKeyboard.HARD_KEYMODE_SHIFT_OFF_ALT_ON; in updateMetaKeyStateDisplay()
931 mode = DefaultSoftKeyboard.HARD_KEYMODE_SHIFT_OFF_ALT_LOCK; in updateMetaKeyStateDisplay()
933 mode = DefaultSoftKeyboard.HARD_KEYMODE_SHIFT_ON_ALT_ON; in updateMetaKeyStateDisplay()
[all …]
DDefaultSoftKeyboard.java400 protected Keyboard getModeChangeKeyboard(int mode) { in getModeChangeKeyboard() argument
402 … Keyboard[] kbd = mKeyboard[mCurrentLanguage][mDisplayMode][mCurrentKeyboardType][mShiftOn][mode]; in getModeChangeKeyboard()
510 int mode = -1; in processAltKey() local
515 mode = KEYMODE_EN_NUMBER; in processAltKey()
517 mode = KEYMODE_EN_ALPHABET; in processAltKey()
523 mode = KEYMODE_JA_HALF_NUMBER; in processAltKey()
525 mode = KEYMODE_JA_HALF_ALPHABET; in processAltKey()
527 mode = KEYMODE_JA_FULL_NUMBER; in processAltKey()
529 mode = KEYMODE_JA_FULL_ALPHABET; in processAltKey()
537 if (mode >= 0) { in processAltKey()
[all …]
DOpenWnnJAJP.java742 changeEngineMode(ev.mode); in onEvent()
743 if (!(ev.mode == ENGINE_MODE_SYMBOL || ev.mode == ENGINE_MODE_EISU_KANA)) { in onEvent()
2053 private void changeEngineMode(int mode) { in changeEngineMode() argument
2056 switch (mode) { in changeEngineMode()
2101 switch (mode) { in changeEngineMode()
2303 private void setDictionary(int mode) { in setDictionary() argument
2304 int target = mode; in setDictionary()
2338 switch (mode) { in setDictionary()
2341 mPrevDictionarySet = mode; in setDictionary()
2592 int mode = 0; in updateMetaKeyStateDisplay() local
[all …]
/packages/apps/Settings/src/com/android/settings/location/
DLocationSettingsBase.java86 public abstract void onModeChanged(int mode, boolean restricted); in onModeChanged() argument
93 public void setLocationMode(int mode) { in setLocationMode() argument
100 mode = Settings.Secure.getInt(getContentResolver(), Settings.Secure.LOCATION_MODE, in setLocationMode()
103 onModeChanged(mode, true); in setLocationMode()
109 intent.putExtra(NEW_MODE_KEY, mode); in setLocationMode()
111 Settings.Secure.putInt(getContentResolver(), Settings.Secure.LOCATION_MODE, mode); in setLocationMode() local
117 int mode = Settings.Secure.getInt(getContentResolver(), Settings.Secure.LOCATION_MODE, in refreshLocationMode() local
119 mCurrentMode = mode; in refreshLocationMode()
123 onModeChanged(mode, isRestricted()); in refreshLocationMode()
DLocationMode.java102 int mode = Settings.Secure.LOCATION_MODE_OFF; in onRadioButtonClicked() local
104 mode = Settings.Secure.LOCATION_MODE_HIGH_ACCURACY; in onRadioButtonClicked()
106 mode = Settings.Secure.LOCATION_MODE_BATTERY_SAVING; in onRadioButtonClicked()
108 mode = Settings.Secure.LOCATION_MODE_SENSORS_ONLY; in onRadioButtonClicked()
110 setLocationMode(mode); in onRadioButtonClicked()
114 public void onModeChanged(int mode, boolean restricted) { in onModeChanged() argument
115 switch (mode) { in onModeChanged()
132 boolean enabled = (mode != Settings.Secure.LOCATION_MODE_OFF) && !restricted; in onModeChanged()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DScrollController.java320 final public void setOperationMode(int mode) { in setOperationMode() argument
321 mOperationMode = mode; in setOperationMode()
699 final public void setFlingMode(int mode) { in setFlingMode() argument
700 this.mFlingMode = mode; in setFlingMode()
707 final public void setDragMode(int mode) { in setDragMode() argument
708 this.mDragMode = mode; in setDragMode()
715 final public void setScrollMode(int mode) { in setScrollMode() argument
716 this.mScrollMode = mode; in setScrollMode()
736 private int getMode(int mode) { in getMode() argument
737 if (mode == OPERATION_AUTO) { in getMode()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/
DIngestActivity.java127 private void updateSelectedTitle(ActionMode mode) {
129 mode.setTitle(getResources().getQuantityString(
134 public void onItemCheckedStateChanged(ActionMode mode, int position, long id,
176 updateSelectedTitle(mode);
180 public boolean onActionItemClicked(ActionMode mode, MenuItem item) {
185 public boolean onCreateActionMode(ActionMode mode, Menu menu) {
186 MenuInflater inflater = mode.getMenuInflater();
188 updateSelectedTitle(mode);
189 mActiveActionMode = mode;
196 public void onDestroyActionMode(ActionMode mode) {
[all …]
/packages/apps/Email/provider_src/com/android/email/provider/
DUtilities.java207 public static int parseMode(String mode) { in parseMode() argument
209 return ParcelFileDescriptor.parseMode(mode); in parseMode()
212 if ("r".equals(mode)) { in parseMode()
214 } else if ("w".equals(mode) || "wt".equals(mode)) { in parseMode()
218 } else if ("wa".equals(mode)) { in parseMode()
222 } else if ("rw".equals(mode)) { in parseMode()
225 } else if ("rwt".equals(mode)) { in parseMode()
230 throw new IllegalArgumentException("Bad mode '" + mode + "'"); in parseMode()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/util/
DThreadPool.java51 boolean setMode(int mode); in setMode() argument
65 public boolean setMode(int mode) { in setMode() argument
202 public boolean setMode(int mode) { in setMode() argument
209 rc = modeToCounter(mode); in setMode()
214 mMode = mode; in setMode()
220 private ResourceCounter modeToCounter(int mode) { in modeToCounter() argument
221 if (mode == MODE_CPU) { in modeToCounter()
223 } else if (mode == MODE_NETWORK) { in modeToCounter()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothDiscoverableEnabler.java79 int mode = intent.getIntExtra(BluetoothAdapter.EXTRA_SCAN_MODE,
81 if (mode != BluetoothAdapter.ERROR) {
82 handleModeChanged(mode);
255 void handleModeChanged(int mode) { in handleModeChanged() argument
256 Log.d(TAG, "handleModeChanged(): mode = " + mode); in handleModeChanged()
257 if (mode == BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) { in handleModeChanged()
275 int mode = mLocalAdapter.getScanMode(); in updateCountdownSummary() local
276 if (mode != BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) { in updateCountdownSummary()
/packages/apps/ExactCalculator/src/com/android/calculator2/
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();
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/services/Telephony/common/src/com/android/services/telephony/common/
DAudioMode.java32 public static String toString(int mode) { in toString() argument
33 if ((mode & ~ALL_MODES) != 0x0) { in toString()
38 if ((mode & EARPIECE) == EARPIECE) { in toString()
41 if ((mode & BLUETOOTH) == BLUETOOTH) { in toString()
44 if ((mode & WIRED_HEADSET) == WIRED_HEADSET) { in toString()
47 if ((mode & SPEAKER) == SPEAKER) { in toString()
/packages/apps/Browser/src/com/android/browser/
DUrlSelectionActionMode.java34 public boolean onCreateActionMode(ActionMode mode, Menu menu) { in onCreateActionMode() argument
35 mode.getMenuInflater().inflate(R.menu.url_selection, menu); in onCreateActionMode()
40 public boolean onActionItemClicked(ActionMode mode, MenuItem item) { in onActionItemClicked() argument
44 mode.finish(); in onActionItemClicked()
53 public void onDestroyActionMode(ActionMode mode) { in onDestroyActionMode() argument
57 public boolean onPrepareActionMode(ActionMode mode, Menu menu) { in onPrepareActionMode() argument
/packages/apps/UnifiedEmail/tests/src/com/android/mail/ui/
DViewModeTests.java54 public void onViewModeChanged(int mode) { in testListenerCalledAfterRegistering() argument
59 ViewMode mode = new ViewMode(); in testListenerCalledAfterRegistering() local
61 mode.addListener(ears); in testListenerCalledAfterRegistering()
62 mode.enterConversationListMode(); in testListenerCalledAfterRegistering()
64 mode.removeListener(ears); in testListenerCalledAfterRegistering()
65 mode.enterConversationMode(); in testListenerCalledAfterRegistering()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/network/
DHttpUrlConnectionBuilder.java183 public HttpUrlConnectionBuilder setMode(int mode) { in setMode() argument
184 if (mode != MODE_UPLOAD_ONLY in setMode()
185 && mode != MODE_DOWNLOAD_ONLY in setMode()
186 && mode != MODE_BI_DIRECTIONAL) { in setMode()
187 throw new IllegalArgumentException("Invalid mode specified:" + mode); in setMode()
189 mMode = mode; in setMode()
/packages/apps/Launcher3/src/com/android/launcher3/
DCellLayout.java2048 View dragView, int delay, int mode) { in beginOrAdjustReorderPreviewAnimations() argument
2054 boolean skip = mode == ReorderPreviewAnimation.MODE_HINT && solution.intersectingViews in beginOrAdjustReorderPreviewAnimations()
2059 ReorderPreviewAnimation rha = new ReorderPreviewAnimation(child, mode, lp.cellX, in beginOrAdjustReorderPreviewAnimations()
2076 int mode; field in CellLayout.ReorderPreviewAnimation
2086 public ReorderPreviewAnimation(View child, int mode, int cellX0, int cellY0, int cellX1, in ReorderPreviewAnimation() argument
2098 int dir = mode == MODE_HINT ? -1 : 1; in ReorderPreviewAnimation()
2113 this.mode = mode; in ReorderPreviewAnimation()
2138 va.setDuration(mode == MODE_HINT ? HINT_DURATION : PREVIEW_DURATION); in animate()
2144 float r1 = (mode == MODE_HINT && repeating) ? 1.0f : r; in animate()
2385 View dragView, int[] result, int resultSpan[], int mode) { in performReorder() argument
[all …]

123456789