/device/generic/goldfish/camera/ |
D | exif.cpp | 157 ExifDataPtr exifData(exif_data_new_mem(allocator.get())); in createExifData() 159 exif_data_set_option(exifData.get(), EXIF_DATA_OPTION_FOLLOW_SPECIFICATION); in createExifData() 160 exif_data_set_data_type(exifData.get(), EXIF_DATA_TYPE_COMPRESSED); in createExifData() 161 exif_data_set_byte_order(exifData.get(), EXIF_BYTE_ORDER_INTEL); in createExifData() 162 exif_data_fix(exifData.get()); in createExifData() 166 appendEntryS(exifData.get(), allocator.get(), EXIF_IFD_0, EXIF_TAG_MAKE, in createExifData() 171 appendEntryS(exifData.get(), allocator.get(), EXIF_IFD_0, EXIF_TAG_MODEL, in createExifData() 187 appendEntryS(exifData.get(), allocator.get(), EXIF_IFD_0, in createExifData() 189 appendEntryS(exifData.get(), allocator.get(), EXIF_IFD_EXIF, in createExifData() 191 appendEntryS(exifData.get(), allocator.get(), EXIF_IFD_EXIF, in createExifData() [all …]
|
D | FakeRotatingCamera.cpp | 318 GraphicBufferAllocator& gba = GraphicBufferAllocator::get(); in configure() 387 if (!program.link(vertexShader.get(), fragmentShader.get())) { in initOpenGL() 555 if (!renderIntoRGBA(si, renderParams, si.rgbaBuffer.get())) { in captureFrameYUV() 564 if (GraphicBufferMapper::get().lock( in captureFrameYUV() 565 si.rgbaBuffer.get(), static_cast<uint32_t>(BufferUsage::CPU_READ_OFTEN), in captureFrameYUV() 571 if (GraphicBufferMapper::get().lockYCbCr( in captureFrameYUV() 574 LOG_ALWAYS_FATAL_IF(GraphicBufferMapper::get().unlock(si.rgbaBuffer.get()) != NO_ERROR); in captureFrameYUV() 582 LOG_ALWAYS_FATAL_IF(GraphicBufferMapper::get().unlock(csb->getBuffer()) != NO_ERROR); in captureFrameYUV() 583 LOG_ALWAYS_FATAL_IF(GraphicBufferMapper::get().unlock(si.rgbaBuffer.get()) != NO_ERROR); in captureFrameYUV() 615 if (!renderIntoRGBA(si, renderParams, si.rgbaBuffer.get())) { in captureFrameForCompressing() [all …]
|
D | QemuCamera.cpp | 174 if (qemuRunQuery(qemuChannel.get(), kConnectQuery, sizeof(kConnectQuery)) < 0) { in configure() 179 if (qemuRunQuery(qemuChannel.get(), kStartQuery, sizeof(kStartQuery)) < 0) { in configure() 205 if (qemuRunQuery(mQemuChannel.get(), kStopQuery, sizeof(kStopQuery)) >= 0) { in close() 207 qemuRunQuery(mQemuChannel.get(), kDisconnectQuery, sizeof(kDisconnectQuery)); in close() 299 if (GraphicBufferMapper::get().lockYCbCr( in captureFrameYUV() 308 LOG_ALWAYS_FATAL_IF(GraphicBufferMapper::get().unlock(cb) != NO_ERROR); in captureFrameYUV() 325 if (GraphicBufferMapper::get().lock( in captureFrameRGBA() 333 LOG_ALWAYS_FATAL_IF(GraphicBufferMapper::get().unlock(cb) != NO_ERROR); in captureFrameRGBA() 351 if (GraphicBufferMapper::get().lock( in captureFrameRAW16() 355 LOG_ALWAYS_FATAL_IF(GraphicBufferMapper::get().unlock(image) != NO_ERROR); in captureFrameRAW16() [all …]
|
/device/google/cuttlefish/host/commands/modem_simulator/ |
D | modem_simulator.cpp | 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 modem_id_, channel_monitor_.get(), thread_looper_.get()); in RegisterModemService() 76 networkservice->SetupDependency(miscservice.get(), simservice.get(), in RegisterModemService() 77 dataservice.get()); in RegisterModemService() [all …]
|
D | channel_monitor.cpp | 197 iter->get()->SendCommandResponse(response); in SendUnsolicitedCommand() 206 if (iter->get()->Id() == client) { in SendRemoteCommand() 207 iter->get()->SendCommandResponse(response); in SendRemoteCommand() 217 if (iter->get()->Id() == client) { in CloseRemoteConnection() 218 iter->get()->client_read_fd_->Close(); in CloseRemoteConnection() 219 iter->get()->client_write_fd_->Close(); in CloseRemoteConnection() 220 iter->get()->is_valid = false; in CloseRemoteConnection() 250 if (iter->get()->is_valid) { in removeInvalidClients()
|
/device/google/sunfish/vibrator/drv2624/tests/ |
D | test-hwapi.cpp | 187 return ParamNameFixup(std::get<0>(info.param)); in PrintParam() 198 auto func = std::get<1>(param); in TEST_P() 205 auto func = std::get<1>(param); in TEST_P() 220 auto name = std::get<0>(param); in TEST_P() 221 auto func = std::get<1>(param); in TEST_P() 230 auto name = std::get<0>(param); in TEST_P() 231 auto func = std::get<1>(param); in TEST_P() 240 auto name = std::get<0>(param); in TEST_P() 241 auto func = std::get<1>(param); in TEST_P() 264 auto name = std::get<0>(param); in TEST_P() [all …]
|
/device/google/redfin/vibrator/drv2624/tests/ |
D | test-hwapi.cpp | 186 return ParamNameFixup(std::get<0>(info.param)); in PrintParam() 197 auto func = std::get<1>(param); in TEST_P() 204 auto func = std::get<1>(param); in TEST_P() 219 auto name = std::get<0>(param); in TEST_P() 220 auto func = std::get<1>(param); in TEST_P() 229 auto name = std::get<0>(param); in TEST_P() 230 auto func = std::get<1>(param); in TEST_P() 239 auto name = std::get<0>(param); in TEST_P() 240 auto func = std::get<1>(param); in TEST_P() 263 auto name = std::get<0>(param); in TEST_P() [all …]
|
/device/google/barbet/vibrator/drv2624/tests/ |
D | test-hwapi.cpp | 186 return ParamNameFixup(std::get<0>(info.param)); in PrintParam() 197 auto func = std::get<1>(param); in TEST_P() 204 auto func = std::get<1>(param); in TEST_P() 219 auto name = std::get<0>(param); in TEST_P() 220 auto func = std::get<1>(param); in TEST_P() 229 auto name = std::get<0>(param); in TEST_P() 230 auto func = std::get<1>(param); in TEST_P() 239 auto name = std::get<0>(param); in TEST_P() 240 auto func = std::get<1>(param); in TEST_P() 263 auto name = std::get<0>(param); in TEST_P() [all …]
|
/device/google/zuma/usb/usb/ |
D | UsbDataSessionMonitor.cpp | 73 if (fd.get() == -1) { in addEpollFile() 78 ev.data.fd = fd.get(); in addEpollFile() 81 if (epoll_ctl(epollFd, EPOLL_CTL_ADD, fd.get(), &ev) != 0) { in addEpollFile() 92 epoll_ctl(epollFd, EPOLL_CTL_DEL, fileFd.get(), NULL); in removeEpollFile() 107 if (epollFd.get() == -1) { in UsbDataSessionMonitor() 113 if (ueventFd.get() == -1) { in UsbDataSessionMonitor() 123 if (timerFd.get() == -1) { in UsbDataSessionMonitor() 131 if (addEpollFile(epollFd.get(), dataRolePath, mDataRoleFd) != 0) { in UsbDataSessionMonitor() 143 addEpollFile(epollFd.get(), mDeviceState.filePath, mDeviceState.fd); in UsbDataSessionMonitor() 147 addEpollFile(epollFd.get(), mHost1State.filePath, mHost1State.fd); in UsbDataSessionMonitor() [all …]
|
/device/google/zumapro/usb/usb/ |
D | UsbDataSessionMonitor.cpp | 73 if (fd.get() == -1) { in addEpollFile() 78 ev.data.fd = fd.get(); in addEpollFile() 81 if (epoll_ctl(epollFd, EPOLL_CTL_ADD, fd.get(), &ev) != 0) { in addEpollFile() 92 epoll_ctl(epollFd, EPOLL_CTL_DEL, fileFd.get(), NULL); in removeEpollFile() 107 if (epollFd.get() == -1) { in UsbDataSessionMonitor() 113 if (ueventFd.get() == -1) { in UsbDataSessionMonitor() 123 if (timerFd.get() == -1) { in UsbDataSessionMonitor() 131 if (addEpollFile(epollFd.get(), dataRolePath, mDataRoleFd) != 0) { in UsbDataSessionMonitor() 143 addEpollFile(epollFd.get(), mDeviceState.filePath, mDeviceState.fd); in UsbDataSessionMonitor() 147 addEpollFile(epollFd.get(), mHost1State.filePath, mHost1State.fd); in UsbDataSessionMonitor() [all …]
|
/device/google/gs201/usb/usb/ |
D | UsbDataSessionMonitor.cpp | 73 if (fd.get() == -1) { in addEpollFile() 78 ev.data.fd = fd.get(); in addEpollFile() 81 if (epoll_ctl(epollFd, EPOLL_CTL_ADD, fd.get(), &ev) != 0) { in addEpollFile() 92 epoll_ctl(epollFd, EPOLL_CTL_DEL, fileFd.get(), NULL); in removeEpollFile() 107 if (epollFd.get() == -1) { in UsbDataSessionMonitor() 113 if (ueventFd.get() == -1) { in UsbDataSessionMonitor() 123 if (timerFd.get() == -1) { in UsbDataSessionMonitor() 131 if (addEpollFile(epollFd.get(), dataRolePath, mDataRoleFd) != 0) { in UsbDataSessionMonitor() 143 addEpollFile(epollFd.get(), mDeviceState.filePath, mDeviceState.fd); in UsbDataSessionMonitor() 147 addEpollFile(epollFd.get(), mHost1State.filePath, mHost1State.fd); in UsbDataSessionMonitor() [all …]
|
/device/google/gs101/usb/usb/ |
D | UsbDataSessionMonitor.cpp | 73 if (fd.get() == -1) { in addEpollFile() 78 ev.data.fd = fd.get(); in addEpollFile() 81 if (epoll_ctl(epollFd, EPOLL_CTL_ADD, fd.get(), &ev) != 0) { in addEpollFile() 92 epoll_ctl(epollFd, EPOLL_CTL_DEL, fileFd.get(), NULL); in removeEpollFile() 107 if (epollFd.get() == -1) { in UsbDataSessionMonitor() 113 if (ueventFd.get() == -1) { in UsbDataSessionMonitor() 123 if (timerFd.get() == -1) { in UsbDataSessionMonitor() 131 if (addEpollFile(epollFd.get(), dataRolePath, mDataRoleFd) != 0) { in UsbDataSessionMonitor() 143 addEpollFile(epollFd.get(), mDeviceState.filePath, mDeviceState.fd); in UsbDataSessionMonitor() 147 addEpollFile(epollFd.get(), mHost1State.filePath, mHost1State.fd); in UsbDataSessionMonitor() [all …]
|
/device/google/felix/vibrator/cs40l26/tests/ |
D | test-hwapi.cpp | 124 return ParamNameFixup(std::get<0>(info.param)); in PrintParam() 135 auto func = std::get<1>(param); in TEST_P() 142 auto func = std::get<1>(param); in TEST_P() 158 auto name = std::get<0>(param); in TEST_P() 159 auto func = std::get<1>(param); in TEST_P() 171 auto func = std::get<1>(param); in TEST_P() 190 auto name = std::get<0>(param); in TEST_P() 191 auto func = std::get<1>(param); in TEST_P() 200 auto name = std::get<0>(param); in TEST_P() 201 auto func = std::get<1>(param); in TEST_P() [all …]
|
/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/google/cuttlefish/tools/gigabyte-ampere-cuttlefish-installer/preseed/ |
D | after_install_1.sh | 3 apt-get update 6 apt-get install -y debconf-utils 7 apt-get install -y git ca-certificates 8 apt-get install -y python3 p7zip-full 9 apt-get install -y lzop 12 apt-get install -y firmware-amd-graphics 30 apt-get install -y '^linux-image-.*aosp-linaro.*' '^linux-headers-.*aosp-linaro.*' 33 apt-get install -y '^cuttlefish-.*' 42 apt-get install -y network-manager
|
/device/google/cuttlefish/tools/gigabyte-ampere-cuttlefish-installer/ |
D | kernel_dependencies.sh | 3 sudo apt-get install -y build-essential debhelper fakeroot 4 sudo apt-get install -y devscripts ubuntu-dev-tools 5 sudo apt-get install -y flex bison bc 6 sudo apt-get install -y rsync openssh-client 7 sudo apt-get install -y libssl-dev libelf-dev 8 sudo apt-get install -y pahole 9 sudo apt-get install -y kmod cpio 10 sudo apt-get install -y crossbuild-essential-arm64
|
D | build_cf_packages.sh | 9 apt-get install -y git ca-certificates less 10 apt-get install -y debhelper devscripts cdbs dpkg-dev equivs fakeroot 11 apt-get install -y build-essential autoconf automake 12 apt-get install -y flex bison libmnl-dev 13 apt-get install -y libnetfilter-conntrack-dev libnfnetlink-dev 14 apt-get install -y libnftnl-dev libtool
|
/device/google/cuttlefish/host/commands/metrics/ |
D | utils.cc | 172 curl_url_set(url.get(), CURLUPART_URL, clearcut_url.c_str(), 0); in PostRequest() 174 LOG(ERROR) << "Failed to set url to " << url.get() << clearcut_url in PostRequest() 188 curl_easy_setopt(curl.get(), CURLOPT_WRITEFUNCTION, &curl_out_writer); in PostRequest() 189 curl_easy_setopt(curl.get(), CURLOPT_SSL_VERIFYPEER, 0L); in PostRequest() 190 curl_easy_setopt(curl.get(), CURLOPT_CURLU, url.get()); in PostRequest() 191 curl_easy_setopt(curl.get(), CURLOPT_POSTFIELDS, output.data()); in PostRequest() 192 curl_easy_setopt(curl.get(), CURLOPT_POSTFIELDSIZE, output.size()); in PostRequest() 193 CURLcode rc = curl_easy_perform(curl.get()); in PostRequest() 195 curl_easy_getinfo(curl.get(), CURLINFO_RESPONSE_CODE, &http_code); in PostRequest()
|
/device/generic/goldfish-opengl/system/hwc3/ |
D | DrmClient.cpp | 29 drmDropMaster(mFd.get()); in ~DrmClient() 46 auto version = drmGetVersion(fd.get()); in OpenVirtioGpuDrmFd() 72 int ret = drmSetClientCap(mFd.get(), DRM_CLIENT_CAP_UNIVERSAL_PLANES, 1); in init() 78 ret = drmSetClientCap(mFd.get(), DRM_CLIENT_CAP_ATOMIC, 1); in init() 84 drmSetMaster(mFd.get()); in init() 86 if (!drmIsMaster(mFd.get())) { in init() 155 drmModePlaneResPtr drmPlaneResources = drmModeGetPlaneResources(mFd.get()); in loadDrmDisplays() 169 drmModeRes* drmResources = drmModeGetResources(mFd.get()); in loadDrmDisplays() 241 int ret = drmPrimeFDToHandle(mFd.get(), crosHandle->fds[0], &primeHandle); in create() 257 ret = drmModeAddFB2(mFd.get(), buffer->mWidth, buffer->mHeight, buffer->mDrmFormat, in create() [all …]
|
D | DrmEventListener.cpp | 54 FD_SET(drmFd.get(), &mMonitoredFds); in init() 55 FD_SET(mEventFd.get(), &mMonitoredFds); in init() 56 mMaxMonitoredFd = std::max(drmFd.get(), mEventFd.get()); in init() 69 if (!FD_ISSET(mEventFd.get(), &mMonitoredFds)) { in threadLoop() 76 ssize_t ret = read(mEventFd.get(), &buffer, sizeof(buffer)); in threadLoop()
|
/device/generic/goldfish/wifi/mac80211_create_radios/ |
D | main.cpp | 124 void* user = genlmsg_put(msg.get(), NL_AUTO_PORT, NL_AUTO_SEQ, family, 0, in createNlMessage() 133 (R) = nla_put_flag((MSG).get(), TYPE); \ 139 (R) = nla_put((MSG).get(), TYPE, SIZE, V); \ 147 (ATTR) = nla_nest_start((MSG).get(), TYPE); \ 153 (R) = nla_nest_end((MSG).get(), START); \ 218 int ret = nl_send_auto(socket, msg.get()); in createRadios() 234 ret = genl_connect(socket.get()); in manageRadios() 237 const int netlinkFamily = genl_ctrl_resolve(socket.get(), kHwSimFamilyName); in manageRadios() 240 ret = createRadios(socket.get(), netlinkFamily, nRadios, macPrefix, in manageRadios()
|
/device/google/atv/libraries/BluetoothServices/src/com/google/android/tv/btservices/ |
D | NotificationCenter.java | 166 Stopwatch stopwatch = dfuNotificationSnoozeWatch.get(device); in sendDfuNotificationImpl() 181 if (dfuNotifications.get(device) != null) { in sendDfuNotificationImpl() 182 notificationId = dfuNotifications.get(device); in sendDfuNotificationImpl() 220 if (dfuNotifications.get(device) != null) { in dismissUpdateNotificationImpl() 221 int notificationId = dfuNotifications.get(device); in dismissUpdateNotificationImpl() 230 if (lowBatteryNotifications.get(device) != null) { in refreshLowBatteryNotificationImpl() 237 if (criticalBatteryNotifications.get(device) != null) { in refreshLowBatteryNotificationImpl() 267 if ((!forced && lowBatteryNotifications.get(device) != null) || !isNotificationAllowed()) { in postLowBatteryNotification() 294 if ((!forced && criticalBatteryNotifications.get(device) != null) || in postCriticalBatteryNotification() 323 if (depletedBatteryNotifications.get(device) != null || !isNotificationAllowed()) { in postDepletedBatteryNotification()
|
/device/google/cuttlefish/common/libs/fs/ |
D | shared_fd_stream.cpp | 40 std::memcpy(read_buffer_.get(), in underflow() 41 read_buffer_.get() + kBufferSize - unget_size, in underflow() 46 read_buffer_.get() + unget_size, in underflow() 49 setg(read_buffer_.get(), in underflow() 50 read_buffer_.get() + unget_size, in underflow() 51 read_buffer_.get() + unget_size + bytes_read); in underflow()
|
/device/google/trout/hal/sensors/2.1/ |
D | iio_utils.cpp | 101 fprintf(fp.get(), fmt.c_str(), value); in sysfs_write_val() 121 const int ret = fscanf(fp.get(), fmt.c_str(), value); in sysfs_read_val() 170 while (ent = readdir(dp.get()), ent != nullptr) { in get_sampling_frequency_available() 197 while (ent = readdir(dp.get()), ent != nullptr) { in get_sensor_range() 231 while (ent = readdir(dp.get()), ent != nullptr) { in set_sampling_frequency() 252 while (ent = readdir(dp.get()), ent != nullptr) { in get_sensor_scale() 275 while (ent = readdir(dp.get()), ent != nullptr) { in load_iio_devices() 338 while (ent = readdir(dp.get()), ent != nullptr) { in get_scan_type() 345 const int ret = fscanf(fp.get(), "%ce:%c%hhu/%u>>%hhu", &endianchar, &signchar, in get_scan_type() 371 while (ent = readdir(dp.get()), ent != nullptr) { in scan_elements()
|
/device/google/trout/tools/ |
D | bpttool | 738 value = pobj.get(JSON_KEYWORD_PARTITIONS_OFFSET) 741 value = pobj.get(JSON_KEYWORD_PARTITIONS_SIZE) 744 value = pobj.get(JSON_KEYWORD_PARTITIONS_GROW) 747 value = pobj.get(JSON_KEYWORD_PARTITIONS_AB) 750 value = pobj.get(JSON_KEYWORD_PARTITIONS_AB_EXPANDED) 753 value = pobj.get(JSON_KEYWORD_PARTITIONS_GUID) 756 value = pobj.get(JSON_KEYWORD_PARTITIONS_IGNORE) 759 value = pobj.get(JSON_KEYWORD_PARTITIONS_TYPE_GUID) 764 value = pobj.get(JSON_KEYWORD_PARTITIONS_FLAGS) 767 value = pobj.get(JSON_KEYWORD_PARTITIONS_PERSIST) [all …]
|