Home
last modified time | relevance | path

Searched refs:first (Results 1 – 25 of 736) sorted by relevance

12345678910>>...30

/hardware/interfaces/bluetooth/audio/aidl/default/
DA2dpBits.h33 const int first, len; member
34 constexpr Range(int first, int last) in Range()
35 : first(first), len(last - first + 1) {} in Range()
36 constexpr Range(int index) : first(index), len(1) {} in Range()
46 v |= get(range.first + i) << ((range.len - 1) - i); in get()
60 set(range.first + i, (value >> ((range.len - 1) - i)) & 1); in set()
69 ? range.first + (range.len - 1) - i in find_active_bit()
/hardware/interfaces/automotive/can/1.0/default/libnl++/protocols/
Dstructs.cpp31 bool first = true; in flagsToStream() local
36 if (!first) ss << '|'; in flagsToStream()
37 first = false; in flagsToStream()
44 if (!first) ss << '|'; in flagsToStream()
50 bool first = true; in hwaddrToStream() local
52 if (!first) ss << ':'; in hwaddrToStream()
53 first = false; in hwaddrToStream()
/hardware/interfaces/audio/aidl/default/include/core-impl/
DChildInterface.h37 this->first = std::move(c);
40 explicit operator bool() const { return !!this->first; }
41 C& operator*() const { return *(this->first); }
42 C* operator->() const { return this->first; }
43 std::shared_ptr<C> getPtr() { return this->first; } in getPtr()
47 return this->first; in getInstance()
51 const auto binder = this->second = this->first->asBinder(); in getBinder()
/hardware/interfaces/wifi/1.0/vts/functional/
Dwifi_chip_hidl_test.cpp101 EXPECT_EQ(WifiStatusCode::SUCCESS, status_and_name.first.code); in getIfaceName()
108 return status_and_iface.first.code; in createP2pIface()
118 return status_and_iface.first.code; in createStaIface()
145 HIDL_INVOKE(wifi_chip_, getId).first.code); in TEST_P()
153 EXPECT_EQ(WifiStatusCode::SUCCESS, status_and_modes.first.code); in TEST_P()
162 EXPECT_EQ(WifiStatusCode::SUCCESS, status_and_modes.first.code); in TEST_P()
182 if (status_and_caps.first.code != WifiStatusCode::SUCCESS) { in TEST_P()
183 EXPECT_EQ(WifiStatusCode::ERROR_NOT_SUPPORTED, status_and_caps.first.code); in TEST_P()
195 EXPECT_EQ(WifiStatusCode::SUCCESS, status_and_mode.first.code); in TEST_P()
206 EXPECT_EQ(WifiStatusCode::SUCCESS, status_and_chip_info.first.code); in TEST_P()
[all …]
Dwifi_sta_iface_hidl_test.cpp63 EXPECT_EQ(WifiStatusCode::SUCCESS, status_and_caps.first.code); in isCapabilitySupported()
85 EXPECT_EQ(WifiStatusCode::SUCCESS, status_and_caps.first.code); in TEST_P()
95 EXPECT_EQ(WifiStatusCode::SUCCESS, status_and_type.first.code); in TEST_P()
111 EXPECT_EQ(WifiStatusCode::SUCCESS, status_and_caps.first.code); in TEST_P()
127 EXPECT_EQ(WifiStatusCode::SUCCESS, status_and_caps.first.code); in TEST_P()
137 EXPECT_EQ(WifiStatusCode::SUCCESS, status_and_freqs.first.code); in TEST_P()
167 HIDL_INVOKE(wifi_sta_iface_, getLinkLayerStats).first.code); in TEST_P()
216 EXPECT_EQ(WifiStatusCode::SUCCESS, status_and_cap.first.code); in TEST_P()
296 HIDL_INVOKE(wifi_sta_iface_, getDebugTxPacketFates).first.code); in TEST_P()
298 HIDL_INVOKE(wifi_sta_iface_, getDebugRxPacketFates).first.code); in TEST_P()
Dwifi_chip_hidl_nan_test.cpp70 EXPECT_EQ(WifiStatusCode::SUCCESS, status_and_name.first.code); in getIfaceName()
77 return status_and_iface.first.code; in createNanIface()
114 ASSERT_EQ(WifiStatusCode::SUCCESS, status_and_iface_names1.first.code); in TEST_P()
124 EXPECT_EQ(WifiStatusCode::SUCCESS, status_and_iface_names2.first.code); in TEST_P()
131 EXPECT_EQ(WifiStatusCode::SUCCESS, status_and_iface_names3.first.code); in TEST_P()
151 EXPECT_EQ(WifiStatusCode::SUCCESS, status_and_iface1.first.code); in TEST_P()
157 EXPECT_EQ(WifiStatusCode::ERROR_INVALID_ARGS, status_and_iface2.first.code); in TEST_P()
Dwifi_hidl_test_utils.cpp73 if (status_and_modes.first.code != WifiStatusCode::SUCCESS) { in configureChipToSupportIfaceTypeInternal()
100 if (status_and_modes.first.code != WifiStatusCode::SUCCESS) { in doesChipSupportIfaceTypeInternal()
134 if (status_and_chip_ids.first.code != WifiStatusCode::SUCCESS || in getWifiChip()
139 if (status_and_chip.first.code != WifiStatusCode::SUCCESS) { in getWifiChip()
148 if (status_and_name.first.code == WifiStatusCode::SUCCESS) { in setIfaceUp()
164 if (status_and_iface.first.code != WifiStatusCode::SUCCESS) { in getWifiApIface()
180 if (status_and_iface.first.code != WifiStatusCode::SUCCESS) { in getWifiNanIface()
196 if (status_and_iface.first.code != WifiStatusCode::SUCCESS) { in getWifiP2pIface()
212 if (status_and_iface.first.code != WifiStatusCode::SUCCESS) { in getWifiStaIface()
254 EXPECT_EQ(WifiStatusCode::SUCCESS, status_and_caps.first.code); in getChipCapabilitiesLatest()
/hardware/interfaces/automotive/can/1.0/default/libnl++/
Dprinter.cpp32 bool first = true; in flagsToStream() local
33 auto printFlag = [&ss, &first, &nlmsg_flags](__u16 flag, const std::string& name) { in flagsToStream()
37 if (first) { in flagsToStream()
38 first = false; in flagsToStream()
78 if (!first) ss << '|'; in flagsToStream()
125 bool first = true; in toStream() local
127 if (!first) ss << ", "; in toStream()
128 first = false; in toStream()
202 bool first = true; in toStream() local
204 if (first) { in toStream()
[all …]
/hardware/google/pixel/thermal/utils/
Dthermal_throttling.cpp141 if (!cooling_device_info_map.count(binded_cdev_pair.first)) { in registerThermalThrottling()
143 << binded_cdev_pair.first; in registerThermalThrottling()
150 .pid_power_budget_map[binded_cdev_pair.first] = in registerThermalThrottling()
153 .pid_cdev_request_map[binded_cdev_pair.first] = 0; in registerThermalThrottling()
155 .cdev_status_map[binded_cdev_pair.first] = 0; in registerThermalThrottling()
156 cdev_all_request_map_[binded_cdev_pair.first].insert(0); in registerThermalThrottling()
164 .hardlimit_cdev_request_map[binded_cdev_pair.first] = 0; in registerThermalThrottling()
166 .cdev_status_map[binded_cdev_pair.first] = 0; in registerThermalThrottling()
167 cdev_all_request_map_[binded_cdev_pair.first].insert(0); in registerThermalThrottling()
176 .throttling_release_map[binded_cdev_pair.first] = 0; in registerThermalThrottling()
[all …]
/hardware/interfaces/automotive/can/1.0/hidl-utils/include/hidl-utils/
Dhidl-utils.h50 inline void copy(const First& first) { in copy()
51 *std::get<Pos>(mTargets) = first; in copy()
55 inline void copy(const First& first, const Rest&... rest) { in copy()
56 *std::get<Pos>(mTargets) = first; in copy()
/hardware/libhardware/modules/camera/3_4/metadata/
Dmap_converter_test.cpp57 ExpectConvertToV4L2(kv->first, kv->second); in TEST_F()
63 ExpectConvertToV4L2(kv->first + 1, kv->second); in TEST_F()
70 ExpectConvertToV4L2(kv->first - 1, kv->second); in TEST_F()
76 ExpectConvertToV4L2(kv->first - 1, kv->second); in TEST_F()
82 ExpectConvertToV4L2(kv->first + 1, kv->second); in TEST_F()
97 EXPECT_CALL(*converter_, V4L2ToMetadata(kv->first, _)) in TEST_F()
Denum_converter.cpp44 *conversion = kv.first; in MetadataToV4L2()
65 if (element_range.first == element_range.second) { in V4L2ToMetadata()
70 auto element = element_range.first; in V4L2ToMetadata()
/hardware/interfaces/radio/aidl/compat/service/
Dhidl-utils.h54 inline void copy(const First& first) { in copy()
55 *std::get<Pos>(mTargets) = first; in copy()
59 inline void copy(const First& first, const Rest&... rest) { in copy()
60 *std::get<Pos>(mTargets) = first; in copy()
/hardware/google/graphics/common/libhwc2.1/libvrr/Power/
DDisplayStateResidencyProvider.cpp85 item.first.toString().c_str(), item.second.toString().c_str()); in mapStatistics()
90 mStatistics[item.first] = item.second; in mapStatistics()
94 const auto& displayPresentProfile = item.first; in mapStatistics()
137 auto it = mPowerStatsPresentProfileToIdMap.find(statistic.first); in aggregateStatistics()
140 __func__, statistic.first.toString().c_str()); in aggregateStatistics()
173 powerStatsPresentProfile.mWidth = mDisplayContextProvider->getWidth(config.first); in generatePowerStatsStates()
174 powerStatsPresentProfile.mHeight = mDisplayContextProvider->getHeight(config.first); in generatePowerStatsStates()
196 return v1.first < v2.first; in generatePowerStatsStates()
206 const auto token = mPowerStatsPresentProfileTokenGenerator.generateToken(pattern.first); in generatePowerStatsStates()
210 if (pattern.first == "mode" && token.value() == "OFF") { in generatePowerStatsStates()
[all …]
/hardware/google/aemu/host-common/
Daddress_space_shared_slots_host_memory_allocator_unittests.cpp75 EXPECT_EQ(i->first, 100); in TEST()
81 EXPECT_EQ(i->first, 100); in TEST()
87 EXPECT_EQ(i->first, 300); in TEST()
94 auto i = fsb.insert({10, 5}).first; in TEST()
95 auto j = fsb.insert({20, 5}).first; in TEST()
108 auto i = fsb.insert({10, 10}).first; in TEST()
109 auto j = fsb.insert({20, 5}).first; in TEST()
116 EXPECT_EQ(r->first, 10); in TEST()
Daddress_space_host_memory_allocator.cpp75 m_paddr2ptr.erase(r.first); in allocate_impl()
101 void* host_ptr = i->second.first; in unallocate()
125 const uint64_t phys_addr = kv.first; in save()
127 const void *mem = kv.second.first; in save()
158 uint64_t phys_addr = kv.first; in clear()
159 void *host_ptr = kv.second.first; in clear()
/hardware/interfaces/gnss/2.0/default/
DGnssVisibilityControl.cpp33 bool first = true; in enableNfwLocationAccess() local
35 if (first) { in enableNfwLocationAccess()
36 first = false; in enableNfwLocationAccess()
/hardware/interfaces/audio/common/all-versions/default/service/
Dservice.cpp41 static bool registerPassthroughServiceImplementations(Iter first, Iter last) { in registerPassthroughServiceImplementations() argument
42 for (; first != last; ++first) { in registerPassthroughServiceImplementations()
43 if (registerPassthroughServiceImplementation(*first) == OK) { in registerPassthroughServiceImplementations()
163 const std::string& libraryName = interfacePair.first; in main()
/hardware/google/graphics/zuma/libhwc2.1/libresource/
DExynosResourceManagerModule.cpp94 uint32_t currentAmount = mppSrc->getHWResourceAmount(attr->first); in checkTDMResource()
101 display->mDisplayTDMInfo[TDMInfoIdx].getAvailableAmount(attr->first).totalAmount; in checkTDMResource()
105 attr->second.name.c_str(), loadSharing, accumulatedAmount[attr->first], in checkTDMResource()
107 if (accumulatedAmount[attr->first] + currentAmount > totalAmount) { in checkTDMResource()
191 setupHWResource(attr->first, attr->second.name, blockId->first, AXI_DONT_CARE, in setDisplaysTDMInfo()
195 setupHWResource(attr->first, attr->second.name, blockId->first, axi->first, in setDisplaysTDMInfo()
215 const auto &TDMInfoId = std::make_pair(blockId->first, AXI_DONT_CARE); in setDisplaysTDMInfo()
217 .getAvailableAmount(attr->first) in setDisplaysTDMInfo()
221 blockId->first, amount, in setDisplaysTDMInfo()
225 const auto &TDMInfoId = std::make_pair(blockId->first, axi->first); in setDisplaysTDMInfo()
[all …]
/hardware/google/pixel/powerstats/
DGenericStateResidencyDataProvider.cpp45 cfg.name = h.first; in generateGenericStateResidencyConfigs()
144 PowerEntityStateResidencyData data = {.powerEntityStateId = nextState->first}; in getStateData()
189 PowerEntityStateResidencyResult result = {.powerEntityId = nextConfig->first}; in getResults()
194 if (results.find(nextConfig->first) != results.end()) { in getResults()
195 uint32_t size = results[nextConfig->first].stateResidencyData.size(); in getResults()
196 results[nextConfig->first].stateResidencyData.resize( in getResults()
199 results[nextConfig->first].stateResidencyData[size + i] = in getResults()
203 results.emplace(nextConfig->first, result); in getResults()
240 PowerEntityStateSpace s = {.powerEntityId = config.first}; in getStateSpaces()
245 .powerEntityStateId = config.second.mStateResidencyConfigs[i].first, in getStateSpaces()
/hardware/google/pixel/thermal/
Dthermal-helper.cpp127 const auto &cdev_info = cooling_device_info_map_.at(binded_cdev_info_pair.first); in maxCoolingRequestCheck()
131 LOG(ERROR) << binded_cdev_info_pair.first << " cdev_ceiling:" << cdev_ceiling in maxCoolingRequestCheck()
196 sensor_status_map_[name_status_pair.first] = { in ThermalHelperImpl()
207 name_status_pair.first, name_status_pair.second.throttling_info, in ThermalHelperImpl()
209 LOG(ERROR) << name_status_pair.first << " failed to register thermal throttling"; in ThermalHelperImpl()
231 LOG(ERROR) << name_status_pair.first << "'s link sensor " in ThermalHelperImpl()
243 LOG(ERROR) << name_status_pair.first << "'s backup sensor " in ThermalHelperImpl()
263 << name_status_pair.first << "'s trigger sensor: " in ThermalHelperImpl()
276 LOG(ERROR) << name_status_pair.first << "'s predictor " << predict_sensor_name in ThermalHelperImpl()
285 LOG(ERROR) << name_status_pair.first << "'s predictor " << predict_sensor_name in ThermalHelperImpl()
[all …]
/hardware/google/gfxstream/guest/OpenglCodecCommon/
DIndexRangeCache.cpp63 size_t rangeStart = it->first.offset; in invalidateRange()
65 it->first.offset + in invalidateRange()
66 it->first.count * glSizeof(it->first.type); in invalidateRange()
/hardware/interfaces/gnss/aidl/default/
DGnssVisibilityControl.cpp29 bool first = true; in enableNfwLocationAccess() local
31 if (first) { in enableNfwLocationAccess()
32 first = false; in enableNfwLocationAccess()
/hardware/google/aemu/host-common/testing/
DHostAddressSpace.cpp50 handlesToClose.push_back(it.first); in clear()
111 if (it2.first == off) { in setHostAddrByPhysAddr()
118 if (it.first == off) { in setHostAddrByPhysAddr()
131 if (it2.first == off) { in unsetHostAddrByPhysAddr()
138 if (it.first == off) { in unsetHostAddrByPhysAddr()
161 if (blockContainsOffset(it2.first, it2.second, off)) { in getHostAddr()
163 (unsigned long long)it2.first, in getHostAddr()
164 (unsigned long long)it2.first + it2.second.size, in getHostAddr()
167 offsetIntoBlock(it2.first, it2.second, off); in getHostAddr()
173 if (blockContainsOffset(it.first, it.second, off)) { in getHostAddr()
[all …]
/hardware/libhardware/modules/sensors/dynamic_sensor/HidUtils/
DHidItem.cpp87 unsigned char first; in operator >>() local
88 is >> first; in operator >>()
91 size_t len = lenTable[first & 0x3]; // low 2 bits are length descriptor in operator >>()
92 h.tag = (first >> 4); in operator >>()
93 h.type = (first & 0xC) >> 2; in operator >>()

12345678910>>...30