/system/bt/stack/l2cap/ |
D | l2cap_client.c | 55 static void fragment_packet(l2cap_client_t *client, buffer_t *packet); 56 static void dispatch_fragments(l2cap_client_t *client); 121 void l2cap_client_free(l2cap_client_t *client) { in l2cap_client_free() argument 122 if (!client) in l2cap_client_free() 125 list_remove(l2cap_clients, client); in l2cap_client_free() 126 l2cap_client_disconnect(client); in l2cap_client_free() 127 list_free(client->outbound_fragments); in l2cap_client_free() 128 osi_free(client); in l2cap_client_free() 131 bool l2cap_client_connect(l2cap_client_t *client, const bt_bdaddr_t *remote_bdaddr, uint16_t psm) { in l2cap_client_connect() argument 132 assert(client != NULL); in l2cap_client_connect() [all …]
|
/system/bt/service/ipc/binder/ |
D | bluetooth_low_energy_binder_server.cpp | 65 auto client = GetLEClient(client_id); in Connect() local 66 if (!client) { in Connect() 71 return client->Connect(std::string(address), is_direct); in Connect() 80 auto client = GetLEClient(client_id); in Disconnect() local 81 if (!client) { in Disconnect() 86 return client->Disconnect(std::string(address)); in Disconnect() 97 auto client = GetLEClient(client_id); in SetMtu() local 98 if (!client) { in SetMtu() 103 return client->SetMtu(address, mtu); in SetMtu() 113 auto client = GetLEClient(client_id); in StartScan() local [all …]
|
/system/bt/hci/src/ |
D | hci_inject.c | 135 client_t *client = (client_t *)osi_calloc(sizeof(client_t)); in accept_ready() local 137 client->socket = socket; in accept_ready() 139 if (!list_append(clients, client)) { in accept_ready() 141 client_free(client); in accept_ready() 145 socket_register(socket, thread_get_reactor(thread), client, read_ready, NULL); in accept_ready() 152 client_t *client = (client_t *)context; in read_ready() local 154 …ssize_t ret = socket_read(client->socket, client->buffer + client->buffer_size, sizeof(client->buf… in read_ready() 156 list_remove(clients, client); in read_ready() 159 client->buffer_size += ret; in read_ready() 161 while (client->buffer_size > 3) { in read_ready() [all …]
|
/system/bt/stack/include/ |
D | l2cap_client.h | 29 void (*connected)(l2cap_client_t *client, void *context); 30 void (*disconnected)(l2cap_client_t *client, void *context); 31 void (*read_ready)(l2cap_client_t *client, buffer_t *packet, void *context); 32 void (*write_ready)(l2cap_client_t *client, void *context); 49 void l2cap_client_free(l2cap_client_t *client); 59 bool l2cap_client_connect(l2cap_client_t *client, const bt_bdaddr_t *remote_bdaddr, uint16_t psm); 63 void l2cap_client_disconnect(l2cap_client_t *client); 67 bool l2cap_client_is_connected(const l2cap_client_t *client); 74 bool l2cap_client_write(l2cap_client_t *client, buffer_t *packet);
|
/system/core/logd/ |
D | FlushCommand.cpp | 54 void FlushCommand::runSocketCommand(SocketClient *client) { in runSocketCommand() argument 62 if (entry->mClient == client) { in runSocketCommand() 84 entry = new LogTimeEntry(mReader, client, mNonBlock, mTail, mLogMask, in runSocketCommand() 89 client->incRef(); in runSocketCommand() 96 bool FlushCommand::hasReadLogs(SocketClient *client) { in hasReadLogs() argument 97 return clientHasLogCredentials(client); in hasReadLogs() 100 static bool clientHasSecurityCredentials(SocketClient *client) { in clientHasSecurityCredentials() argument 101 return (client->getUid() == AID_SYSTEM) || (client->getGid() == AID_SYSTEM); in clientHasSecurityCredentials() 104 bool FlushCommand::hasSecurityLogs(SocketClient *client) { in hasSecurityLogs() argument 105 return clientHasSecurityCredentials(client); in hasSecurityLogs()
|
D | LogTimes.cpp | 27 LogTimeEntry::LogTimeEntry(LogReader &reader, SocketClient *client, in LogTimeEntry() argument 42 mClient(client), in LogTimeEntry() 83 SocketClient *client = me->mClient; in threadStop() local 100 reader.release(client); in threadStop() 103 if (client) { in threadStop() 104 client->decRef(); in threadStop() 120 SocketClient *client = me->mClient; in threadStart() local 121 if (!client) { in threadStart() 128 bool privileged = FlushCommand::hasReadLogs(client); in threadStart() 129 bool security = FlushCommand::hasSecurityLogs(client); in threadStart() [all …]
|
D | FlushCommand.h | 45 virtual void runSocketCommand(SocketClient *client); 47 static bool hasReadLogs(SocketClient *client); 48 static bool hasSecurityLogs(SocketClient *client);
|
/system/core/libcutils/tests/ |
D | sockets_test.cpp | 32 static void TestConnectedSockets(cutils_socket_t server, cutils_socket_t client, in TestConnectedSockets() argument 35 ASSERT_NE(INVALID_SOCKET, client); in TestConnectedSockets() 42 ASSERT_EQ(3, send(client, "foo", 3, 0)); in TestConnectedSockets() 58 EXPECT_EQ(3, recv(client, buffer, sizeof(buffer), 0)); in TestConnectedSockets() 66 EXPECT_EQ(11, socket_send_buffers(client, socket_buffers, 3)); in TestConnectedSockets() 71 EXPECT_EQ(0, socket_close(client)); in TestConnectedSockets() 117 cutils_socket_t client = socket_network_client( in TEST() local 120 TestConnectedSockets(server, client, SOCK_DGRAM); in TEST() 128 cutils_socket_t client = socket_network_client( in TEST() local 133 TestConnectedSockets(handler, client, SOCK_STREAM); in TEST() [all …]
|
/system/core/fastboot/ |
D | socket_test.cpp | 36 std::unique_ptr<Socket>* client, in MakeConnectedSockets() argument 44 *client = Socket::NewClient(protocol, hostname, (*server)->GetLocalPort(), nullptr); in MakeConnectedSockets() 45 if (*client == nullptr) { in MakeConnectedSockets() 78 std::unique_ptr<Socket> server, client; in TEST() local 81 ASSERT_TRUE(MakeConnectedSockets(protocol, &server, &client)); in TEST() 83 EXPECT_TRUE(SendString(client.get(), "foo")); in TEST() 87 EXPECT_TRUE(ReceiveString(client.get(), "bar baz")); in TEST() 92 std::unique_ptr<Socket> server, client; in TEST() local 96 ASSERT_TRUE(MakeConnectedSockets(protocol, &server, &client)); in TEST() 101 EXPECT_EQ(-1, client->Receive(buffer, sizeof(buffer), kShortTimeoutMs)); in TEST() [all …]
|
/system/nativepower/example/ |
D | power_example.cc | 49 android::PowerManagerClient client; in main() local 50 CHECK(client.Init()); in main() 54 CHECK(client.Reboot(android::RebootReason::DEFAULT)); in main() 57 CHECK(client.ShutDown(android::ShutdownReason::DEFAULT)); in main() 60 CHECK(client.Suspend(base::SysInfo::Uptime(), in main() 65 client.CreateWakeLock("power_example", "power")); in main()
|
/system/netd/server/ |
D | FwmarkServer.cpp | 38 bool FwmarkServer::onDataAvailable(SocketClient* client) { in onDataAvailable() argument 40 int error = processClient(client, &socketFd); in onDataAvailable() 47 client->sendData(&error, sizeof(error)); in onDataAvailable() 55 int FwmarkServer::processClient(SocketClient* client, int* socketFd) { in processClient() argument 77 int messageLength = TEMP_FAILURE_RETRY(recvmsg(client->getSocket(), &message, 0)); in processClient() 88 Permission permission = mNetworkController->getPermissionForUser(client->getUid()); in processClient() 157 fwmark.netId = mNetworkController->getNetworkForConnect(client->getUid()); in processClient() 191 (ret == 0) ? strtoul(portstr, NULL, 10) : 0, client->getUid()); in processClient() 203 if (int ret = mNetworkController->checkUserNetworkAccess(client->getUid(), in processClient() 208 fwmark.protectedFromVpn = mNetworkController->canProtect(client->getUid()); in processClient() [all …]
|
D | CommandListener.cpp | 1521 int CommandListener::NetworkCommand::syntaxError(SocketClient* client, const char* message) { in syntaxError() argument 1522 client->sendMsg(ResponseCode::CommandSyntaxError, message, false); in syntaxError() 1526 int CommandListener::NetworkCommand::operationError(SocketClient* client, const char* message, in operationError() argument 1529 client->sendMsg(ResponseCode::OperationFailed, message, true); in operationError() 1533 int CommandListener::NetworkCommand::success(SocketClient* client) { in success() argument 1534 client->sendMsg(ResponseCode::CommandOkay, "success", false); in success() 1538 int CommandListener::NetworkCommand::runCommand(SocketClient* client, int argc, char** argv) { in runCommand() argument 1540 return syntaxError(client, "Missing argument"); in runCommand() 1550 return syntaxError(client, "Incorrect number of arguments"); in runCommand() 1566 return syntaxError(client, "Unknown argument"); in runCommand() [all …]
|
/system/bt/service/test/ |
D | gatt_client_unittest.cpp | 103 std::unique_ptr<GattClient> client; in TEST_F() local 110 client = std::unique_ptr<GattClient>( in TEST_F() 151 ASSERT_TRUE(client.get() != nullptr); // Assert to terminate in case of error in TEST_F() 153 EXPECT_EQ(client_id0, client->GetInstanceId()); in TEST_F() 154 EXPECT_EQ(uuid0, client->GetAppIdentifier()); in TEST_F() 161 client.reset(); in TEST_F() 171 ASSERT_TRUE(client.get() == nullptr); // Assert to terminate in case of error in TEST_F()
|
/system/bt/service/common/ |
D | README | 2 and our client library. All source files here are under the "bluetooth" 3 subdirectory, which is the exported root path for the client static library. 10 This is so that client applications that link against the client library have
|
/system/bt/service/doc/ |
D | IBluetoothLowEnergy.txt | 22 * Registers a client application that can manage its own Low Energy 23 * instance. A special client interface ID will be returned in a callback to 30 * Unregisters a previously registered client with "client interface ID" 60 * Initiates a BLE device scan for the scan client with ID |client_id|, using 70 * Stops a previously initiated scan session for the client with ID 93 * client. Returns false in case of an error, e.g. this client has not started
|
/system/connectivity/shill/ |
D | libshill-client.pc.in | 3 Name: libshill-client 5 Description: shill client interface library
|
D | libshill-client-test.pc.in | 3 Name: libshill-client-test 5 Description: shill client interface mock library
|
/system/firewalld/ |
D | libfirewalld-client.pc.in | 3 Name: libfirewalld-client 5 Description: firewalld client interface library
|
D | libfirewalld-client-test.pc.in | 3 Name: libfirewalld-client-test 5 Description: firewalld client interface mock library
|
/system/update_engine/ |
D | libupdate_engine-client.pc.in | 3 Name: libupdate_engine-client 5 Description: update_engine client interface library
|
D | update_engine.gyp | 111 'action_name': 'update_engine-dbus-libcros-client', 218 'libdebugd-client', 219 'libsession_manager-client', 221 'libpower_manager-client', 222 'libupdate_engine-client', 223 'libshill-client', 318 # update_engine client library. 325 'libupdate_engine-client', 329 'client_library/client.cc', 337 # update_engine console client. [all …]
|
D | libupdate_engine-client-test.pc.in | 3 Name: libupdate_engine-client-test 5 Description: update_engine client interface mock library
|
/system/connectivity/apmanager/ |
D | libapmanager-client.pc.in | 3 Name: libapmanager-client 5 Description: apmanager client interface library
|
D | libapmanager-client-test.pc.in | 3 Name: libapmanager-client-test 5 Description: apmanager client interface mock library
|
/system/tpm/tpm_manager/ |
D | tpm_manager.gyp | 61 'client/tpm_nvram_dbus_proxy.cc', 62 'client/tpm_ownership_dbus_proxy.cc', 68 # A client command line utility. 73 'client/main.cc', 153 'client/tpm_nvram_dbus_proxy_test.cc', 154 'client/tpm_ownership_dbus_proxy_test.cc',
|