/device/google/cuttlefish/host/commands/modem_simulator/ |
D | modem_simulator.cpp | 58 modem_id_, channel_monitor_.get(), thread_looper_.get()); in RegisterModemService() 60 modem_id_, channel_monitor_.get(), thread_looper_.get()); in RegisterModemService() 62 modem_id_, channel_monitor_.get(), thread_looper_.get()); in RegisterModemService() 64 modem_id_, channel_monitor_.get(), thread_looper_.get()); in RegisterModemService() 66 modem_id_, channel_monitor_.get(), thread_looper_.get()); in RegisterModemService() 68 modem_id_, channel_monitor_.get(), thread_looper_.get()); in RegisterModemService() 70 modem_id_, channel_monitor_.get(), thread_looper_.get()); in RegisterModemService() 72 modem_id_, channel_monitor_.get(), thread_looper_.get()); in RegisterModemService() 74 netservice->SetupDependency(miscservice.get(), simservice.get(), in RegisterModemService() 75 dataservice.get()); in RegisterModemService() [all …]
|
D | channel_monitor.cpp | 167 iter->get()->SendCommandResponse(response); in SendUnsolicitedCommand() 176 if (iter->get()->client_fd == client) { in SendRemoteCommand() 177 iter->get()->SendCommandResponse(response); in SendRemoteCommand() 187 if (iter->get()->client_fd == client) { in CloseRemoteConnection() 188 iter->get()->client_fd->Close(); in CloseRemoteConnection() 189 iter->get()->is_valid = false; in CloseRemoteConnection() 218 if (iter->get()->is_valid) { in removeInvalidClients()
|
/device/generic/goldfish-opengl/android-emu/android/base/ |
D | Optional.h | 197 new (&get()) T(other.get()); in Optional() 202 new (&get()) T(std::move(other.get())); in Optional() 212 new (&get()) T(other.get()); in Optional() 222 new (&get()) T(std::move(other.get())); in Optional() 227 Optional(const T& value) : base_flag(true) { new (&get()) T(value); } in Optional() 229 Optional(T&& value) : base_flag(true) { new (&get()) T(std::move(value)); } in Optional() 234 new (&get()) T(std::forward<Args>(args)...); in Optional() 242 new (&get()) T(il); in Optional() 253 get() = other.get(); 260 new (&get()) T(other.get()); [all …]
|
/device/generic/goldfish-opengl/system/vulkan/ |
D | func_table.cpp | 57 auto vkEnc = HostConnection::get()->vkEncoder(); in entry_vkCreateInstance() 67 auto vkEnc = HostConnection::get()->vkEncoder(); in entry_vkDestroyInstance() 76 auto vkEnc = HostConnection::get()->vkEncoder(); in entry_vkEnumeratePhysicalDevices() 78 auto resources = ResourceTracker::get(); in entry_vkEnumeratePhysicalDevices() 87 auto vkEnc = HostConnection::get()->vkEncoder(); in entry_vkGetPhysicalDeviceFeatures() 96 auto vkEnc = HostConnection::get()->vkEncoder(); in entry_vkGetPhysicalDeviceFormatProperties() 109 auto vkEnc = HostConnection::get()->vkEncoder(); in entry_vkGetPhysicalDeviceImageFormatProperties() 119 auto vkEnc = HostConnection::get()->vkEncoder(); in entry_vkGetPhysicalDeviceProperties() 128 auto vkEnc = HostConnection::get()->vkEncoder(); in entry_vkGetPhysicalDeviceQueueFamilyProperties() 136 auto vkEnc = HostConnection::get()->vkEncoder(); in entry_vkGetPhysicalDeviceMemoryProperties() [all …]
|
D | goldfish_vulkan.cpp | 355 HostConnection *hostCon = HostConnection::get(); \ 365 goldfish_vk::ResourceTracker::get()->setupFeatures(rcEnc->featureInfo_const()); \ 368 auto hostCon = HostConnection::get(); \ 374 goldfish_vk::ResourceTracker::get()->setThreadingCallbacks(threadingCallbacks); \ 375 auto hostSupportsVulkan = goldfish_vk::ResourceTracker::get()->hostSupportsVulkan(); \ 402 VkResult res = goldfish_vk::ResourceTracker::get()->on_vkEnumerateInstanceExtensionProperties( in EnumerateInstanceExtensionProperties() 439 VkResult res = goldfish_vk::ResourceTracker::get()-> in GetMemoryZirconHandleFUCHSIA() 462 VkResult res = goldfish_vk::ResourceTracker::get()-> in GetMemoryZirconHandlePropertiesFUCHSIA() 482 VkResult res = goldfish_vk::ResourceTracker::get()-> in GetSemaphoreZirconHandleFUCHSIA() 501 VkResult res = goldfish_vk::ResourceTracker::get()-> in ImportSemaphoreZirconHandleFUCHSIA() [all …]
|
/device/google/cuttlefish/host/frontend/gcastv2/https/ |
D | SSLSocket.cpp | 48 mSSL(SSL_new(mCtx.get()), SSL_free), in SSLSocket() 58 SSL_set_accept_state(mSSL.get()); in SSLSocket() 60 SSL_set_connect_state(mSSL.get()); in SSLSocket() 62 SSL_set_bio(mSSL.get(), mBioR, mBioW); in SSLSocket() 67 mSSL.get(), path.c_str(), SSL_FILETYPE_PEM); in useCertificate() 72 mSSL.get(), path.c_str(), SSL_FILETYPE_PEM) in usePrivateKey() 73 && 1 == SSL_check_private_key(mSSL.get()); in usePrivateKey() 78 mCtx.get(), in useTrustedCertificates() 112 SSL_shutdown(mSSL.get()); in ~SSLSocket() 119 int n = SSL_peek(mSSL.get(), tmp, sizeof(tmp)); in postRecv() [all …]
|
/device/generic/goldfish/network/netmgr/commands/ |
D | wifi_command.cpp | 45 FILE* get() { return mFile; } in get() function in File 62 int get() const { return mFd; } in get() function in Fd 121 while (!feof(in.get())) { in writeConfig() 122 size_t bytesRead = fread(buffer, 1, sizeof(buffer), in.get()); in writeConfig() 123 if (bytesRead != sizeof(buffer) && ferror(in.get())) { in writeConfig() 128 size_t bytesWritten = fwrite(buffer, 1, bytesRead, out.get()); in writeConfig() 134 fprintf(out.get(), "\n\n"); in writeConfig() 137 fprintf(out.get(), "bss=%s\n", ap.second.ifName.c_str()); in writeConfig() 138 fprintf(out.get(), "ssid=%s\n", ap.second.ssid.c_str()); in writeConfig() 140 fprintf(out.get(), "wpa=2\n"); in writeConfig() [all …]
|
/device/google/coral/vibrator/tests/ |
D | test-hwapi.cpp | 109 return std::get<0>(info.param); in PrintParam() 120 auto func = std::get<1>(param); in TEST_P() 127 auto func = std::get<1>(param); in TEST_P() 144 auto name = std::get<0>(param); in TEST_P() 145 auto func = std::get<1>(param); in TEST_P() 157 auto name = std::get<0>(param); in TEST_P() 158 auto func = std::get<1>(param); in TEST_P() 170 auto func = std::get<1>(param); in TEST_P() 187 auto name = std::get<0>(param); in TEST_P() 188 auto func = std::get<1>(param); in TEST_P() [all …]
|
D | test-vibrator.cpp | 88 auto index = std::get<0>(effect); in Queue() 89 auto level = std::get<1>(effect); in Queue() 104 auto string = std::get<0>(head) + "," + std::get<0>(tail); in Queue() 105 auto duration = std::get<1>(head) + std::get<1>(tail); in Queue() 126 mMockApi = mockapi->get(); in createMock() 127 mMockCal = mockcal->get(); in createMock() 391 auto effect = std::get<0>(param); in TEST_P() 392 auto strength = std::get<1>(param); in TEST_P() 418 duration = std::get<1>(queue->second); in TEST_P() 423 EXPECT_CALL(*mMockApi, setEffectQueue(std::get<0>(queue->second))) in TEST_P() [all …]
|
/device/generic/goldfish/sensors/ |
D | multihal_sensors_epoll.cpp | 48 epollCtlAdd(epollFd.get(), m_qemuSensorsFd.get()); in qemuSensorListenerThread() 49 epollCtlAdd(epollFd.get(), m_sensorThreadFd.get()); in qemuSensorListenerThread() 56 const int n = TEMP_FAILURE_RETRY(epoll_wait(epollFd.get(), in qemuSensorListenerThread() 70 if (fd == m_qemuSensorsFd.get()) { in qemuSensorListenerThread() 76 parseQemuSensorEvent(m_qemuSensorsFd.get(), &protocolState); in qemuSensorListenerThread() 78 } else if (fd == m_sensorThreadFd.get()) { in qemuSensorListenerThread()
|
/device/generic/goldfish-opengl/shared/qemupipe/ |
D | qemu_pipe_host.cpp | 30 return HostGoldfishPipeDevice::get()->connect(pipeName); in qemu_pipe_open() 34 HostGoldfishPipeDevice::get()->close(pipe); in qemu_pipe_close() 38 return HostGoldfishPipeDevice::get()->read(pipe, buffer, len); in qemu_pipe_read() 42 return HostGoldfishPipeDevice::get()->write(pipe, buffer, len); in qemu_pipe_write() 47 int err = HostGoldfishPipeDevice::get()->getErrno(); in qemu_pipe_try_again() 55 int err = HostGoldfishPipeDevice::get()->getErrno(); in qemu_pipe_print_error()
|
/device/generic/opengl-transport/host/commands/emugen/tests/t.001/expected/decoder/ |
D | foo_dec.cpp | 68 DEBUG("foo(%p): fooIsBuffer(%p(%u) )\n", stream, (void*)(inptr_stuff.get()), size_stuff); in decode() 69 *(FooBoolean *)(&tmpBuf[0]) = this->fooIsBuffer((void*)(inptr_stuff.get())); in decode() 84 DEBUG("foo(%p): fooUnsupported(%p(%u) )\n", stream, (void*)(inptr_params.get()), size_params); in decode() 85 this->fooUnsupported((void*)(inptr_params.get())); in decode() 107 …TakeConstVoidPtrConstPtr(%p(%u) )\n", stream, (const void* const*)(inptr_param.get()), size_param); in decode() 108 this->fooTakeConstVoidPtrConstPtr((const void* const*)(inptr_param.get())); in decode() 116 …_unpacked = (void*)(&unpacked); fooStructUnpack((unsigned char*)(inptr_obj.get()), size_obj, inptr… in decode() 121 …DEBUG("foo(%p): fooSetComplexStruct(%p(%u) )\n", stream, (const FooStruct*)(inptr_obj.get()), size… in decode() 138 …DEBUG("foo(%p): fooGetComplexStruct(%p(%u) )\n", stream, (FooStruct*)(outptr_obj.get()), size_obj); in decode() 141 fooStructPack((unsigned char*)outptr_obj.get(), (FooStruct*)forPacking_obj); } in decode() [all …]
|
/device/generic/goldfish-opengl/shared/GoldfishAddressSpace/include/ |
D | goldfish_address_space_host.impl | 40 : m_handle(HostAddressSpaceDevice::get()->open()) 47 HostAddressSpaceDevice::get()->ping(m_handle, &request); 54 HostAddressSpaceDevice::get()->close(m_handle); 66 HostAddressSpaceDevice::get()->close(m_handle); 80 HostAddressSpaceDevice::get()->close(handle); 122 HostAddressSpaceDevice::get()->allocBlock( 142 int claimRes = HostAddressSpaceDevice::get()->claimShared( 154 m_phys_addr = HostAddressSpaceDevice::get()->offsetToPhysAddr(m_offset); 202 HostAddressSpaceDevice::get()->unclaimShared(m_handle, m_offset); 204 HostAddressSpaceDevice::get()->freeBlock(m_handle, m_offset); [all …]
|
/device/generic/goldfish-opengl/android-emu/android/base/threads/ |
D | AndroidThreadStore.h | 74 void* get() const; 76 inline void* get() const { in get() function 91 void* old = get(); in swap() 129 T* get() { in get() function 130 return static_cast<T*>(ThreadStoreBase::get()); in get()
|
/device/generic/goldfish/wifi/execns/ |
D | execns.cpp | 58 int get() const { return mFd; } in get() function in FileDescriptor 75 FILE* get() const { return mFile; } in get() function in File 97 if (file.get() == nullptr) { in readNamespacePid() 104 size_t bytesRead = ::fread(buffer, 1, sizeof(buffer), file.get()); in readNamespacePid() 105 if (bytesRead < sizeof(buffer) && feof(file.get())) { in readNamespacePid() 113 } else if (ferror(file.get())) { in readNamespacePid() 138 if (nsFd.get() == -1) { in setNetworkNamespace() 144 if (setns(nsFd.get(), CLONE_NEWNET) == -1) { in setNetworkNamespace()
|
/device/google/coral/vibrator/ |
D | Hardware.h | 59 bool getEffectDuration(uint32_t *value) override { return get(value, mEffectDuration); } in getEffectDuration() 67 bool getAspEnable(bool *value) override { return get(value, mAspEnable); } in getAspEnable() 79 bool get(T *value, U &stream); 124 bool getF0(uint32_t *value) override { return get(F0_CONFIG, value); } in getF0() 125 bool getRedc(uint32_t *value) override { return get(REDC_CONFIG, value); } in getRedc() 127 if (get(Q_CONFIG, value)) { in getQ() 130 if (get(Q_INDEX, value)) { in getQ() 138 if (get(VOLTAGES_CONFIG, value)) { in getVolLevels() 148 bool get(const char *key, T *value);
|
/device/google/cuttlefish/host/commands/secure_env/ |
D | tpm_keymaster_context.cpp | 46 KM_ALGORITHM_RSA, new keymaster::RsaKeyFactory(key_blob_maker_.get())); in TpmKeymasterContext() 48 KM_ALGORITHM_EC, new keymaster::EcKeyFactory(key_blob_maker_.get())); in TpmKeymasterContext() 52 key_blob_maker_.get(), random_source_.get())); in TpmKeymasterContext() 56 key_blob_maker_.get(), random_source_.get())); in TpmKeymasterContext() 60 key_blob_maker_.get(), random_source_.get())); in TpmKeymasterContext() 87 return it->second.get(); in GetKeyFactory() 262 return enforcement_.get(); in enforcement_policy()
|
D | hmac_serializable.cpp | 57 key->get(), in Serialize() 105 key->get(), in Deserialize() 107 signed_data.get(), in Deserialize() 118 if (memcmp(signature.get(), hmac_check->buffer, digest_size_) != 0) { in Deserialize() 123 auto inner_buf = signed_data.get(); in Deserialize()
|
D | soft_gatekeeper.h | 54 memset(key_.get(), 0, SIGNATURE_LENGTH_BYTES); in SoftGateKeeper() 61 *auth_token_key = key_.get(); in GetAuthTokenKey() 68 *password_key = key_.get(); in GetPasswordKey() 129 memcpy(digest.get(), &salt, sizeof(salt)); in ComputeFastHash() 130 memcpy(digest.get() + sizeof(salt), password.Data<uint8_t>(), password.size()); in ComputeFastHash() 132 SHA256(digest.get(), digest_size, (uint8_t*)&fast_hash.digest); in ComputeFastHash()
|
D | secure_env.cpp | 74 rc = Esys_Startup(esys.get(), TPM2_SU_CLEAR); in main() 81 esys.get(), in main() 90 resource_manager.reset(new TpmResourceManager(esys.get())); in main() 91 keymaster_context = new TpmKeymasterContext(resource_manager.get()); in main()
|
/device/generic/goldfish/wifi/mac80211_create_radios/ |
D | main.cpp | 97 void* user = genlmsg_put(msg.get(), NL_AUTO_PORT, NL_AUTO_SEQ, family, 0, in createNlMessage() 111 ret = nla_put(msg.get(), HWSIM_ATTR_PERM_ADDR, ETH_ALEN, mac); in buildCreateRadioMessage() 114 ret = nla_put_flag(msg.get(), HWSIM_ATTR_SUPPORT_P2P_DEVICE); in buildCreateRadioMessage() 133 int ret = nl_send_auto(socket, msg.get()); in createRadios() 148 ret = genl_connect(socket.get()); in manageRadios() 151 const int netlinkFamily = genl_ctrl_resolve(socket.get(), kHwSimFamilyName); in manageRadios() 154 ret = createRadios(socket.get(), netlinkFamily, nRadios, macPrefix); in manageRadios()
|
/device/generic/goldfish/gnss/ |
D | gnss_hw_conn.cpp | 70 workerThread(m_devFd.get(), m_threadsFd.get(), sink); in GnssHwConn() 101 epollCtlAdd(epollFd.get(), devFd); in workerThread() 102 epollCtlAdd(epollFd.get(), threadsFd); in workerThread() 110 const int n = TEMP_FAILURE_RETRY(epoll_wait(epollFd.get(), in workerThread() 195 return TEMP_FAILURE_RETRY(write(m_callersFd.get(), &cmd, 1)) == 1; in sendWorkerThreadCommand()
|
/device/generic/goldfish/wifi/createns/ |
D | createns.cpp | 49 int get() const { return mFd; } in get() function in Fd 108 if (fd.get() == -1) { in writeNamespacePid() 132 int result = ::write(fd.get(), toPrint, remaining); in writeNamespacePid() 245 if (fd.get() == -1) { in main() 265 pid_t pid = daemonize(writePipe.get()); in main() 275 if (::read(readPipe.get(), &child, sizeof(child)) != sizeof(child)) { in main()
|
/device/generic/goldfish-opengl/system/OpenglSystemCommon/ |
D | HostConnection.cpp | 367 (void)m_rcEnc->rcGetRendererVersion(m_rcEnc.get()); in ~HostConnection() 543 con.get(), getCurrentThreadId()); in connect() 549 HostConnection *HostConnection::get() { in get() function in HostConnection 563 return tinfo->hostConn.get(); in getWithThreadInfo() 584 m_glEnc = std::make_unique<GLEncoder>(m_stream.get(), checksumHelper()); in glEncoder() 589 return m_glEnc.get(); in glEncoder() 596 std::make_unique<GL2Encoder>(m_stream.get(), checksumHelper()); in gl2Encoder() 605 return m_gl2Enc.get(); in gl2Encoder() 611 m_vkEnc = std::make_unique<VkEncoder>(m_stream.get()); in vkEncoder() 613 return m_vkEnc.get(); in vkEncoder() [all …]
|
/device/google/coral/powerstats/ |
D | OsloStateResidencyDataProvider.cpp | 42 if (devNode.get() < 0) { in getResults() 51 err = ioctl(devNode.get(), MODULE_SENSOR_SET_PARAM, (unsigned long)&sp); in getResults() 58 err = ioctl(devNode.get(), IAXXX_SENSOR_MODE_STATS, (unsigned long)stats); in getResults()
|