Home
last modified time | relevance | path

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

12345678910>>...20

/packages/apps/Nfc/nci/jni/
DNfcTag.cpp243 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/apps/Car/libs/car-media-common/src/com/android/car/media/common/source/
DMediaSourceViewModel.java75 public static MediaSourceViewModel get(@NonNull Application application, int mode) { in get() argument
76 if (sInstances[mode] == null) { in get()
77 sInstances[mode] = new MediaSourceViewModel(application, mode); in get()
79 return sInstances[mode]; in get()
87 private MediaSourceViewModel(@NonNull Application application, int mode) { in MediaSourceViewModel() argument
88 this(application, mode, new InputFactory() { in MediaSourceViewModel()
119 MediaSourceViewModel(@NonNull Application application, int mode, in MediaSourceViewModel() argument
134 mCarMediaManager.addMediaSourceListener(mMediaSourceListener, mode); in MediaSourceViewModel()
135 updateModelState(mInputFactory.getMediaSource(mCarMediaManager.getMediaSource(mode))); in MediaSourceViewModel()
162 public void setPrimaryMediaSource(@NonNull MediaSource mediaSource, int mode) { in setPrimaryMediaSource() argument
[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/providers/MediaProvider/src/com/android/providers/media/util/
DFileUtils.java197 public static int translateModeStringToPosix(String mode) { in translateModeStringToPosix() argument
199 for (int i = 0; i < mode.length(); i++) { in translateModeStringToPosix()
200 switch (mode.charAt(i)) { in translateModeStringToPosix()
207 throw new IllegalArgumentException("Bad mode: " + mode); in translateModeStringToPosix()
212 if (mode.startsWith("rw")) { in translateModeStringToPosix()
214 } else if (mode.startsWith("w")) { in translateModeStringToPosix()
216 } else if (mode.startsWith("r")) { in translateModeStringToPosix()
219 throw new IllegalArgumentException("Bad mode: " + mode); in translateModeStringToPosix()
221 if (mode.indexOf('t') != -1) { in translateModeStringToPosix()
224 if (mode.indexOf('a') != -1) { in translateModeStringToPosix()
[all …]
/packages/services/Car/service/src/com/android/car/
DCarMediaService.java461 @MediaSourceMode int mode) { in setMediaSource() argument
466 setPrimaryMediaSource(componentName, mode); in setMediaSource()
473 public ComponentName getMediaSource(@CarMediaManager.MediaSourceMode int mode) { in getMediaSource() argument
476 return mPrimaryMediaComponents[mode]; in getMediaSource()
485 @MediaSourceMode int mode) { in registerMediaSourceListener() argument
488 mMediaSourceListeners[mode].register(callback); in registerMediaSourceListener()
497 @MediaSourceMode int mode) { in unregisterMediaSourceListener() argument
500 mMediaSourceListeners[mode].unregister(callback); in unregisterMediaSourceListener()
505 public List<ComponentName> getLastMediaSources(@CarMediaManager.MediaSourceMode int mode) { in getLastMediaSources() argument
507 String key = getMediaSourceKey(mode); in getLastMediaSources()
[all …]
/packages/apps/Settings/src/com/android/settings/notification/zen/
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/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/modules/adb/client/
Dfile_sync_client.cpp60 typedef void(sync_ls_cb)(unsigned mode, uint64_t size, uint64_t time, const char* name);
77 static bool should_pull_file(mode_t mode) { in should_pull_file() argument
78 return S_ISREG(mode) || S_ISBLK(mode) || S_ISCHR(mode); in should_pull_file()
81 static bool should_push_file(mode_t mode) { in should_push_file() argument
82 return S_ISREG(mode) || S_ISLNK(mode); in should_push_file()
89 uint32_t mode; member
96 unsigned int mode) in copyinfo()
97 : lpath(local_path), rpath(remote_path), mode(mode) { in copyinfo()
101 if (S_ISDIR(mode)) { in copyinfo()
352 bool SendSend2(std::string_view path, mode_t mode, CompressionType compression, bool dry_run) { in SendSend2() argument
[all …]
/packages/services/Car/car-lib/src/android/car/media/
DCarMediaManager.java89 public @NonNull ComponentName getMediaSource(@MediaSourceMode int mode) { in getMediaSource() argument
91 return mService.getMediaSource(mode); in getMediaSource()
103 public void setMediaSource(@NonNull ComponentName componentName, @MediaSourceMode int mode) { in setMediaSource() argument
105 mService.setMediaSource(componentName, mode); in setMediaSource()
119 @MediaSourceMode int mode) { in addMediaSourceListener() argument
130 mService.registerMediaSourceListener(binderCallback, mode); in addMediaSourceListener()
144 @MediaSourceMode int mode) { in removeMediaSourceListener() argument
148 mService.unregisterMediaSourceListener(binderCallback, mode); in removeMediaSourceListener()
162 public @NonNull List<ComponentName> getLastMediaSources(@MediaSourceMode int mode) { in getLastMediaSources() argument
164 return mService.getLastMediaSources(mode); in getLastMediaSources()
/packages/modules/adb/daemon/
Dfile_sync_service.cpp110 mode_t mode = 0775; in secure_mkdirs() local
123 adbd_fs_config(partial_path.c_str(), 1, nullptr, &uid, &gid, &mode, &capabilities); in secure_mkdirs()
125 if (adb_mkdir(partial_path.c_str(), mode) == -1) { in secure_mkdirs()
149 msg.stat_v1.mode = st.st_mode; in do_lstat_v1()
173 msg.stat_v2.mode = st.st_mode; in do_stat_v2()
211 msg.mode = st.st_mode; in do_list()
348 gid_t gid, uint64_t capabilities, mode_t mode, in handle_send_file() argument
356 fd.reset(adb_open_mode(path, O_WRONLY | O_CREAT | O_EXCL | O_CLOEXEC, mode)); in handle_send_file()
363 fd.reset(adb_open_mode(path, O_WRONLY | O_CREAT | O_EXCL | O_CLOEXEC, mode)); in handle_send_file()
366 fd.reset(adb_open_mode(path, O_WRONLY | O_CLOEXEC, mode)); in handle_send_file()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowAppOpsManager.java42 protected void setMode(int code, int uid, String packageName, int mode) { in setMode() argument
44 mOpToKeyToMode.put(code, key, mode); in setMode()
49 Integer mode = mOpToKeyToMode.get(code, new InternalKey(uid, packageName)); in getMode() local
50 return mode == null ? AppOpsManager.opToDefaultMode(code) : mode; in getMode()
66 Integer mode = keyToModeMap.get(key); in getPackagesForOps() local
67 if (mode == null) { in getPackagesForOps()
68 mode = AppOpsManager.opToDefaultMode(op); in getPackagesForOps()
70 OpEntry opEntry = new OpEntry(op, mode, Collections.emptyMap()); in getPackagesForOps()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterysaver/
DBatterySaverScheduleRadioButtonsController.java57 final int mode = Settings.Global.getInt(resolver, Global.AUTOMATIC_POWER_SAVE_MODE, in getDefaultKey() local
61 if (mode == PowerManager.POWER_SAVE_MODE_TRIGGER_PERCENTAGE) { in getDefaultKey()
78 int mode = PowerManager.POWER_SAVE_MODE_TRIGGER_PERCENTAGE; in setDefaultKey() local
93 mode = PowerManager.POWER_SAVE_MODE_TRIGGER_DYNAMIC; in setDefaultKey()
107 mode = PowerManager.POWER_SAVE_MODE_TRIGGER_PERCENTAGE; in setDefaultKey()
112 Settings.Global.putInt(resolver, Global.AUTOMATIC_POWER_SAVE_MODE, mode); in setDefaultKey()
113 if (mode != PowerManager.POWER_SAVE_MODE_TRIGGER_DYNAMIC) { in setDefaultKey()
117 if (mode == PowerManager.POWER_SAVE_MODE_TRIGGER_DYNAMIC || triggerLevel != 0) { in setDefaultKey()
/packages/services/Car/car-lib/src/android/car/drivingstate/
DCarUxRestrictionsConfiguration.java94 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/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DIconHelper.java74 public IconHelper(Context context, int mode, boolean maybeShowBadge) { in IconHelper() argument
75 this(context, mode, maybeShowBadge, DocumentsApplication.getThumbnailCache(context), in IconHelper()
80 IconHelper(Context context, int mode, boolean maybeShowBadge, ThumbnailCache thumbnailCache, in IconHelper() argument
83 setViewMode(mode); in IconHelper()
104 public void setViewMode(@ViewMode int mode) { in setViewMode() argument
105 mMode = mode; in setViewMode()
106 int thumbSize = getThumbSize(mode); in setViewMode()
110 private int getThumbSize(int mode) { in getThumbSize() argument
112 switch (mode) { in getThumbSize()
121 throw new IllegalArgumentException("Unsupported layout mode: " + mode); in getThumbSize()
/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/
DWifiDialog2.java80 WifiEntry wifiEntry, int mode) { in createModal() argument
81 return new WifiDialog2(context, listener, wifiEntry, mode, 0 /* style */, in createModal()
82 mode == WifiConfigUiBase2.MODE_VIEW /* hideSubmitButton */); in createModal()
90 WifiEntry wifiEntry, int mode, @StyleRes int style) { in createModal() argument
91 return new WifiDialog2(context, listener, wifiEntry, mode, style, in createModal()
92 mode == WifiConfigUiBase2.MODE_VIEW /* hideSubmitButton */); in createModal()
96 int mode, @StyleRes int style, boolean hideSubmitButton) { in WifiDialog2() argument
98 mMode = mode; in WifiDialog2()
DWifiDialog.java71 AccessPoint accessPoint, int mode) { in createModal() argument
72 return new WifiDialog(context, listener, accessPoint, mode, 0 /* style */, in createModal()
73 mode == WifiConfigUiBase.MODE_VIEW /* hideSubmitButton */); in createModal()
81 AccessPoint accessPoint, int mode, @StyleRes int style) { in createModal() argument
82 return new WifiDialog(context, listener, accessPoint, mode, style, in createModal()
83 mode == WifiConfigUiBase.MODE_VIEW /* hideSubmitButton */); in createModal()
87 int mode, @StyleRes int style, boolean hideSubmitButton) { in WifiDialog() argument
89 mMode = mode; in WifiDialog()
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DNavigationModeSwitchRule.java71 Mode mode() default ALL; in mode() method
87 Mode mode = description.getAnnotation(NavigationModeSwitch.class).mode(); in apply() local
99 if (mode == ZERO_BUTTON || mode == ALL) { in apply()
102 if (mode == TWO_BUTTON || mode == ALL) { in apply()
105 if (mode == THREE_BUTTON || mode == ALL) { in apply()
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/
DForwardingContentProvider.java131 public synchronized ParcelFileDescriptor openFile(Uri url, String mode) { in openFile() argument
133 return mClient.openFile(url, mode); in openFile()
141 public synchronized ParcelFileDescriptor openFile(Uri url, String mode, in openFile() argument
144 return mClient.openFile(url, mode, signal); in openFile()
152 public synchronized AssetFileDescriptor openAssetFile(Uri url, String mode) { in openAssetFile() argument
154 return mClient.openAssetFile(url, mode); in openAssetFile()
162 public synchronized AssetFileDescriptor openAssetFile(Uri url, String mode, in openAssetFile() argument
165 return mClient.openAssetFile(url, mode, signal); in openAssetFile()
/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()
DBluetoothDeviceNoNamePreferenceControllerTest.java66 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()
DWifiEnhancedMacRandomizationPreferenceControllerTest.java63 int mode = Settings.Global.getInt(mContext.getContentResolver(), in onPreferenceChanged_enabled_shouldTurnOnEnhancedRandomization() local
65 assertThat(mode).isEqualTo(1); in onPreferenceChanged_enabled_shouldTurnOnEnhancedRandomization()
72 int mode = Settings.Global.getInt(mContext.getContentResolver(), in onPreferenceChanged_disabled_shouldTurnOffEnhancedRandomization() local
74 assertThat(mode).isEqualTo(0); in onPreferenceChanged_disabled_shouldTurnOffEnhancedRandomization()
99 int mode = Settings.Global.getInt(mContext.getContentResolver(), in onDeveloperOptionsDisabled_shouldDisablePreference() local
102 assertThat(mode).isEqualTo(0); in onDeveloperOptionsDisabled_shouldDisablePreference()
/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/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()

12345678910>>...20