/packages/services/Telephony/src/com/android/phone/ |
D | AudioRouter.java | 112 public void setAudioMode(int mode) { in setAudioMode() argument 113 logD("setAudioMode " + AudioMode.toString(mode)); in setAudioMode() 117 mode = selectWiredOrEarpiece(mode); in setAudioMode() 120 if ((calculateSupportedModes() | mode) == 0) { in setAudioMode() 121 Log.wtf(LOG_TAG, "Asking to set to a mode that is unsupported: " + mode); in setAudioMode() 125 if (AudioMode.SPEAKER == mode) { in setAudioMode() 129 } else if (AudioMode.BLUETOOTH == mode) { in setAudioMode() 149 } else if (AudioMode.EARPIECE == mode || AudioMode.WIRED_HEADSET == mode) { in setAudioMode() 158 mode = calculateModeFromCurrentState(); in setAudioMode() 160 "Resetting mode to " + AudioMode.toString(mode) + "."); in setAudioMode() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
D | ViewMode.java | 193 public static boolean isListMode(final int mode) { in isListMode() argument 194 return mode == CONVERSATION_LIST || mode == SEARCH_RESULTS_LIST; in isListMode() 201 public static boolean isConversationMode(final int mode) { in isConversationMode() argument 202 return mode == CONVERSATION || mode == SEARCH_RESULTS_CONVERSATION; in isConversationMode() 205 public static boolean isSearchMode(final int mode) { in isSearchMode() argument 206 return mode == SEARCH_RESULTS_LIST || mode == SEARCH_RESULTS_CONVERSATION; in isSearchMode() 213 public static boolean isWaitingForSync(final int mode) { in isWaitingForSync() argument 214 return mode == WAITING_FOR_ACCOUNT_INITIALIZATION; in isWaitingForSync() 221 public static boolean isAdMode(final int mode) { in isAdMode() argument 222 return mode == AD; in isAdMode() [all …]
|
D | TwoPaneController.java | 292 final int mode = mViewMode.getMode(); in showConversation() local 293 LogUtils.i(LOG_TAG, "IN TPC.showConv, oldMode=%s conv=%s", mode, mConversationToShow); in showConversation() 294 if (mode == ViewMode.SEARCH_RESULTS_LIST || mode == ViewMode.SEARCH_RESULTS_CONVERSATION) { in showConversation() 365 int mode = mViewMode.getMode(); in handleUpPress() local 366 if (mode == ViewMode.CONVERSATION || mViewMode.isAdMode()) { in handleUpPress() 368 } else if (mode == ViewMode.SEARCH_RESULTS_CONVERSATION) { in handleUpPress() 376 } else if (mode == ViewMode.SEARCH_RESULTS_LIST) { in handleUpPress() 378 } else if (mode == ViewMode.CONVERSATION_LIST in handleUpPress() 379 || mode == ViewMode.WAITING_FOR_ACCOUNT_INITIALIZATION) { in handleUpPress() 409 int mode = mViewMode.getMode(); in popView() local [all …]
|
D | OnePaneController.java | 312 final int mode = mViewMode.getMode(); in handleBackPress() local 314 if (mode == ViewMode.SEARCH_RESULTS_LIST) { in handleBackPress() 355 final int mode = mViewMode.getMode(); in handleUpPress() local 356 if (mode == ViewMode.SEARCH_RESULTS_LIST) { in handleUpPress() 359 } else if (mode == ViewMode.CONVERSATION_LIST in handleUpPress() 360 || mode == ViewMode.WAITING_FOR_ACCOUNT_INITIALIZATION) { in handleUpPress() 369 } else if (mode == ViewMode.CONVERSATION || mode == ViewMode.SEARCH_RESULTS_CONVERSATION in handleUpPress() 370 || mode == ViewMode.AD) { in handleUpPress() 378 final int mode = mViewMode.getMode(); in transitionBackToConversationListMode() local 381 if (mode == ViewMode.SEARCH_RESULTS_CONVERSATION) { in transitionBackToConversationListMode() [all …]
|
/packages/apps/Nfc/nci/jni/ |
D | NfcTag.cpp | 247 if (mTechParams [0].mode != NFC_DISCOVERY_TYPE_POLL_KOVIO) in IsSameKovio() 340 if ( (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_A) || in discoverTechnologies() 341 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_A_ACTIVE) || in discoverTechnologies() 342 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_LISTEN_A) || in discoverTechnologies() 343 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_LISTEN_A_ACTIVE) ) in discoverTechnologies() 352 else if ( (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_B) || in discoverTechnologies() 353 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_B_PRIME) || in discoverTechnologies() 354 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_LISTEN_B) || in discoverTechnologies() 355 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_LISTEN_B_PRIME) ) in discoverTechnologies() 447 if ( (discovery_ntf.rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_A) || in discoverTechnologies() [all …]
|
/packages/apps/Gallery2/src/com/android/photos/ |
D | MultiChoiceManager.java | 91 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/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
D | OpenWnnEN.java | 266 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 …]
|
D | DefaultSoftKeyboard.java | 400 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 …]
|
D | OpenWnnJAJP.java | 742 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/ |
D | LocationSettingsBase.java | 72 public abstract void onModeChanged(int mode, boolean restricted); in onModeChanged() argument 79 public void setLocationMode(int mode) { in setLocationMode() argument 86 mode = Settings.Secure.getInt(getContentResolver(), Settings.Secure.LOCATION_MODE, in setLocationMode() 89 onModeChanged(mode, true); in setLocationMode() 95 intent.putExtra(NEW_MODE_KEY, mode); in setLocationMode() 97 Settings.Secure.putInt(getContentResolver(), Settings.Secure.LOCATION_MODE, mode); in setLocationMode() local 103 int mode = Settings.Secure.getInt(getContentResolver(), Settings.Secure.LOCATION_MODE, in refreshLocationMode() local 105 mCurrentMode = mode; in refreshLocationMode() 106 onModeChanged(mode, isRestricted()); in refreshLocationMode()
|
D | LocationMode.java | 96 int mode = Settings.Secure.LOCATION_MODE_OFF; in onRadioButtonClicked() local 98 mode = Settings.Secure.LOCATION_MODE_HIGH_ACCURACY; in onRadioButtonClicked() 100 mode = Settings.Secure.LOCATION_MODE_BATTERY_SAVING; in onRadioButtonClicked() 102 mode = Settings.Secure.LOCATION_MODE_SENSORS_ONLY; in onRadioButtonClicked() 104 setLocationMode(mode); in onRadioButtonClicked() 108 public void onModeChanged(int mode, boolean restricted) { in onModeChanged() argument 109 switch (mode) { in onModeChanged() 126 boolean enabled = (mode != Settings.Secure.LOCATION_MODE_OFF) && !restricted; in onModeChanged()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ |
D | IngestActivity.java | 118 private void updateSelectedTitle(ActionMode mode) { 120 mode.setTitle(getResources().getQuantityString( 125 public void onItemCheckedStateChanged(ActionMode mode, int position, long id, 163 updateSelectedTitle(mode); 167 public boolean onActionItemClicked(ActionMode mode, MenuItem item) { 172 public boolean onCreateActionMode(ActionMode mode, Menu menu) { 173 MenuInflater inflater = mode.getMenuInflater(); 175 updateSelectedTitle(mode); 176 mActiveActionMode = mode; 183 public void onDestroyActionMode(ActionMode mode) { [all …]
|
/packages/apps/InCallUI/src/com/android/incallui/ |
D | CallButtonFragment.java | 258 public void setAudio(int mode) { in setAudio() argument 275 int mode = AudioMode.WIRED_OR_EARPIECE; in onMenuItemClick() local 279 mode = AudioMode.SPEAKER; in onMenuItemClick() 285 mode = AudioMode.WIRED_OR_EARPIECE; in onMenuItemClick() 288 mode = AudioMode.BLUETOOTH; in onMenuItemClick() 296 getPresenter().setAudioMode(mode); in onMenuItemClick() 498 private boolean isSupported(int mode) { in isSupported() argument 499 return (mode == (getPresenter().getSupportedAudio() & mode)); in isSupported() 502 private boolean isAudio(int mode) { in isAudio() argument 503 return (mode == getPresenter().getAudioMode()); in isAudio()
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/util/ |
D | ThreadPool.java | 51 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/deviceinfo/ |
D | MiscFilesHandler.java | 84 public boolean onCreateActionMode(ActionMode mode, Menu menu) { in onCreateActionMode() argument 90 public boolean onPrepareActionMode(ActionMode mode, Menu menu) { in onPrepareActionMode() argument 94 public boolean onActionItemClicked(ActionMode mode, MenuItem item) { in onActionItemClicked() argument 128 mode.finish(); in onActionItemClicked() 137 onItemCheckedStateChanged(mode, 1, 0, true); in onActionItemClicked() 160 public void onDestroyActionMode(ActionMode mode) { in onDestroyActionMode() argument 164 public void onItemCheckedStateChanged(ActionMode mode, int position, long id, in onItemCheckedStateChanged() argument 168 mode.setTitle(String.format(mNumSelectedFormat, numChecked, mAdapter.getCount())); in onItemCheckedStateChanged() 181 mode.setSubtitle(String.format(mNumBytesSelectedFormat, in onItemCheckedStateChanged()
|
/packages/providers/DownloadProvider/ui/src/com/android/providers/downloads/ui/ |
D | DownloadList.java | 288 @Override public void onDestroyActionMode(ActionMode mode) { in onDestroyActionMode() argument 294 public boolean onPrepareActionMode(ActionMode mode, Menu menu) { in onPrepareActionMode() argument 299 public boolean onCreateActionMode(ActionMode mode, Menu menu) { in onCreateActionMode() argument 304 mDownloadList.mActionMode = mode; in onCreateActionMode() 309 public boolean onActionItemClicked(ActionMode mode, MenuItem item) { in onActionItemClicked() argument 328 onItemCheckedStateChanged(mode, position, 0, false); in onActionItemClicked() 333 onItemCheckedStateChanged(mode, 1, 0, false); in onActionItemClicked() 343 public void onItemCheckedStateChanged(ActionMode mode, int position, long id, in onItemCheckedStateChanged() argument 356 mDownloadList.setActionModeTitle(mode); in onItemCheckedStateChanged() 360 void setActionModeTitle(ActionMode mode) { in setActionModeTitle() argument [all …]
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | BluetoothDiscoverableEnabler.java | 80 int mode = intent.getIntExtra(BluetoothAdapter.EXTRA_SCAN_MODE, 82 if (mode != BluetoothAdapter.ERROR) { 83 handleModeChanged(mode); 250 void handleModeChanged(int mode) { in handleModeChanged() argument 251 Log.d(TAG, "handleModeChanged(): mode = " + mode); in handleModeChanged() 252 if (mode == BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) { in handleModeChanged() 270 int mode = mLocalAdapter.getScanMode(); in updateCountdownSummary() local 271 if (mode != BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) { in updateCountdownSummary()
|
/packages/apps/Browser/src/com/android/browser/ |
D | UrlSelectionActionMode.java | 34 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
|
D | BrowserActivity.java | 255 public void onActionModeStarted(ActionMode mode) { in onActionModeStarted() argument 256 super.onActionModeStarted(mode); in onActionModeStarted() 257 mController.onActionModeStarted(mode); in onActionModeStarted() 261 public void onActionModeFinished(ActionMode mode) { in onActionModeFinished() argument 262 super.onActionModeFinished(mode); in onActionModeFinished() 263 mController.onActionModeFinished(mode); in onActionModeFinished()
|
/packages/services/Telephony/common/src/com/android/services/telephony/common/ |
D | AudioMode.java | 32 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/UnifiedEmail/tests/src/com/android/mail/ui/ |
D | ViewModeTests.java | 54 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/apps/Launcher3/src/com/android/launcher3/ |
D | CellLayout.java | 2256 View dragView, int delay, int mode) { in beginOrAdjustReorderPreviewAnimations() argument 2262 boolean skip = mode == ReorderPreviewAnimation.MODE_HINT && solution.intersectingViews in beginOrAdjustReorderPreviewAnimations() 2267 ReorderPreviewAnimation rha = new ReorderPreviewAnimation(child, mode, lp.cellX, in beginOrAdjustReorderPreviewAnimations() 2284 int mode; field in CellLayout.ReorderPreviewAnimation 2294 public ReorderPreviewAnimation(View child, int mode, int cellX0, int cellY0, int cellX1, in ReorderPreviewAnimation() argument 2306 int dir = mode == MODE_HINT ? -1 : 1; in ReorderPreviewAnimation() 2321 this.mode = mode; in ReorderPreviewAnimation() 2346 va.setDuration(mode == MODE_HINT ? HINT_DURATION : PREVIEW_DURATION); in animate() 2352 float r1 = (mode == MODE_HINT && repeating) ? 1.0f : r; in animate() 2593 View dragView, int[] result, int resultSpan[], int mode) { in performReorder() argument [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
D | ConversationItemViewCoordinates.java | 620 public static int getSendersLength(Context context, int mode, boolean hasAttachments) { in getSendersLength() argument 623 return res.getIntArray(R.array.senders_with_attachment_lengths)[mode]; in getSendersLength() 625 return res.getIntArray(R.array.senders_lengths)[mode]; in getSendersLength() 647 public static boolean displaySendersInline(int mode) { in displaySendersInline() argument 648 switch (mode) { in displaySendersInline() 654 throw new IllegalArgumentException("Unknown conversation header view mode " + mode); in displaySendersInline() 692 public static boolean isWideMode(int mode) { in isWideMode() argument 693 return mode == WIDE_MODE; in isWideMode()
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/ |
D | DefaultSoftKeyboardJAJP.java | 391 int mode = OpenWnnEvent.Mode.DIRECT; in changeKeyMode() local 396 mode = OpenWnnEvent.Mode.DEFAULT; in changeKeyMode() 402 mode = OpenWnnEvent.Mode.NO_LV1_CONV; in changeKeyMode() 405 mode = OpenWnnEvent.Mode.DIRECT; in changeKeyMode() 411 mode = OpenWnnEvent.Mode.DIRECT; in changeKeyMode() 417 mode = OpenWnnEvent.Mode.DIRECT; in changeKeyMode() 423 mode = OpenWnnJAJP.ENGINE_MODE_FULL_KATAKANA; in changeKeyMode() 428 mode = OpenWnnEvent.Mode.DIRECT; in changeKeyMode() 433 mode = OpenWnnJAJP.ENGINE_MODE_HALF_KATAKANA; in changeKeyMode() 442 mWnn.onEvent(new OpenWnnEvent(OpenWnnEvent.CHANGE_MODE, mode)); in changeKeyMode() [all …]
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
D | ControlPanelLayout.java | 44 int mode, longSideSize, shortSideSize, specSize; in onMeasure() local 50 mode = MeasureSpec.getMode(widthSpec); in onMeasure() 55 mode = MeasureSpec.getMode(heightSpec); in onMeasure() 61 if (widthSpecSize > 0 && heightSpecSize > 0 && mode == MeasureSpec.AT_MOST) { in onMeasure() 76 if (mode == MeasureSpec.AT_MOST && measuredSize > specSize) { in onMeasure()
|