Home
last modified time | relevance | path

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

12345678910>>...15

/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 …]
/packages/apps/Nfc/nci/jni/
DNfcTag.cpp236 if (mTechParams[0].mode != NFC_DISCOVERY_TYPE_POLL_KOVIO) return false; in IsSameKovio()
338 if ((rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_A) || in discoverTechnologies()
339 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_A_ACTIVE) || in discoverTechnologies()
340 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_LISTEN_A) || in discoverTechnologies()
341 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_LISTEN_A_ACTIVE)) { in discoverTechnologies()
350 } else if ((rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_B) || in discoverTechnologies()
351 (rfDetail.rf_tech_param.mode == in discoverTechnologies()
353 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_LISTEN_B) || in discoverTechnologies()
354 (rfDetail.rf_tech_param.mode == in discoverTechnologies()
457 if ((discovery_ntf.rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_A) || in discoverTechnologies()
[all …]
/packages/services/Car/tests/usb/AoapHostApp/src/com/google/android/car/usb/aoap/host/
DUsbAoapHostActivity.java92 private String getTestModeString(int mode) { in getTestModeString() argument
93 if (mode == SpeedMeasurementController.TEST_MODE_SYNC) { in getTestModeString()
95 } else if (mode == SpeedMeasurementController.TEST_MODE_ASYNC) { in getTestModeString()
98 return "Unknown mode: " + mode; in getTestModeString()
113 public void testStarted(int mode, int bufferSize) { in testStarted() argument
114 addLog("Starting " + getTestModeString(mode) + " mode test with buffer size " + bufferSize in testStarted()
119 public void testFinished(int mode, int bufferSize) { in testFinished() argument
120 addLog("Completed " + getTestModeString(mode) + " mode test with buffer size " + bufferSize in testFinished()
125 public void testResult(int mode, String update) { in testResult() argument
126 Log.i(TAG, "Test result " + mode + " update: " + update); in testResult()
[all …]
/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowAppOpsManager.java41 protected void setMode(int code, int uid, String packageName, int mode) { in setMode() argument
43 mOpToKeyToMode.put(code, key, mode); in setMode()
48 Integer mode = mOpToKeyToMode.get(code, new InternalKey(uid, packageName)); in getMode() local
49 return mode == null ? AppOpsManager.opToDefaultMode(code) : mode; in getMode()
65 Integer mode = keyToModeMap.get(key); in getPackagesForOps() local
66 if (mode == null) { in getPackagesForOps()
67 mode = AppOpsManager.opToDefaultMode(op); in getPackagesForOps()
69 OpEntry opEntry = new OpEntry(op, mode); in getPackagesForOps()
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DNavigationModeSwitchRule.java66 Mode mode() default ALL; in mode() method
79 Mode mode = description.getAnnotation(NavigationModeSwitch.class).mode(); in apply() local
95 if (mode == ZERO_BUTTON || mode == ALL) { in apply()
98 if (mode == TWO_BUTTON || mode == ALL) { in apply()
101 if (mode == THREE_BUTTON || mode == ALL) { in apply()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterysaver/
DBatterySaverScheduleRadioButtonsController.java56 final int mode = Settings.Global.getInt(resolver, Global.AUTOMATIC_POWER_SAVE_MODE, in getDefaultKey() local
60 if (mode == PowerManager.POWER_SAVE_MODE_TRIGGER_PERCENTAGE) { in getDefaultKey()
77 int mode = PowerManager.POWER_SAVE_MODE_TRIGGER_PERCENTAGE; in setDefaultKey() local
92 mode = PowerManager.POWER_SAVE_MODE_TRIGGER_DYNAMIC; in setDefaultKey()
106 mode = PowerManager.POWER_SAVE_MODE_TRIGGER_PERCENTAGE; in setDefaultKey()
111 Settings.Global.putInt(resolver, Global.AUTOMATIC_POWER_SAVE_MODE, mode); in setDefaultKey()
112 if (mode != PowerManager.POWER_SAVE_MODE_TRIGGER_DYNAMIC) { in setDefaultKey()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterysaver/
DBatterySaverScheduleRadioButtonsController.java56 final int mode = Settings.Global.getInt(resolver, Global.AUTOMATIC_POWER_SAVE_MODE, in getDefaultKey() local
60 if (mode == PowerManager.POWER_SAVE_MODE_TRIGGER_PERCENTAGE) { in getDefaultKey()
77 int mode = PowerManager.POWER_SAVE_MODE_TRIGGER_PERCENTAGE; in setDefaultKey() local
92 mode = PowerManager.POWER_SAVE_MODE_TRIGGER_DYNAMIC; in setDefaultKey()
106 mode = PowerManager.POWER_SAVE_MODE_TRIGGER_PERCENTAGE; in setDefaultKey()
111 Settings.Global.putInt(resolver, Global.AUTOMATIC_POWER_SAVE_MODE, mode); in setDefaultKey()
112 if (mode != PowerManager.POWER_SAVE_MODE_TRIGGER_DYNAMIC) { in setDefaultKey()
/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/wifi/
DWifiDialog.java66 AccessPoint accessPoint, int mode) { in createModal() argument
67 return new WifiDialog(context, listener, accessPoint, mode, 0 /* style */, in createModal()
68 mode == WifiConfigUiBase.MODE_VIEW /* hideSubmitButton */); in createModal()
76 AccessPoint accessPoint, int mode, @StyleRes int style) { in createModal() argument
77 return new WifiDialog(context, listener, accessPoint, mode, style, in createModal()
78 mode == WifiConfigUiBase.MODE_VIEW /* hideSubmitButton */); in createModal()
82 int mode, @StyleRes int style, boolean hideSubmitButton) { in WifiDialog() argument
84 mMode = mode; in WifiDialog()
/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/Contacts/tests/src/com/android/contacts/test/mocks/
DForwardingContentProvider.java129 public synchronized ParcelFileDescriptor openFile(Uri url, String mode) { in openFile() argument
131 return mClient.openFile(url, mode); in openFile()
139 public synchronized ParcelFileDescriptor openFile(Uri url, String mode, in openFile() argument
142 return mClient.openFile(url, mode, signal); in openFile()
150 public synchronized AssetFileDescriptor openAssetFile(Uri url, String mode) { in openAssetFile() argument
152 return mClient.openAssetFile(url, mode); in openAssetFile()
160 public synchronized AssetFileDescriptor openAssetFile(Uri url, String mode, in openAssetFile() argument
163 return mClient.openAssetFile(url, mode, signal); in openAssetFile()
/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/
DDarkUISettingsRadioButtonsController.java41 final int mode = mManager.getNightMode(); in getDefaultKey() local
43 return mode == UiModeManager.MODE_NIGHT_YES ? KEY_DARK : KEY_LIGHT; in getDefaultKey()
63 final int mode = mManager.getNightMode(); in updateFooter() local
64 switch (mode) { in updateFooter()
75 public static String modeToDescription(Context context, int mode) { in modeToDescription() argument
77 switch (mode) { in modeToDescription()
/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 = mBluetoothAdapter.getScanMode(); in updateCountdownSummary() local
276 if (mode != BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) { in updateCountdownSummary()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DRenamingDelegatingContext.java141 int mode, SQLiteDatabase.CursorFactory factory) { in openOrCreateDatabase() argument
143 return mFileContext.openOrCreateDatabase(name, mode, factory); in openOrCreateDatabase()
150 return mFileContext.openOrCreateDatabase(internalName, mode, factory); in openOrCreateDatabase()
155 int mode, SQLiteDatabase.CursorFactory factory, DatabaseErrorHandler errorHandler) { in openOrCreateDatabase() argument
157 return mFileContext.openOrCreateDatabase(name, mode, factory, errorHandler); in openOrCreateDatabase()
164 return mFileContext.openOrCreateDatabase(internalName, mode, factory, errorHandler); in openOrCreateDatabase()
205 public FileOutputStream openFileOutput(String name, int mode) in openFileOutput() argument
208 return mFileContext.openFileOutput(renamedFileName(name), mode); in openFileOutput()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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 = mBluetoothAdapter.getScanMode(); in updateCountdownSummary() local
276 if (mode != BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) { in updateCountdownSummary()
/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/Settings/tests/robotests/src/com/android/settings/development/
DShowLayoutBoundsPreferenceControllerTest.java61 final boolean mode = DisplayProperties.debug_layout().orElse(false); in onPreferenceChanged_settingEnabled_turnOnShowLayoutBounds()
63 assertThat(mode).isTrue(); in onPreferenceChanged_settingEnabled_turnOnShowLayoutBounds()
70 final boolean mode = DisplayProperties.debug_layout().orElse(false); in onPreferenceChanged_settingDisabled_turnOffShowLayoutBounds()
72 assertThat(mode).isFalse(); in onPreferenceChanged_settingDisabled_turnOffShowLayoutBounds()
95 final boolean mode = DisplayProperties.debug_layout().orElse(false); in onDeveloperOptionsDisabled_shouldDisablePreference()
97 assertThat(mode).isFalse(); in onDeveloperOptionsDisabled_shouldDisablePreference()
DBluetoothAbsoluteVolumePreferenceControllerTest.java66 final boolean mode = SystemProperties.getBoolean( in onPreferenceChanged_settingEnabled_shouldTurnOnBluetoothDisableAbsoluteVolume()
69 assertThat(mode).isTrue(); in onPreferenceChanged_settingEnabled_shouldTurnOnBluetoothDisableAbsoluteVolume()
76 final boolean mode = SystemProperties.getBoolean( in onPreferenceChanged_settingDisabled_shouldTurnOffBluetoothDisableAbsoluteVolume()
79 assertThat(mode).isFalse(); in onPreferenceChanged_settingDisabled_shouldTurnOffBluetoothDisableAbsoluteVolume()
102 final boolean mode = SystemProperties.getBoolean( in onDeveloperOptionsDisabled_shouldDisablePreference()
105 assertThat(mode).isFalse(); in onDeveloperOptionsDisabled_shouldDisablePreference()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DVibrateWhenRingPreferenceControllerTest.java124 final int mode = Settings.System.getInt(mContext.getContentResolver(), in testOnPreferenceChange_turnOn_returnOn() local
127 assertThat(mode).isEqualTo(NOTIFICATION_VIBRATE_WHEN_RINGING); in testOnPreferenceChange_turnOn_returnOn()
133 final int mode = Settings.System.getInt(mContext.getContentResolver(), in testOnPreferenceChange_turnOff_returnOff() local
136 assertThat(mode).isEqualTo(DEFAULT_VALUE); in testOnPreferenceChange_turnOff_returnOff()
176 final int mode = Settings.System.getInt(mContext.getContentResolver(), VIBRATE_WHEN_RINGING, in setChecked_settingsIsOn() local
179 assertThat(mode).isEqualTo(NOTIFICATION_VIBRATE_WHEN_RINGING); in setChecked_settingsIsOn()
185 final int mode = Settings.System.getInt(mContext.getContentResolver(), VIBRATE_WHEN_RINGING, in setChecked_settingsIsOff() local
188 assertThat(mode).isEqualTo(DEFAULT_VALUE); in setChecked_settingsIsOff()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DIconHelper.java69 public IconHelper(Context context, int mode) { in IconHelper() argument
71 setViewMode(mode); in IconHelper()
90 public void setViewMode(@ViewMode int mode) { in setViewMode() argument
91 mMode = mode; in setViewMode()
92 int thumbSize = getThumbSize(mode); in setViewMode()
96 private int getThumbSize(int mode) { in getThumbSize() argument
98 switch (mode) { in getThumbSize()
107 throw new IllegalArgumentException("Unsupported layout mode: " + mode); in getThumbSize()

12345678910>>...15