Searched refs:devices (Results 1 - 25 of 61) sorted by relevance

123

/frameworks/base/services/core/jni/
H A Dcom_android_server_lights_LightsService.cpp67 Devices* devices; local
69 devices = (Devices*)malloc(sizeof(Devices));
73 devices->lights[LIGHT_INDEX_BACKLIGHT]
75 devices->lights[LIGHT_INDEX_KEYBOARD]
77 devices->lights[LIGHT_INDEX_BUTTONS]
79 devices->lights[LIGHT_INDEX_BATTERY]
81 devices->lights[LIGHT_INDEX_NOTIFICATIONS]
83 devices->lights[LIGHT_INDEX_ATTENTION]
85 devices->lights[LIGHT_INDEX_BLUETOOTH]
87 devices
98 Devices* devices = (Devices*)ptr; local
109 Devices* devices = (Devices*)ptr; local
[all...]
/frameworks/av/services/audiopolicy/
H A Daudio_policy.conf7 # lists input and output devices always present on the device
24 # other attributes (attached devices, default device) have to be included in the
36 # The "channel_masks", "formats", "devices" and "flags" are specified using strings corresponding
42 # - Optionally a "devices" section:
43 # This section contains descriptors for audio devices with attributes like an address or a
44 # gain controller. The syntax for the devices section and device descriptor is as follows:
45 # devices {
71 # its name in their "devices" section instead of specifying a device type. e.g. :
77 # devices <device name>
91 devices {
[all...]
/frameworks/av/services/audiopolicy/engineconfigurable/src/
H A DInputSource.cpp42 * @param[in] devices selected for the given input source.
48 status_t Element<audio_source_t>::set(audio_devices_t devices) argument
50 if (!audio_is_input_device(devices) && devices != AUDIO_DEVICE_BIT_IN) {
52 __FUNCTION__, devices, getName().c_str());
55 ALOGD("%s: 0x%X for input source %s", __FUNCTION__, devices, getName().c_str());
56 mApplicableDevices = devices;
H A DStrategy.cpp42 * @param[in] devices selected for the given strategy.
47 status_t Element<routing_strategy>::set<audio_devices_t>(audio_devices_t devices) argument
49 if (!audio_is_output_devices(devices) && devices != AUDIO_DEVICE_NONE) {
51 __FUNCTION__, devices, getName().c_str());
54 ALOGD("%s: 0x%X for strategy %s", __FUNCTION__, devices, getName().c_str());
55 mApplicableDevices = devices;
H A DEngine.h133 virtual bool setDeviceForStrategy(const routing_strategy &strategy, audio_devices_t devices) argument
135 return mPolicyEngine->setPropertyForKey<audio_devices_t, routing_strategy>(devices,
183 status_t setDeviceConnectionState(audio_devices_t devices, audio_policy_dev_state_t state,
/frameworks/av/services/audioflinger/
H A DAudioHwDevice.cpp37 audio_devices_t devices,
53 status_t status = outputStream->open(handle, devices, config, address);
78 status = outputStream->open(handle, devices, &originalConfig, address);
34 openOutputStream( AudioStreamOut **ppStreamOut, audio_io_handle_t handle, audio_devices_t devices, audio_output_flags_t flags, struct audio_config *config, const char *address) argument
H A DSpdifStreamOut.cpp49 audio_devices_t devices,
96 devices,
47 open( audio_io_handle_t handle, audio_devices_t devices, struct audio_config *config, const char *address) argument
H A DAudioHwDevice.h65 * The "address" parameter qualifies the "devices" audio device type if needed.
67 * - Bluetooth devices use the MAC address of the device in the form "00:11:22:AA:BB:CC"
68 * - USB devices use the ALSA card and device numbers in the form "card=X;device=Y"
69 * - Other devices may use a number or any other string.
74 audio_devices_t devices,
H A DAudioStreamOut.h50 audio_devices_t devices,
H A DSpdifStreamOut.h48 audio_devices_t devices,
H A DAudioStreamOut.cpp114 audio_devices_t devices,
122 devices,
112 open( audio_io_handle_t handle, audio_devices_t devices, struct audio_config *config, const char *address) argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DCastTile.java100 final Set<CastDevice> devices = mController.getCastDevices();
102 for (CastDevice device : devices) {
115 mDetailAdapter.updateItems(devices);
206 private void updateItems(Set<CastDevice> devices) { argument
209 if (devices != null && !devices.isEmpty()) {
211 for (CastDevice device : devices) {
223 // otherwise list all available devices, and don't move them around
225 for (CastDevice device : devices) {
228 items = new Item[devices
[all...]
H A DBluetoothTile.java219 final Collection<CachedBluetoothDevice> devices = mController.getDevices();
220 if (devices != null) {
221 items = new Item[getBondedCount(devices)];
223 for (CachedBluetoothDevice device : devices) {
244 private int getBondedCount(Collection<CachedBluetoothDevice> devices) { argument
246 for (CachedBluetoothDevice device : devices) {
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothManager.java109 * Get connected devices for the specified profile.
111 * <p> Return the set of devices which are in state {@link BluetoothProfile#STATE_CONNECTED}
121 * @return List of devices. The list will be empty on error.
148 * Get a list of devices that match any of the given connection
151 * <p> If none of the devices match any of the given states,
166 * @return List of devices. The list will be empty on error.
176 List<BluetoothDevice> devices = new ArrayList<BluetoothDevice>();
181 if (iGatt == null) return devices;
182 devices = iGatt.getDevicesMatchingConnectionStates(states);
187 return devices;
[all...]
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DDeviceDescriptor.cpp123 audio_devices_t devices = AUDIO_DEVICE_NONE; local
126 devices |= itemAt(i)->type();
129 return devices;
207 DeviceVector devices; local
214 devices.add(itemAt(i));
220 return devices;
226 DeviceVector devices; local
230 devices.add(itemAt(i));
234 return devices;
255 snprintf(buffer, SIZE, "\n Available %s devices
[all...]
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
H A DBluetoothInstrumentation.java110 Set<BluetoothDevice> devices = getBluetoothAdapter().getBondedDevices();
112 for (BluetoothDevice device : devices) {
/frameworks/av/services/audiopolicy/engineconfigurable/interface/
H A DAudioPolicyPluginInterface.h32 * - keep up to date the attributes of these policy members ( i.e. devices to be used for a
94 * @param[in] devices; mask of devices to be used for the given strategy.
96 * @return true if the devices were set correclty for this strategy, false otherwise.
98 virtual bool setDeviceForStrategy(const routing_strategy &strategy, audio_devices_t devices) = 0;
136 * @param[in] devices; mask of devices to be used for the given input source.
138 * @return true if the devices were set correclty for this input source, false otherwise.
/frameworks/av/services/audiopolicy/engineconfigurable/wrapper/
H A DParameterManagerWrapper.cpp390 status_t ParameterManagerWrapper::setDeviceConnectionState(audio_devices_t devices, argument
396 if (audio_is_output_devices(devices)) {
398 } else if (devices & AUDIO_DEVICE_BIT_IN) {
404 ALOGE("%s: no criterion found for devices", __FUNCTION__);
412 criterion->setCriterionState(previousDevices |= devices);
416 if (devices & AUDIO_DEVICE_BIT_IN) {
417 devices &= ~AUDIO_DEVICE_BIT_IN;
419 criterion->setCriterionState(previousDevices &= ~devices);
/frameworks/base/core/java/android/hardware/usb/
H A DIUsbManager.aidl30 /* Returns a list of all currently attached USB devices */
31 void getDeviceList(out Bundle devices);
/frameworks/base/wifi/java/android/net/wifi/p2p/
H A DWifiP2pDeviceList.java52 public WifiP2pDeviceList(ArrayList<WifiP2pDevice> devices) { argument
53 for (WifiP2pDevice device : devices) {
163 /** Get the list of devices */
/frameworks/rs/api/
H A Drs_core.spec21 RenderScript code is compiled on devices at runtime to allow platform-independence as well.
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DCastControllerImpl.java134 final ArraySet<CastDevice> devices = new ArraySet<CastDevice>();
143 devices.add(device);
144 return devices;
159 devices.add(device);
162 return devices;
/frameworks/compile/libbcc/gdb_plugin/
H A Dandroid-commands.py25 # set-android-device to select a target (only if multiple devices are attached)
116 devices = self.devices()
117 if len(devices) == 1:
118 self.set_current_device(devices[0])
122 if len(devices) == 0:
123 msg = "No devices detected. Please connect a device and "
125 msg = "Too many devices (" + ", ".join(devices) + ") detected. " \
245 # Returns the list of serial numbers of connected devices
246 def devices(self): member in class:ADB
[all...]
/frameworks/av/services/audiopolicy/engineconfigurable/wrapper/include/
H A DParameterManagerWrapper.h109 * @param[in] devices mask of devices for which the state has changed.
114 * @return NO_ERROR if devices criterion updated correctly, error code otherwise.
116 status_t setDeviceConnectionState(audio_devices_t devices, audio_policy_dev_state_t state,
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/
H A DKeyboardUI.java291 Set<BluetoothDevice> devices = mLocalBluetoothAdapter.getBondedDevices();
292 for (BluetoothDevice d : devices) {
301 Collection<CachedBluetoothDevice> devices = mCachedDeviceManager.getCachedDevicesCopy();
302 for (CachedBluetoothDevice d : devices) {

Completed in 1616 milliseconds

123