/packages/apps/Settings/src/com/android/settings/bluetooth/ |
H A D | BluetoothDiscoverableEnabler.java | 80 int mode = intent.getIntExtra(BluetoothAdapter.EXTRA_SCAN_MODE, 82 if (mode != BluetoothAdapter.ERROR) { 83 handleModeChanged(mode); 256 void handleModeChanged(int mode) { argument 257 Log.d(TAG, "handleModeChanged(): mode = " + mode); 258 if (mode == BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) { 276 int mode = mLocalAdapter.getScanMode(); 277 if (mode != BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) { 285 // We're still in discoverable mode, bu [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | VoicemailTable.java | 45 public ParcelFileDescriptor openFile(UriData uriData, String mode) argument 63 public ParcelFileDescriptor openDataFile(UriData uriData, String mode) argument
|
H A D | ProfileProvider.java | 112 public AssetFileDescriptor openAssetFile(Uri uri, String mode) throws FileNotFoundException { argument 113 if (mode != null && mode.contains("w")) { 118 return mDelegate.openAssetFileLocal(uri, mode);
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
H A D | TwoPaneController.java | 175 // 2-pane layout is the main listener of view mode changes, and issues secondary 218 // It's possible that we are not in conversation list mode 276 // In conversation mode, if the conversation list is not visible, then the user cannot 277 // see the selected conversations. Disable the CAB mode while leaving the selected set 280 // mode if any conversations are selected. 324 * Enable or disable the CAB mode based on the visibility of the conversation list fragment. 370 // If conversation list is not visible, then the user cannot see the CAB mode, so exit it. 372 // while viewing a conversation don't change the viewmode: the mode stays 381 // When a mode change is required, wait for onConversationVisibilityChanged(), the signal 382 // that the mode chang [all...] |
/packages/apps/Contacts/src/com/android/contacts/editor/ |
H A D | PhotoActionPopup.java | 76 final Listener listener, int mode) { 77 // Build choices, depending on the current mode. We assume this Dialog is never called 81 if ((mode & Flags.ALLOW_PRIMARY) > 0) { 86 if ((mode & Flags.REMOVE_PHOTO) > 0) { 91 if ((mode & Flags.TAKE_OR_PICK_PHOTO) > 0) { 92 boolean replace = (mode & Flags.TAKE_OR_PICK_PHOTO_REPLACE_WORDING) > 0; 75 createPopupMenu(Context context, View anchorView, final Listener listener, int mode) argument
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
H A D | MenuHelper.java | 50 public static void addSwitchModeMenuItem(Menu menu, int mode, argument 53 switch(mode) { 67 // incorrect mode, do nothing. 99 public static void gotoMode(int mode, Activity activity) { argument 101 switch (mode) { 115 Log.e(TAG, "unknown camera mode:" + mode);
|
/packages/apps/Mms/src/com/android/mms/ |
H A D | TempFileProvider.java | 63 private ParcelFileDescriptor getTempStoreFd(String mode) { argument 79 if (mode.equals("r")) { 100 public ParcelFileDescriptor openFile(Uri uri, String mode) throws FileNotFoundException { argument 108 Log.d(TAG, "openFile: uri=" + uri + ", mode=" + mode); 113 fd = getTempStoreFd(mode);
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/ |
H A D | ContactsListFragment.java | 64 public ContactsListFragment(int mode) { argument 66 mMode = mode; 104 public void setMode(int mode) { argument 105 boolean reload = mode != mMode; 106 mMode = mode;
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
H A D | MiscFilesHandler.java | 84 public boolean onCreateActionMode(ActionMode mode, Menu menu) { argument 90 public boolean onPrepareActionMode(ActionMode mode, Menu menu) { argument 94 public boolean onActionItemClicked(ActionMode mode, MenuItem item) { argument 128 mode.finish(); 137 onItemCheckedStateChanged(mode, 1, 0, true); 160 public void onDestroyActionMode(ActionMode mode) { argument 164 public void onItemCheckedStateChanged(ActionMode mode, int position, long id, argument 168 mode.setTitle(String.format(mNumSelectedFormat, numChecked, mAdapter.getCount())); 181 mode.setSubtitle(String.format(mNumBytesSelectedFormat,
|
/packages/apps/Settings/src/com/android/settings/notification/ |
H A D | ZenModeDowntimeDaysSelection.java | 44 public ZenModeDowntimeDaysSelection(Context context, String mode) { argument 50 final int[] days = ZenModeConfig.tryParseDays(mode); 93 protected void onChanged(String mode) { argument
|
/packages/apps/Calculator/src/com/android/calculator2/ |
H A D | CalculatorEditText.java | 41 public boolean onActionItemClicked(ActionMode mode, MenuItem item) { 46 public boolean onCreateActionMode(ActionMode mode, Menu menu) { 47 // Prevents the selection action mode on double tap. 52 public void onDestroyActionMode(ActionMode mode) { 56 public boolean onPrepareActionMode(ActionMode mode, Menu menu) {
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
H A D | BaseVoicemailProviderTest.java | 98 public File getDir(String name, int mode) { 147 public File getDir(String name, int mode); argument 165 public File getDir(String name, int mode) { 166 return mDelegate.getDir(name, mode);
|
/packages/apps/Browser/src/com/android/browser/stub/ |
H A D | NullController.java | 111 public void onActionModeStarted(ActionMode mode) { argument 115 public void onActionModeFinished(ActionMode mode) { argument
|
/packages/apps/Browser/src/com/android/browser/ |
H A D | BrowserActivity.java | 255 public void onActionModeStarted(ActionMode mode) { argument 256 super.onActionModeStarted(mode); 257 mController.onActionModeStarted(mode); 261 public void onActionModeFinished(ActionMode mode) { argument 262 super.onActionModeFinished(mode); 263 mController.onActionModeFinished(mode);
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
H A D | BatterySaverSettings.java | 126 if (DEBUG) Log.d(TAG, "Stopping low power mode from settings"); 131 private void trySetPowerSaveMode(boolean mode) { argument 132 if (!mPowerManager.setPowerSaveMode(mode)) { 133 if (DEBUG) Log.d(TAG, "Setting mode failed, fallback to current value"); 139 final boolean mode = mPowerManager.isPowerSaveMode(); 140 if (DEBUG) Log.d(TAG, "updateSwitch: isChecked=" + mSwitch.isChecked() + " mode=" + mode); 141 if (mode == mSwitch.isChecked()) return; 147 mSwitch.setChecked(mode); 166 if (DEBUG) Log.d(TAG, "Starting low power mode fro [all...] |
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
H A D | OpenWnnEN.java | 103 /** Auto caps mode */ 112 /** Whether tutorial mode or not */ 262 * Set the mode of the symbol list. 264 * @param mode {@code SymbolList.SYMBOL_ENGLISH} or {@code null}. 266 private void setSymbolMode(String mode) { argument 267 if (mode != null) { 270 mSymbolList.setDictionary(mode); 324 /* auto caps mode */ 921 int mode = 0; 923 mode [all...] |
H A D | DefaultSoftKeyboard.java | 177 * Keyboard[language][portrait/landscape][keyboard type][shift off/on][key-mode] 194 /** Display mode (Portrait) */ 196 /** Display mode (Landscape) */ 214 /** Current key-mode */ 218 /** English key-mode (alphabet) */ 220 /** English key-mode (number) */ 222 /** English key-mode (phone number) */ 226 /** Japanese key-mode (Full-width Hiragana) */ 228 /** Japanese key-mode (Full-width alphabet) */ 230 /** Japanese key-mode (Ful 400 getModeChangeKeyboard(int mode) argument 637 updateIndicator(int mode) argument [all...] |
/packages/apps/InCallUI/src/com/android/incallui/ |
H A D | CallButtonFragment.java | 72 // TODO: find a cleaner way to include audio mode provider than having a singleton instance. 366 public void setAudio(int mode) { argument 370 if (mPrevAudioMode != mode) { 373 switch (mode) { 391 mPrevAudioMode = mode; 407 int mode = AudioState.ROUTE_WIRED_OR_EARPIECE; 411 mode = AudioState.ROUTE_SPEAKER; 417 mode = AudioState.ROUTE_WIRED_OR_EARPIECE; 420 mode = AudioState.ROUTE_BLUETOOTH; 428 getPresenter().setAudioMode(mode); 623 isSupported(int mode) argument 627 isAudio(int mode) argument [all...] |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
H A D | ScrollController.java | 119 * In {@link ScrollController#OPERATION_TOUCH} mode:<br> 124 * In {@link ScrollController#OPERATION_NOTOUCH} mode:<br> 320 final public void setOperationMode(int mode) { argument 321 mOperationMode = mode; 629 /** fling operation mode */ 632 /** drag operation mode */ 635 /** scroll operation mode (for DPAD) */ 699 final public void setFlingMode(int mode) { argument 700 this.mFlingMode = mode; 707 final public void setDragMode(int mode) { argument 715 setScrollMode(int mode) argument 736 getMode(int mode) argument [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ |
H A D | IngestActivity.java | 127 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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
H A D | CapsModeUtils.java | 34 * Apply an auto-caps mode to a string. 36 * This intentionally does NOT apply manual caps mode. It only changes the capitalization if 37 * the mode is one of the auto-caps modes. 39 * @param capitalizeMode The mode in which to capitalize. 55 * Return whether a constant represents an auto-caps mode (either auto-shift or auto-shift-lock) 56 * @param mode The mode to test for 57 * @return true if this represents an auto-caps mode, false otherwise 59 public static boolean isAutoCapsMode(final int mode) { argument 60 return WordComposer.CAPS_MODE_AUTO_SHIFTED == mode [all...] |
/packages/services/Telephony/src/com/android/phone/ |
H A D | InCallScreenShowActivation.java | 85 // "interactive" mode by directly launching the InCallScreen. 87 // TODO: Renable interactive mode for device provisioning. 93 // enable/disable "interactive mode", regardless of whether 167 * 1. Does the device require a setup wizard (ro.setupwizard.mode == (REQUIRED|OPTIONAL)) 177 String mode = SystemProperties.get("ro.setupwizard.mode", "REQUIRED"); 178 boolean runningSetupWizard = "REQUIRED".equals(mode) || "OPTIONAL".equals(mode);
|
H A D | OtaStartupReceiver.java | 89 // - STATE_POWER_OFF // Radio is explicitly powered off (airplane mode) 175 String mode = SystemProperties.get("ro.setupwizard.mode", "REQUIRED"); 176 boolean runningSetupWizard = "REQUIRED".equals(mode) || "OPTIONAL".equals(mode);
|
/packages/apps/Camera/jni/feature_mos/src/mosaic/ |
H A D | Pyramid.cpp | 149 int mode) 177 (mode * ((6 * t1 + 180 (mode * ((t1 + t2 + 1) >> 1))); 186 int PyramidShort::BorderExpand(PyramidShort *pyr, int nlev, int mode) argument 192 if (mode > 0) { 200 else if (mode < 0) { 148 BorderExpandOdd(PyramidShort *in, PyramidShort *out, PyramidShort *scr, int mode) argument
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
H A D | Pyramid.cpp | 149 int mode) 171 (mode * ((6 * scr->ptr[j][i] + 174 (mode * ((scr->ptr[j][i] + scr->ptr[j][i+1] + 1) >> 1))); 180 int PyramidShort::BorderExpand(PyramidShort *pyr, int nlev, int mode) argument 186 if (mode > 0) { 194 else if (mode < 0) { 148 BorderExpandOdd(PyramidShort *in, PyramidShort *out, PyramidShort *scr, int mode) argument
|