/packages/apps/Nfc/nci/jni/ |
D | NfcTag.cpp | 243 if (mTechParams[0].mode != NFC_DISCOVERY_TYPE_POLL_KOVIO) return false; in IsSameKovio() 347 if ((NFC_DISCOVERY_TYPE_POLL_A == rfDetail.rf_tech_param.mode) || in discoverTechnologies() 348 (NFC_DISCOVERY_TYPE_POLL_A_ACTIVE == rfDetail.rf_tech_param.mode)) { in discoverTechnologies() 358 if ((rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_A) || in discoverTechnologies() 359 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_A_ACTIVE) || in discoverTechnologies() 360 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_LISTEN_A) || in discoverTechnologies() 361 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_LISTEN_A_ACTIVE)) { in discoverTechnologies() 370 } else if ((rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_POLL_B) || in discoverTechnologies() 371 (rfDetail.rf_tech_param.mode == in discoverTechnologies() 373 (rfDetail.rf_tech_param.mode == NFC_DISCOVERY_TYPE_LISTEN_B) || in discoverTechnologies() [all …]
|
/packages/services/Car/tests/usb/AoapHostApp/src/com/google/android/car/usb/aoap/host/ |
D | UsbAoapHostActivity.java | 92 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/ |
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/apps/Settings/src/com/android/settings/notification/ |
D | ZenModeVoiceActivity.java | 52 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/ |
D | ZenModeVoiceActivity.java | 52 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/ |
D | ShadowAppOpsManager.java | 41 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/services/Car/car-lib/src/android/car/drivingstate/ |
D | CarUxRestrictionsConfiguration.java | 94 String mode = entry.getKey(); in CarUxRestrictionsConfiguration() local 101 mRestrictionModes.put(mode, container); in CarUxRestrictionsConfiguration() 131 float currentSpeed, @NonNull String mode) { in getUxRestrictions() argument 132 Objects.requireNonNull(mode, "mode must not be null"); in getUxRestrictions() 134 if (mRestrictionModes.containsKey(mode)) { in getUxRestrictions() 136 mRestrictionModes.get(mode).getRestrictionsForDriveState(drivingState)); in getUxRestrictions() 143 mode, in getUxRestrictions() 438 private static void readRestrictionsMode(JsonReader reader, String mode, Builder builder) in readRestrictionsMode() argument 445 readRestrictionsList(reader, DRIVING_STATE_PARKED, mode, builder); in readRestrictionsMode() 448 readRestrictionsList(reader, DRIVING_STATE_IDLING, mode, builder); in readRestrictionsMode() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterysaver/ |
D | BatterySaverScheduleRadioButtonsController.java | 56 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/ |
D | BatterySaverScheduleRadioButtonsController.java | 56 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/wifi/ |
D | WifiDialog.java | 66 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/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/Launcher3/quickstep/tests/src/com/android/quickstep/ |
D | NavigationModeSwitchRule.java | 67 Mode mode() default ALL; in mode() method 80 Mode mode = description.getAnnotation(NavigationModeSwitch.class).mode(); in apply() local 105 if (mode == ZERO_BUTTON || mode == ALL) { in apply() 108 if (mode == TWO_BUTTON || mode == ALL) { in apply() 111 if (mode == THREE_BUTTON || mode == ALL) { in apply()
|
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/ |
D | ForwardingContentProvider.java | 129 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/ |
D | DarkUISettingsRadioButtonsController.java | 41 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/ |
D | BluetoothDiscoverableEnabler.java | 79 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/ |
D | RenamingDelegatingContext.java | 141 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/apps/Settings/src/com/android/settings/bluetooth/ |
D | BluetoothDiscoverableEnabler.java | 79 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/ |
D | ScrollController.java | 320 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/ |
D | ShowLayoutBoundsPreferenceControllerTest.java | 61 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()
|
D | BluetoothAbsoluteVolumePreferenceControllerTest.java | 66 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()
|
D | BluetoothDeviceNoNamePreferenceControllerTest.java | 66 final boolean mode = SystemProperties.getBoolean( in onPreferenceChanged_settingEnabled_shouldTurnOnBluetoothDeviceNoName() 70 assertThat(mode).isTrue(); in onPreferenceChanged_settingEnabled_shouldTurnOnBluetoothDeviceNoName() 77 final boolean mode = SystemProperties.getBoolean( in onPreferenceChanged_settingDisabled_shouldTurnOffBluetoothDeviceNoName() 80 assertThat(mode).isFalse(); in onPreferenceChanged_settingDisabled_shouldTurnOffBluetoothDeviceNoName() 105 final boolean mode = SystemProperties.getBoolean( in onDeveloperOptionsDisabled_shouldDisablePreference() 109 assertThat(mode).isFalse(); in onDeveloperOptionsDisabled_shouldDisablePreference()
|
D | ResizableActivityPreferenceControllerTest.java | 62 final int mode = Settings.Global.getInt(mContext.getContentResolver(), in onPreferenceChange_settingEnabled_shouldEnableResizableActivities() local 65 assertThat(mode).isEqualTo( in onPreferenceChange_settingEnabled_shouldEnableResizableActivities() 73 final int mode = Settings.Global.getInt(mContext.getContentResolver(), in onPreferenceChange_settingDisabled_shouldDisableResizableActivities() local 76 assertThat(mode).isEqualTo( in onPreferenceChange_settingDisabled_shouldDisableResizableActivities() 105 final int mode = Settings.Global.getInt(mContext.getContentResolver(), in onDeveloperOptionsSwitchDisabled_preferenceShouldBeDisabled() local 108 assertThat(mode).isEqualTo( in onDeveloperOptionsSwitchDisabled_preferenceShouldBeDisabled()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | IconHelper.java | 69 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()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | VibrateWhenRingPreferenceControllerTest.java | 124 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/Gallery2/src/com/android/gallery3d/ingest/ |
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 …]
|