/system/media/brillo/audio/audioservice/ |
H A D | brillo_audio_device_info.cpp | 25 BAudioDeviceInfo* BAudioDeviceInfo_new(int device) { argument 28 std::make_unique<BAudioDeviceInfoInternal>(device); 32 int BAudioDeviceInfo_getType(BAudioDeviceInfo* device) { argument 33 return device->internal_->GetDeviceId(); 36 void BAudioDeviceInfo_delete(BAudioDeviceInfo* device) { argument 37 delete device;
|
H A D | audio_device_handler.cpp | 128 audio_devices_t device, audio_policy_dev_state_t state) { 130 LOG(INFO) << "Audio device handler cannot call audio policy service. Will " 134 VLOG(1) << "Calling Audio Policy Service to change " << device << " to state " 136 aps_->setDeviceConnectionState(device, state, "", ""); 150 void AudioDeviceHandler::ConnectAudioDevice(audio_devices_t device) { argument 152 NotifyAudioPolicyService(device, state); 153 if (audio_is_input_device(device)) 154 connected_input_devices_.insert(device); 156 connected_output_devices_.insert(device); 157 changed_devices_.push_back(device); 127 NotifyAudioPolicyService( audio_devices_t device, audio_policy_dev_state_t state) argument 160 DisconnectAudioDevice(audio_devices_t device) argument 181 audio_devices_t device = *(connected_input_devices_.begin()); local 185 audio_devices_t device = *(connected_output_devices_.begin()); local [all...] |
H A D | audio_volume_handler.cpp | 82 for (auto device : AudioDeviceHandler::kSupportedOutputDevices_) { 83 PersistVolumeConfiguration(stream, device, kDefaultCurrentIndex_); 104 audio_devices_t device) { 106 string_utils::ToString(device); 113 audio_devices_t device) { 115 GetVolumeCurrentIndex(stream, device)); 119 audio_devices_t device, 124 int previous_index = GetVolumeCurrentIndex(stream, device); 126 PersistVolumeConfiguration(stream, device, current_absolute_index); 132 audio_devices_t device, 103 GetVolumeCurrentIndex(audio_stream_type_t stream, audio_devices_t device) argument 112 GetVolumeIndex(audio_stream_type_t stream, audio_devices_t device) argument 118 SetVolumeIndex(audio_stream_type_t stream, audio_devices_t device, int index) argument 131 PersistVolumeConfiguration(audio_stream_type_t stream, audio_devices_t device, int index) argument 196 auto device = aps_->getDevicesForStream(stream); local 200 << " and device " << device; local [all...] |
H A D | brillo_audio_manager.cpp | 75 const BAudioDeviceInfo* device) { 76 if (!brillo_audio_manager || !device) 83 device->internal_->GetConfig()); 87 const BAudioManager* brillo_audio_manager, const BAudioDeviceInfo* device, 89 if (!brillo_audio_manager || !device) 95 device->internal_->GetConfig()); 122 const BAudioDeviceInfo* device, 124 if (!brillo_audio_manager || !device) { 132 usage, device->internal_->GetAudioDevicesT(), index); 137 const BAudioDeviceInfo* device, 74 BAudioManager_setInputDevice(const BAudioManager* brillo_audio_manager, const BAudioDeviceInfo* device) argument 86 BAudioManager_setOutputDevice( const BAudioManager* brillo_audio_manager, const BAudioDeviceInfo* device, BAudioUsage usage) argument 120 BAudioManager_setVolumeIndex(const BAudioManager* brillo_audio_manager, BAudioUsage usage, const BAudioDeviceInfo* device, int index) argument 135 BAudioManager_getVolumeIndex(const BAudioManager* brillo_audio_manager, BAudioUsage usage, const BAudioDeviceInfo* device, int* index) argument [all...] |
/system/nfc/halimpl/bcm2079x/include/ |
H A D | HalAdaptation.h | 46 extern int HaiInitializeLibrary(const bcm2079x_dev_t* device); 48 extern int HaiOpen(const bcm2079x_dev_t* device, 51 extern int HaiClose(const bcm2079x_dev_t* device); 52 extern int HaiCoreInitialized(const bcm2079x_dev_t* device, 56 extern int HaiPreDiscover(const bcm2079x_dev_t* device); 57 extern int HaiControlGranted(const bcm2079x_dev_t* device); 58 extern int HaiPowerCycle(const bcm2079x_dev_t* device); 59 extern int HaiGetMaxNfcee(const bcm2079x_dev_t* device, uint8_t* maxNfcee);
|
/system/nvram/hal/tests/ |
H A D | nvram_hal_test.cc | 86 ScopedNvramSpace(SafeScopedNvramDevice* device, uint32_t index, uint32_t size) argument 87 : ScopedNvramSpace(device, 95 ScopedNvramSpace(SafeScopedNvramDevice* device, argument 99 : ScopedNvramSpace(device, 105 ScopedNvramSpace(SafeScopedNvramDevice* device, argument 110 : device_(device), 137 bool CleanBurnSpaces(SafeScopedNvramDevice* device) { argument 147 if (device->GetSpaceList(&space_index_list) != NV_RESULT_SUCCESS) { 153 if (device->IsSpaceLocked(index, &write_lock, &read_lock) != 159 nvram_result_t result = device 175 GetNextBurnSpace(SafeScopedNvramDevice* device, uint32_t* index) argument [all...] |
/system/core/libusbhost/include/usbhost/ |
H A D | usbhost.h | 64 /* Callback indicating that initial device discovery is done. 91 * added_cb will be called immediately for each existing USB device, 92 * and subsequently each time a new device is added. 103 /* Creates a usb_device object for a USB device */ 106 /* Releases all resources associated with the USB device */ 107 void usb_device_close(struct usb_device *device); 109 /* Creates a usb_device object for already open USB device */ 113 int usb_device_get_fd(struct usb_device *device); 115 /* Returns the name for the USB device, which is the same as 118 const char* usb_device_get_name(struct usb_device *device); [all...] |
/system/media/brillo/audio/audioservice/include/ |
H A D | brillo_audio_device_info.h | 29 // A device type associated with an unknown or uninitialized device. 32 // A device type describing the speaker system (i.e. a mono speaker or stereo 33 // speakers) built in a device. 36 // A device type describing a headset, which is the combination of a headphones 40 // A device type describing a headset, which is the combination of a headphones 44 // A device type describing a pair of wired headphones. 47 // A device type describing the microphone(s) built in a device. 53 // device [all...] |
/system/extras/tests/bootloader/ |
H A D | haltest.py | 20 # Note: In order to run these tests, the device must be able to boot 21 # from all slots on the device. 25 self.bootctl = bootctl.Bootctl(self.device) 30 self.device.root() 31 self.device.wait() 47 self.device.root() 48 self.device.wait() 54 self.device.reboot() 55 self.device.wait() 56 self.device [all...] |
H A D | bootctl.py | 16 def __init__(self, device): 17 self.device = device 21 return self.device.shell_nocheck(self.base + [cmd])
|
/system/gatekeeper/tests/ |
H A D | gatekeeper_device_test.cpp | 32 gatekeeper_device_initialize(&device); 36 gatekeeper_close(device); 51 gatekeeper_device_t *device; member in class:GateKeeperDeviceTest 63 ret = device->enroll(device, 400, NULL, 0, NULL, 0, password_payload, password_len, 70 ret = device->verify(device, 400, 0, password_handle, password_handle_length, 87 ret = device->enroll(device, 400, NULL, 0, NULL, 0, password_payload, password_len, 93 ret = device [all...] |
/system/tools/hidl/c2hal/test/ |
H A D | simple.h | 36 * Common methods of the simple device. 73 struct simple_t** device) { 75 FORGROUND_COLOR, (struct simple_t**)device); 78 static inline int hideColor(struct simple_t* device) { argument 79 return device->common.close(&device->common); 72 showColor(const struct hw_module_t* module, struct simple_t** device) argument
|
/system/nvram/client/ |
H A D | nvram_client.c | 101 static int HandleGetTotalSize(nvram_device_t* device, char* args[]) { argument 104 nvram_result_t result = device->get_total_size_in_bytes(device, &total_size); 113 static int HandleGetAvailableSize(nvram_device_t* device, char* args[]) { argument 117 device->get_available_size_in_bytes(device, &available_size); 126 static int HandleGetMaxSpaceSize(nvram_device_t* device, char* args[]) { argument 130 device->get_max_space_size_in_bytes(device, &max_space_size); 139 static int HandleGetMaxSpaces(nvram_device_t* device, cha argument 151 HandleGetSpaceList(nvram_device_t* device, char* args[]) argument 183 HandleGetSpaceSize(nvram_device_t* device, char* args[]) argument 195 HandleGetSpaceControls(nvram_device_t* device, char* args[]) argument 233 HandleIsSpaceReadLocked(nvram_device_t* device, char* args[]) argument 247 HandleIsSpaceWriteLocked(nvram_device_t* device, char* args[]) argument 261 HandleCreateSpace(nvram_device_t* device, char* args[]) argument 288 HandleDeleteSpace(nvram_device_t* device, char* args[]) argument 294 HandleDisableCreate(nvram_device_t* device, char* args[]) argument 299 HandleWriteSpace(nvram_device_t* device, char* args[]) argument 305 HandleReadSpace(nvram_device_t* device, char* args[]) argument 331 HandleEnableWriteLock(nvram_device_t* device, char* args[]) argument 337 HandleEnableReadLock(nvram_device_t* device, char* args[]) argument [all...] |
/system/core/adb/ |
H A D | test_device.py | 44 if self.device.get_prop('ro.debuggable') != '1': 47 was_root = self.device.shell(['id', '-un'])[0].strip() == 'root' 49 self.device.root() 50 self.device.wait() 56 self.device.unroot() 57 self.device.wait() 64 was_root = self.device.shell(['id', '-un'])[0].strip() == 'root' 66 self.device.unroot() 67 self.device.wait() 73 self.device [all...] |
/system/media/audio/include/system/ |
H A D | audio.h | 40 /* device address used to refer to the standard remote submix */ 214 * Stub audio output device. Used in policy configuration file on platforms without audio outputs. 219 * Stub audio input device. Used in policy configuration file on platforms without audio inputs. 375 /* the maximum length for the human-readable device name */ 378 /* maximum audio device address length */ 382 * hardware device */ 384 audio_module_handle_t hw_module; /* module the device is attached to */ 385 audio_devices_t type; /* device type (e.g AUDIO_DEVICE_OUT_SPEAKER) */ 386 char address[AUDIO_DEVICE_MAX_ADDRESS_LEN]; /* device address. "" if N/A */ 412 audio_port_type_t type; /* device, mi 419 struct audio_port_config_device_ext device; /* device specific info */ member in union:audio_port_config::__anon1859 470 struct audio_port_device_ext device; member in union:audio_port::__anon1860 527 audio_is_output_device(audio_devices_t device) argument 536 audio_is_input_device(audio_devices_t device) argument 546 audio_is_output_devices(audio_devices_t device) argument 551 audio_is_a2dp_in_device(audio_devices_t device) argument 561 audio_is_a2dp_out_device(audio_devices_t device) argument 570 audio_is_a2dp_device(audio_devices_t device) argument 575 audio_is_bluetooth_sco_device(audio_devices_t device) argument 589 audio_is_usb_out_device(audio_devices_t device) argument 594 audio_is_usb_in_device(audio_devices_t device) argument 605 audio_is_usb_device(audio_devices_t device) argument 610 audio_is_remote_submix_device(audio_devices_t device) argument 923 audio_device_address_to_parameter(audio_devices_t device, const char *address) argument 938 audio_device_is_digital(audio_devices_t device) argument [all...] |
/system/core/libusbhost/ |
H A D | usbhost.c | 205 D("Created device discovery thread\n"); 292 D("new device %s\n", path); 295 D("gone device %s\n", path); 356 void usb_device_close(struct usb_device *device) argument 358 close(device->fd); 359 free(device); 364 struct usb_device *device = calloc(1, sizeof(struct usb_device)); local 371 length = read(fd, device->desc, sizeof(device->desc)); 376 strncpy(device 389 usb_device_reopen_writeable(struct usb_device *device) argument 405 usb_device_get_fd(struct usb_device *device) argument 412 usb_device_get_name(struct usb_device *device) argument 417 usb_device_get_unique_id(struct usb_device *device) argument 440 usb_device_get_vendor_id(struct usb_device *device) argument 446 usb_device_get_product_id(struct usb_device *device) argument 452 usb_device_get_device_descriptor(struct usb_device *device) argument 457 usb_device_get_string(struct usb_device *device, int id, int timeout) argument 499 usb_device_get_manufacturer_name(struct usb_device *device, int timeout) argument 505 usb_device_get_product_name(struct usb_device *device, int timeout) argument 511 usb_device_get_version(struct usb_device *device) argument 517 usb_device_get_serial(struct usb_device *device, int timeout) argument 523 usb_device_is_writeable(struct usb_device *device) argument 528 usb_descriptor_iter_init(struct usb_device *device, struct usb_descriptor_iter *iter) argument 545 usb_device_claim_interface(struct usb_device *device, unsigned int interface) argument 550 usb_device_release_interface(struct usb_device *device, unsigned int interface) argument 555 usb_device_connect_kernel_driver(struct usb_device *device, unsigned int interface, int connect) argument 566 usb_device_set_configuration(struct usb_device *device, int configuration) argument 571 usb_device_set_interface(struct usb_device *device, unsigned int interface, unsigned int alt_setting) argument 581 usb_device_control_transfer(struct usb_device *device, int requestType, int request, int value, int index, void* buffer, int length, unsigned int timeout) argument 607 usb_device_bulk_transfer(struct usb_device *device, int endpoint, void* buffer, unsigned int length, unsigned int timeout) argument 627 usb_device_reset(struct usb_device *device) argument [all...] |
/system/media/brillo/audio/audioservice/aidl/android/brillo/brilloaudioservice/ |
H A D | IBrilloAudioService.aidl | 28 // Constants for device enumeration. 40 // Set device for a given usage. 51 // Set the volume for a given (stream, device) tuple. 52 void SetVolumeIndex(int stream, int device, int index); 54 // Get the current volume for a given (stream, device) tuple. 55 int GetVolumeIndex(int stream, int device);
|
/system/update_engine/ |
H A D | utils_android.h | 28 // Find the block device that should be mounted in the |mount_point| path and 29 // store it in |device|. Returns whether a device was found on the fstab. 31 base::FilePath* device);
|
H A D | utils_android.cc | 28 // Open the appropriate fstab file and fallback to /fstab.device if 35 fstab = fs_mgr_read_fstab("/fstab.device"); 43 bool DeviceForMountPoint(const string& mount_point, base::FilePath* device) { argument 59 *device = base::FilePath(record->blk_device);
|
/system/core/init/ |
H A D | perfboot.py | 25 CPU temperature of the device. 91 def __init__(self, interval, device): 93 self._device = device 94 self._temp_paths = device.shell( 96 self._product = device.get_prop('ro.build.product') 170 def disable_dropbox(device): 172 device.root() 173 device.wait() 174 device.shell(['rm', '-rf', '/system/data/dropbox']) 175 original_dropbox_max_files = device [all...] |
/system/nvram/hal/ |
H A D | nvram_device_adapter.cpp | 28 // Executes an operation on the |NvramDeviceAdapter| corresponding to |device|. 35 nvram_result_t Execute(const nvram_device_t* device, argument 39 const_cast<nvram_device_t*>(device)); 61 nvram_result_t device_get_total_size_in_bytes(const nvram_device_t* device, argument 66 device, std::move(get_info_request), &get_info_response); 71 nvram_result_t device_get_available_size_in_bytes(const nvram_device_t* device, argument 76 device, std::move(get_info_request), &get_info_response); 81 nvram_result_t device_get_max_space_size_in_bytes(const nvram_device_t* device, argument 86 device, std::move(get_info_request), &get_info_response); 91 nvram_result_t device_get_max_spaces(const nvram_device_t* device, argument 101 device_get_space_list(const nvram_device_t* device, uint32_t max_list_size, uint32_t* space_index_list, uint32_t* list_size) argument 123 device_get_space_size(const nvram_device_t* device, uint32_t index, uint64_t* size) argument 135 device_get_space_controls(const nvram_device_t* device, uint32_t index, uint32_t max_list_size, nvram_control_t* control_list, uint32_t* list_size) argument 159 device_is_space_locked(const nvram_device_t* device, uint32_t index, int* write_lock_enabled, int* read_lock_enabled) argument 173 device_create_space(const nvram_device_t* device, uint32_t index, uint64_t size_in_bytes, const nvram_control_t* control_list, uint32_t list_size, const uint8_t* authorization_value, uint32_t authorization_value_size) argument 198 device_delete_space(const nvram_device_t* device, uint32_t index, const uint8_t* authorization_value, uint32_t authorization_value_size) argument 213 device_disable_create(const nvram_device_t* device) argument 220 device_write_space(const nvram_device_t* device, uint32_t index, const uint8_t* buffer, uint64_t buffer_size, const uint8_t* authorization_value, uint32_t authorization_value_size) argument 238 device_read_space(const nvram_device_t* device, uint32_t index, uint64_t num_bytes_to_read, const uint8_t* authorization_value, uint32_t authorization_value_size, uint8_t* buffer, uint64_t* bytes_read) argument 260 device_enable_write_lock(const nvram_device_t* device, uint32_t index, const uint8_t* authorization_value, uint32_t authorization_value_size) argument 275 device_enable_read_lock(const nvram_device_t* device, uint32_t index, const uint8_t* authorization_value, uint32_t authorization_value_size) argument 290 device_nvram_device_close(struct hw_device_t* device) argument [all...] |
/system/core/trusty/gatekeeper/ |
H A D | module.cpp | 28 hw_device_t **device) { 36 *device = gatekeeper->hw_device(); 27 trusty_gatekeeper_open(const hw_module_t *module, const char *name, hw_device_t **device) argument
|
/system/core/trusty/keymaster/ |
H A D | module.cpp | 27 * Generic device handling 29 static int trusty_keymaster_open(const hw_module_t* module, const char* name, hw_device_t** device) { argument 38 *device = dev->hw_device(); 39 // Do not delete dev; it will get cleaned up when the caller calls device->close(), and must
|
/system/core/trusty/storage/proxy/ |
H A D | ipc.h | 21 int ipc_connect(const char *device, const char *service_name);
|
/system/media/brillo/audio/audioservice/test/ |
H A D | brillo_audio_manager_test.cpp | 91 auto device = BAudioDeviceInfo_new(TYPE_UNKNOWN); local 94 EXPECT_EQ(BAudioManager_setInputDevice(nullptr, device), EINVAL); 95 BAudioDeviceInfo_delete(device); 100 auto device = BAudioDeviceInfo_new(TYPE_WIRED_HEADSET_MIC); local 104 EXPECT_EQ(BAudioManager_setInputDevice(bam, device), 0); 105 BAudioDeviceInfo_delete(device); 110 auto device = BAudioDeviceInfo_new(TYPE_BUILTIN_MIC); local 114 EXPECT_EQ(BAudioManager_setInputDevice(bam, device), 0); 115 BAudioDeviceInfo_delete(device); 120 auto device local 131 auto device = BAudioDeviceInfo_new(TYPE_WIRED_HEADSET); local 141 auto device = BAudioDeviceInfo_new(TYPE_BUILTIN_SPEAKER); local 151 auto device = BAudioDeviceInfo_new(TYPE_WIRED_HEADPHONES); local 161 auto device = BAudioDeviceInfo_new(TYPE_WIRED_HEADPHONES); local 250 auto device = BAudioDeviceInfo_new(TYPE_WIRED_HEADSET_MIC); local 258 auto device = BAudioDeviceInfo_new(TYPE_WIRED_HEADPHONES); local 360 auto device = BAudioDeviceInfo_new(TYPE_WIRED_HEADPHONES); local 373 auto device = BAudioDeviceInfo_new(TYPE_WIRED_HEADPHONES); local 387 auto device = BAudioDeviceInfo_new(TYPE_WIRED_HEADPHONES); local 401 auto device = BAudioDeviceInfo_new(TYPE_WIRED_HEADPHONES); local 415 auto device = BAudioDeviceInfo_new(TYPE_WIRED_HEADPHONES); local [all...] |