Home
last modified time | relevance | path

Searched refs:device (Results 1 – 25 of 944) sorted by relevance

12345678910>>...38

/system/nvram/hal/tests/
Dnvram_hal_test.cc86 ScopedNvramSpace(SafeScopedNvramDevice* device, uint32_t index, uint32_t size) in ScopedNvramSpace() argument
87 : ScopedNvramSpace(device, in ScopedNvramSpace()
95 ScopedNvramSpace(SafeScopedNvramDevice* device, in ScopedNvramSpace() argument
99 : ScopedNvramSpace(device, in ScopedNvramSpace()
105 ScopedNvramSpace(SafeScopedNvramDevice* device, in ScopedNvramSpace() argument
110 : device_(device), in ScopedNvramSpace()
137 bool CleanBurnSpaces(SafeScopedNvramDevice* device) { in CleanBurnSpaces() argument
147 if (device->GetSpaceList(&space_index_list) != NV_RESULT_SUCCESS) { in CleanBurnSpaces()
153 if (device->IsSpaceLocked(index, &write_lock, &read_lock) != in CleanBurnSpaces()
159 nvram_result_t result = device->DeleteSpace(index, kNoAuth); in CleanBurnSpaces()
[all …]
/system/core/fastboot/device/
Dcommands.cpp74 static bool IsSnapshotUpdateInProgress(FastbootDevice* device) { in IsSnapshotUpdateInProgress() argument
75 auto hal = device->boot1_1(); in IsSnapshotUpdateInProgress()
83 static bool IsProtectedPartitionDuringMerge(FastbootDevice* device, const std::string& name) { in IsProtectedPartitionDuringMerge() argument
89 return IsSnapshotUpdateInProgress(device); in IsProtectedPartitionDuringMerge()
92 static void GetAllVars(FastbootDevice* device, const std::string& name, in GetAllVars() argument
96 if (!handlers.get(device, std::vector<std::string>(), &message)) { in GetAllVars()
99 device->WriteInfo(android::base::StringPrintf("%s:%s", name.c_str(), message.c_str())); in GetAllVars()
103 auto all_args = handlers.get_all_args(device); in GetAllVars()
106 if (!handlers.get(device, args, &message)) { in GetAllVars()
110 device->WriteInfo(android::base::StringPrintf("%s:%s:%s", name.c_str(), arg_string.c_str(), in GetAllVars()
[all …]
Dvariables.h24 bool GetVersion(FastbootDevice* device, const std::vector<std::string>& args, std::string* message);
25 bool GetBootloaderVersion(FastbootDevice* device, const std::vector<std::string>& args,
27 bool GetBasebandVersion(FastbootDevice* device, const std::vector<std::string>& args,
29 bool GetOsVersion(FastbootDevice* device, const std::vector<std::string>& args,
31 bool GetVndkVersion(FastbootDevice* device, const std::vector<std::string>& args,
33 bool GetProduct(FastbootDevice* device, const std::vector<std::string>& args, std::string* message);
34 bool GetSerial(FastbootDevice* device, const std::vector<std::string>& args, std::string* message);
35 bool GetSecure(FastbootDevice* device, const std::vector<std::string>& args, std::string* message);
36 bool GetCurrentSlot(FastbootDevice* device, const std::vector<std::string>& args,
38 bool GetSlotCount(FastbootDevice* device, const std::vector<std::string>& args,
[all …]
Dcommands.h37 bool DownloadHandler(FastbootDevice* device, const std::vector<std::string>& args);
38 bool SetActiveHandler(FastbootDevice* device, const std::vector<std::string>& args);
39 bool ShutDownHandler(FastbootDevice* device, const std::vector<std::string>& args);
40 bool RebootHandler(FastbootDevice* device, const std::vector<std::string>& args);
41 bool RebootBootloaderHandler(FastbootDevice* device, const std::vector<std::string>& args);
42 bool RebootFastbootHandler(FastbootDevice* device, const std::vector<std::string>& args);
43 bool RebootRecoveryHandler(FastbootDevice* device, const std::vector<std::string>& args);
44 bool GetVarHandler(FastbootDevice* device, const std::vector<std::string>& args);
45 bool EraseHandler(FastbootDevice* device, const std::vector<std::string>& args);
46 bool FlashHandler(FastbootDevice* device, const std::vector<std::string>& args);
[all …]
/system/bt/bta/vc/
Dvc.cc82 auto device = volume_control_devices_.FindByAddress(address); in Connect() local
83 if (!device) { in Connect()
86 device->connecting_actively = true; in Connect()
110 VolumeControlDevice* device = in OnGattConnected() local
112 if (!device) { in OnGattConnected()
119 device_cleanup_helper(device, device->connecting_actively); in OnGattConnected()
123 device->connection_id = connection_id; in OnGattConnected()
125 if (device->IsEncryptionEnabled()) { in OnGattConnected()
130 if (!device->EnableEncryption(enc_callback_static)) { in OnGattConnected()
131 device_cleanup_helper(device, device->connecting_actively); in OnGattConnected()
[all …]
Ddevices_test.cc109 VolumeControlDevice* device = devices_->FindByAddress(test_address_1); in TEST_F() local
110 ASSERT_NE(nullptr, device); in TEST_F()
111 ASSERT_EQ(test_address_1, device->address); in TEST_F()
146 VolumeControlDevice* device = devices_->FindByAddress(test_address); in TEST_F() local
147 device->connection_id = connection_id; in TEST_F()
148 device->change_counter = change_counter; in TEST_F()
149 device->volume_control_point_handle = control_point_handle; in TEST_F()
176 VolumeControlDevice* device = devices_->FindByAddress(test_address); in TEST_F() local
177 device->connection_id = connection_id; in TEST_F()
178 device->change_counter = change_counter; in TEST_F()
[all …]
/system/core/libusbhost/include/usbhost/
Dusbhost.h107 void usb_device_close(struct usb_device *device);
113 int usb_device_get_fd(struct usb_device *device);
118 const char* usb_device_get_name(struct usb_device *device);
123 int usb_device_get_unique_id(struct usb_device *device);
135 uint16_t usb_device_get_vendor_id(struct usb_device *device);
138 uint16_t usb_device_get_product_id(struct usb_device *device);
141 const struct usb_device_descriptor* usb_device_get_device_descriptor(struct usb_device *device);
157 int usb_device_get_string_ucs2(struct usb_device* device, int id, int timeout, void** ucs2_out,
161 size_t usb_device_get_descriptors_length(const struct usb_device* device);
164 const unsigned char* usb_device_get_raw_descriptors(const struct usb_device* device);
[all …]
/system/extras/tests/bootloader/
Dhaltest.py25 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.root()
57 self.device.wait()
69 self.device.root()
[all …]
/system/nvram/client/
Dnvram_client.c101 static int HandleGetTotalSize(nvram_device_t* device, char* args[]) { in HandleGetTotalSize() argument
104 nvram_result_t result = device->get_total_size_in_bytes(device, &total_size); in HandleGetTotalSize()
113 static int HandleGetAvailableSize(nvram_device_t* device, char* args[]) { in HandleGetAvailableSize() argument
117 device->get_available_size_in_bytes(device, &available_size); in HandleGetAvailableSize()
126 static int HandleGetMaxSpaceSize(nvram_device_t* device, char* args[]) { in HandleGetMaxSpaceSize() argument
130 device->get_max_space_size_in_bytes(device, &max_space_size); in HandleGetMaxSpaceSize()
139 static int HandleGetMaxSpaces(nvram_device_t* device, char* args[]) { in HandleGetMaxSpaces() argument
142 nvram_result_t result = device->get_max_spaces(device, &max_spaces); in HandleGetMaxSpaces()
151 static int HandleGetSpaceList(nvram_device_t* device, char* args[]) { in HandleGetSpaceList() argument
154 nvram_result_t result = device->get_space_list(device, 0, NULL, &list_size); in HandleGetSpaceList()
[all …]
/system/bt/gd/storage/
Ddevice_test.cc43 …Device device(&config, &memory_only_config, address, Device::ConfigKeyAddressType::LEGACY_KEY_ADDR… in TEST() local
44 ASSERT_FALSE(device.Exists()); in TEST()
45 ASSERT_FALSE(device.GetClassOfDevice()); in TEST()
68 …Device device(&config, &memory_only_config, address, Device::ConfigKeyAddressType::CLASSIC_ADDRESS… in TEST() local
69 ASSERT_FALSE(device.Exists()); in TEST()
70 ASSERT_FALSE(device.GetClassOfDevice()); in TEST()
93 …Device device(&config, &memory_only_config, address, Device::ConfigKeyAddressType::LE_IDENTITY_ADD… in TEST() local
94 ASSERT_FALSE(device.Exists()); in TEST()
95 ASSERT_FALSE(device.GetClassOfDevice()); in TEST()
113 …Device device(&config, &memory_only_config, address, Device::ConfigKeyAddressType::LEGACY_KEY_ADDR… in TEST() local
[all …]
/system/bt/binder/android/bluetooth/
DIBluetoothHeadsetClient.aidl31 boolean connect(in BluetoothDevice device, in AttributionSource attributionSource); in connect() argument
33 boolean disconnect(in BluetoothDevice device, in AttributionSource attributionSource); in disconnect() argument
40 int getConnectionState(in BluetoothDevice device, in AttributionSource attributionSource); in getConnectionState() argument
42 …boolean setConnectionPolicy(in BluetoothDevice device, int connectionPolicy, in AttributionSource … in setConnectionPolicy() argument
44 int getConnectionPolicy(in BluetoothDevice device, in AttributionSource attributionSource); in getConnectionPolicy() argument
47 … boolean startVoiceRecognition(in BluetoothDevice device, in AttributionSource attributionSource); in startVoiceRecognition() argument
49 boolean stopVoiceRecognition(in BluetoothDevice device, in AttributionSource attributionSource); in stopVoiceRecognition() argument
52 …List<BluetoothHeadsetClientCall> getCurrentCalls(in BluetoothDevice device, in AttributionSource a… in getCurrentCalls() argument
54 Bundle getCurrentAgEvents(in BluetoothDevice device, in AttributionSource attributionSource); in getCurrentAgEvents() argument
57 boolean acceptCall(in BluetoothDevice device, int flag, in AttributionSource attributionSource); in acceptCall() argument
[all …]
DIBluetoothA2dp.aidl34 boolean connect(in BluetoothDevice device); in connect() argument
36 … boolean connectWithAttribution(in BluetoothDevice device, in AttributionSource attributionSource); in connectWithAttribution() argument
39 boolean disconnect(in BluetoothDevice device); in disconnect() argument
41 …boolean disconnectWithAttribution(in BluetoothDevice device, in AttributionSource attributionSourc… in disconnectWithAttribution() argument
54 int getConnectionState(in BluetoothDevice device); in getConnectionState() argument
56 …int getConnectionStateWithAttribution(in BluetoothDevice device, in AttributionSource attributionS… in getConnectionStateWithAttribution() argument
58 boolean setActiveDevice(in BluetoothDevice device, in AttributionSource attributionSource); in setActiveDevice() argument
62 …boolean setConnectionPolicy(in BluetoothDevice device, int connectionPolicy, in AttributionSource … in setConnectionPolicy() argument
64 int getConnectionPolicy(in BluetoothDevice device, in AttributionSource attributionSource); in getConnectionPolicy() argument
70 boolean isA2dpPlaying(in BluetoothDevice device, in AttributionSource attributionSource); in isA2dpPlaying() argument
[all …]
DIBluetoothHidHost.aidl30 boolean connect(in BluetoothDevice device, in AttributionSource attributionSource); in connect() argument
32 boolean disconnect(in BluetoothDevice device, in AttributionSource attributionSource); in disconnect() argument
38 int getConnectionState(in BluetoothDevice device, in AttributionSource attributionSource); in getConnectionState() argument
40 …boolean setConnectionPolicy(in BluetoothDevice device, int connectionPolicy, in AttributionSource … in setConnectionPolicy() argument
42 int getConnectionPolicy(in BluetoothDevice device, in AttributionSource attributionSource); in getConnectionPolicy() argument
44 boolean getProtocolMode(in BluetoothDevice device, in AttributionSource attributionSource); in getProtocolMode() argument
46 boolean virtualUnplug(in BluetoothDevice device, in AttributionSource attributionSource); in virtualUnplug() argument
48 …boolean setProtocolMode(in BluetoothDevice device, int protocolMode, in AttributionSource attribut… in setProtocolMode() argument
50 …boolean getReport(in BluetoothDevice device, byte reportType, byte reportId, int bufferSize, in At… in getReport() argument
52 …boolean setReport(in BluetoothDevice device, byte reportType, String report, in AttributionSource … in setReport() argument
[all …]
DIBluetooth.aidl103 …boolean createBond(in BluetoothDevice device, in int transport, in OobData p192Data, in OobData p2… in createBond() argument
105 boolean cancelBondProcess(in BluetoothDevice device, in AttributionSource attributionSource); in cancelBondProcess() argument
107 boolean removeBond(in BluetoothDevice device, in AttributionSource attributionSource); in removeBond() argument
109 int getBondState(in BluetoothDevice device, in AttributionSource attributionSource); in getBondState() argument
111 …boolean isBondingInitiatedLocally(in BluetoothDevice device, in AttributionSource attributionSourc… in isBondingInitiatedLocally() argument
116 int getConnectionState(in BluetoothDevice device); in getConnectionState() argument
118 …int getConnectionStateWithAttribution(in BluetoothDevice device, in AttributionSource attributionS… in getConnectionStateWithAttribution() argument
120 String getRemoteName(in BluetoothDevice device, in AttributionSource attributionSource); in getRemoteName() argument
122 int getRemoteType(in BluetoothDevice device, in AttributionSource attributionSource); in getRemoteType() argument
125 String getRemoteAlias(in BluetoothDevice device); in getRemoteAlias() argument
[all …]
DIBluetoothHeadset.aidl42 int getConnectionState(in BluetoothDevice device); in getConnectionState() argument
44 …int getConnectionStateWithAttribution(in BluetoothDevice device, in AttributionSource attributionS… in getConnectionStateWithAttribution() argument
46 … boolean startVoiceRecognition(in BluetoothDevice device, in AttributionSource attributionSource); in startVoiceRecognition() argument
48 boolean stopVoiceRecognition(in BluetoothDevice device, in AttributionSource attributionSource); in stopVoiceRecognition() argument
50 boolean isAudioConnected(in BluetoothDevice device, in AttributionSource attributionSource); in isAudioConnected() argument
52 …boolean sendVendorSpecificResultCode(in BluetoothDevice device, in String command, in String arg, … in sendVendorSpecificResultCode() argument
57 boolean connect(in BluetoothDevice device); in connect() argument
59 … boolean connectWithAttribution(in BluetoothDevice device, in AttributionSource attributionSource); in connectWithAttribution() argument
62 boolean disconnect(in BluetoothDevice device); in disconnect() argument
64 …boolean disconnectWithAttribution(in BluetoothDevice device, in AttributionSource attributionSourc… in disconnectWithAttribution() argument
[all …]
DIBluetoothHidDeviceCallback.aidl23 void onAppStatusChanged(in BluetoothDevice device, boolean registered); in onAppStatusChanged() argument
24 void onConnectionStateChanged(in BluetoothDevice device, in int state); in onConnectionStateChanged() argument
25 void onGetReport(in BluetoothDevice device, in byte type, in byte id, in int bufferSize); in onGetReport() argument
26 void onSetReport(in BluetoothDevice device, in byte type, in byte id, in byte[] data); in onSetReport() argument
27 void onSetProtocol(in BluetoothDevice device, in byte protocol); in onSetProtocol() argument
28 void onInterruptData(in BluetoothDevice device, in byte reportId, in byte[] data); in onInterruptData() argument
29 void onVirtualCableUnplug(in BluetoothDevice device); in onVirtualCableUnplug() argument
/system/gatekeeper/tests/
Dgatekeeper_device_test.cpp32 gatekeeper_device_initialize(&device); in SetUp()
36 gatekeeper_close(device); in TearDown()
51 gatekeeper_device_t *device; member in GateKeeperDeviceTest
63 ret = device->enroll(device, 400, NULL, 0, NULL, 0, password_payload, password_len, in TEST_F()
70 ret = device->verify(device, 400, 0, password_handle, password_handle_length, in TEST_F()
87 ret = device->enroll(device, 400, NULL, 0, NULL, 0, password_payload, password_len, in TEST_F()
93 ret = device->verify(device, 400, 0, password_handle, password_handle_length, in TEST_F()
114 ret = device->enroll(device, 400, NULL, 0, NULL, 0, password_payload, password_len, in TEST_F()
125 ret = device->verify(device, 400, 0, password_handle, password_handle_length, in TEST_F()
142 ret = device->verify(device, 400, 0, password_handle, password_handle_length, in TEST_F()
[all …]
/system/bt/gd/security/record/
Dsecurity_record_storage.cc28 …age::Mutation& mutation, std::shared_ptr<record::SecurityRecord> record, storage::Device& device) { in SetClassicData() argument
29 if (*device.GetDeviceType() == hci::DeviceType::LE) { in SetClassicData()
33 LOG_WARN("Type: %d", static_cast<int>(*device.GetDeviceType())); in SetClassicData()
34 mutation.Add(device.Classic().SetLinkKey(record->GetLinkKey())); in SetClassicData()
35 mutation.Add(device.Classic().SetLinkKeyType(record->GetKeyType())); in SetClassicData()
39 …age::Mutation& mutation, std::shared_ptr<record::SecurityRecord> record, storage::Device& device) { in SetLeData() argument
40 if (*device.GetDeviceType() == hci::DeviceType::BR_EDR) { in SetLeData()
44 auto le_device = device.Le(); in SetLeData()
94 …age::Mutation& mutation, std::shared_ptr<record::SecurityRecord> record, storage::Device& device) { in SetAuthenticationData() argument
95 device.SetIsAuthenticated((record->IsAuthenticated() ? 1 : 0)); in SetAuthenticationData()
[all …]
Dsecurity_record_storage_test.cc72 auto device = storage_module_->GetDeviceByClassicMacAddress(remote.GetAddress()); in TEST_F() local
73 ASSERT_TRUE(device.GetDeviceType()); in TEST_F()
74 ASSERT_EQ(device.Classic().GetLinkKeyType(), record->GetKeyType()); in TEST_F()
77 ASSERT_EQ(link_key[i], device.Classic().GetLinkKey()->bytes[i]); in TEST_F()
107 auto device = storage_module_->GetDeviceByClassicMacAddress(identity_address.GetAddress()); in TEST_F() local
108 ASSERT_EQ(hci::DeviceType::LE, device.GetDeviceType()); in TEST_F()
109 ASSERT_EQ(device.Le().GetAddressType(), identity_address.GetAddressType()); in TEST_F()
112 ASSERT_EQ(*device.Le().GetPeerId(), "66904076276957710d39f7809e2f49cf01010203040506"); in TEST_F()
115 …ASSERT_EQ(*device.Le().GetPeerEncryptionKeys(), "070c0e161855c672645ad8b1f69394a748ac91f4ef6d41102… in TEST_F()
118 …ASSERT_EQ(device.Le().GetPeerSignatureResolvingKeys(), "000000000883ae44d6779e901d25cdd7b6f4578502… in TEST_F()
[all …]
/system/bt/gd/l2cap/classic/internal/
Dlink_manager.cc33 void LinkManager::ConnectFixedChannelServices(hci::Address device, in ConnectFixedChannelServices() argument
46 auto* link = GetLink(device); in ConnectFixedChannelServices()
74 auto pending_link = pending_links_.find(device); in ConnectFixedChannelServices()
77 pending_links_.try_emplace(device); in ConnectFixedChannelServices()
78 pending_link = pending_links_.find(device); in ConnectFixedChannelServices()
82 acl_manager_->CreateConnection(device); in ConnectFixedChannelServices()
86 …hci::Address device, Link::PendingDynamicChannelConnection pending_dynamic_channel_connection, Psm… in ConnectDynamicChannelServices() argument
90 auto* link = GetLink(device); in ConnectDynamicChannelServices()
92 acl_manager_->CreateConnection(device); in ConnectDynamicChannelServices()
93 if (pending_dynamic_channels_.find(device) != pending_dynamic_channels_.end()) { in ConnectDynamicChannelServices()
[all …]
/system/core/libusbhost/
Dusbhost.c364 void usb_device_close(struct usb_device *device) in usb_device_close() argument
366 close(device->fd); in usb_device_close()
367 free(device); in usb_device_close()
372 struct usb_device *device = calloc(1, sizeof(struct usb_device)); in usb_device_new() local
379 length = read(fd, device->desc, sizeof(device->desc)); in usb_device_new()
384 strncpy(device->dev_name, dev_name, sizeof(device->dev_name) - 1); in usb_device_new()
385 device->fd = fd; in usb_device_new()
386 device->desc_length = length; in usb_device_new()
388 device->writeable = 1; in usb_device_new()
389 return device; in usb_device_new()
[all …]
/system/core/init/
Dperfboot.py91 def __init__(self, interval, device): argument
93 self._device = device
94 self._temp_paths = device.shell(
96 self._product = device.get_prop('ro.build.product')
170 def disable_dropbox(device): argument
172 device.root()
173 device.wait()
174 device.shell(['rm', '-rf', '/system/data/dropbox'])
175 original_dropbox_max_files = device.shell(
177 device.shell(['settings', 'put', 'global', 'dropbox_max_files', '0'])
[all …]
/system/nvram/hal/
Dnvram_device_adapter.cpp35 nvram_result_t Execute(const nvram_device_t* device, in Execute() argument
39 const_cast<nvram_device_t*>(device)); in Execute()
61 nvram_result_t device_get_total_size_in_bytes(const nvram_device_t* device, in device_get_total_size_in_bytes() argument
66 device, std::move(get_info_request), &get_info_response); in device_get_total_size_in_bytes()
71 nvram_result_t device_get_available_size_in_bytes(const nvram_device_t* device, in device_get_available_size_in_bytes() argument
76 device, std::move(get_info_request), &get_info_response); in device_get_available_size_in_bytes()
81 nvram_result_t device_get_max_space_size_in_bytes(const nvram_device_t* device, in device_get_max_space_size_in_bytes() argument
86 device, std::move(get_info_request), &get_info_response); in device_get_max_space_size_in_bytes()
91 nvram_result_t device_get_max_spaces(const nvram_device_t* device, in device_get_max_spaces() argument
96 device, std::move(get_info_request), &get_info_response); in device_get_max_spaces()
[all …]
/system/bt/gd/neighbor/cert/
Dpy_neighbor.py32 def __init__(self, device, inquiry_msg): argument
33 self.inquiry_event_stream = EventStream(device.neighbor.SetInquiryMode(inquiry_msg))
44 def __init__(self, device): argument
45 … self.remote_name_stream = EventStream(device.neighbor.GetRemoteNameEvents(empty_proto.Empty()))
56 def __init__(self, device): argument
57 self.device = device
64 return InquirySession(self.device, inquiry_msg)
73 self.device.hci.RequestEvent(msg)
81 self.device.neighbor.ReadRemoteName(
84 return GetRemoteNameSession(self.device)
/system/apex/tests/src/com/android/tests/apex/
DApexRollbackTests.java28 import com.android.tradefed.device.DeviceNotAvailableException;
29 import com.android.tradefed.device.ITestDevice;
30 import com.android.tradefed.device.ITestDevice.ApexInfo;
96 ITestDevice device = getDevice(); in testAutomaticBootLoopRecovery() local
99 device.getBooleanProperty("sys.init.updatable_crashing", false); in testAutomaticBootLoopRecovery()
100 String crashingProcess = device.getProperty("sys.init.updatable_crashing_process_name"); in testAutomaticBootLoopRecovery()
112 assertThat(device.setProperty("persist.debug.trigger_watchdog.apex", in testAutomaticBootLoopRecovery()
117 String sessionIdToCheck = device.executeShellCommand("pm get-stagedsessions --only-ready " in testAutomaticBootLoopRecovery()
128 device.reboot(); in testAutomaticBootLoopRecovery()
132 Set<ApexInfo> activatedApexes = device.getActiveApexes(); in testAutomaticBootLoopRecovery()
[all …]

12345678910>>...38