Home
last modified time | relevance | path

Searched refs:extract (Results 1 – 25 of 226) sorted by relevance

12345678910

/packages/modules/Connectivity/staticlibs/netd/libnetdutils/
DSliceTest.cpp50 EXPECT_EQ(sizeof(a), extract(s1, a)); in TEST_F()
51 EXPECT_EQ(sizeof(a) + sizeof(b), extract(s1, a, b)); in TEST_F()
52 EXPECT_EQ(sizeof(a) + sizeof(b) + sizeof(c), extract(s1, a, b, c)); in TEST_F()
80 TEST_F(SliceTest, extract) { in TEST_F() argument
107 size_t len = extract(buffer, a1); in TEST_F()
116 size_t len = extract(buffer, a1, b); in TEST_F()
126 size_t len = extract(buffer, a1, b, a2); in TEST_F()
DNetlink.cpp31 extract(tail, hdr); in forEachNetlinkMessage()
43 extract(tail, hdr); in forEachNetlinkAttribute()
/packages/modules/Bluetooth/system/gd/packet/
Dpacket_view_unittest.cc138 ASSERT_EQ(0x00, general_case.extract<uint8_t>()); in TEST()
139 ASSERT_EQ(0x0201, general_case.extract<uint16_t>()); in TEST()
140 ASSERT_EQ(0x06050403u, general_case.extract<uint32_t>()); in TEST()
141 ASSERT_EQ(0x0e0d0c0b0a090807u, general_case.extract<uint64_t>()); in TEST()
142 ASSERT_EQ(0x0f, general_case.extract<uint8_t>()); in TEST()
144 ASSERT_EQ(raw, general_case.extract<Address>()); in TEST()
145 ASSERT_EQ(0x16, general_case.extract<uint8_t>()); in TEST()
152 ASSERT_EQ(0x00, general_case.extract<uint8_t>()); in TEST()
153 ASSERT_EQ(0x0102, general_case.extract<uint16_t>()); in TEST()
154 ASSERT_EQ(0x03040506u, general_case.extract<uint32_t>()); in TEST()
[all …]
Diterator.h82 T extract() { in extract() function
96 T extract() { in extract() function
/packages/modules/Bluetooth/system/packet/base/
Diterator.h75 FixedWidthIntegerType extract() { in extract() function
104 uint8_t extract8() { return extract<uint8_t>(); } in extract8()
105 uint16_t extract16() { return extract<uint16_t>(); } in extract16()
106 uint32_t extract32() { return extract<uint32_t>(); } in extract32()
107 uint64_t extract64() { return extract<uint64_t>(); } in extract64()
/packages/modules/Bluetooth/system/packet/tests/base/
Diterator_test.cc74 ASSERT_EQ(0x02u, general_case.extract<uint8_t>()); in TEST_F()
75 ASSERT_EQ(0x2edcu, general_case.extract<uint16_t>()); in TEST_F()
76 ASSERT_EQ(0x00620066u, general_case.extract<uint32_t>()); in TEST_F()
77 ASSERT_EQ(0x00010000000a0013u, general_case.extract<uint64_t>()); in TEST_F()
108 ASSERT_DEATH(bounds_test.extract<uint8_t>(), in TEST_P()
110 ASSERT_DEATH(bounds_test.extract<uint16_t>(), in TEST_P()
112 ASSERT_DEATH(bounds_test.extract<uint32_t>(), in TEST_P()
114 ASSERT_DEATH(bounds_test.extract<uint64_t>(), in TEST_P()
/packages/modules/Bluetooth/system/gd/common/
Dlru_cache_test.cc35 EXPECT_FALSE(cache.extract(42)); in TEST()
180 EXPECT_TRUE(cache.extract(56)); in TEST()
216 EXPECT_TRUE(cache.extract(3)); in TEST()
273 EXPECT_TRUE(cache.extract(4)); in TEST()
286 EXPECT_TRUE(cache.extract(2)); in TEST()
287 EXPECT_TRUE(cache.extract(3)); in TEST()
347 EXPECT_FALSE(cache.extract(key)); in TEST()
350 auto removed = cache.extract(key); in TEST()
447 EXPECT_TRUE(cache.extract(key)); in TEST()
Dlru_cache.h150 evicted_node = list_map_.extract(std::prev(list_map_.end())->first); in insert_or_assign()
172 evicted_node = list_map_.extract(std::prev(list_map_.end())->first); in try_emplace()
181 inline std::optional<node_type> extract(const Key& key) { in extract() function
182 return list_map_.extract(key); in extract()
Dmetric_id_manager.cc150 this->id_set_.extract(evicted->second); in AllocateId()
169 auto opt = temporary_device_cache_.extract(mac_address); in SaveDevice()
189 auto opt = paired_device_cache_.extract(mac_address); in ForgetDevice()
Dlist_map_test.cc35 EXPECT_FALSE(list_map.extract(42)); in TEST()
165 list_map.extract(2); in TEST()
192 EXPECT_TRUE(list_map.extract(56)); in TEST()
263 auto removed = list_map.extract(key); in TEST()
349 EXPECT_TRUE(list_map.extract(key)); in TEST()
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/include/netdutils/
DSlice.h121 inline size_t extract(const Slice src, Head& head) { in extract() function
129 inline size_t extract(const Slice src, Head& head, Tail&... tail) { in extract() function
130 const auto extracted = extract(src, head); in extract()
131 return extracted + extract(drop(src, extracted), tail...); in extract()
/packages/modules/Bluetooth/system/packet/avrcp/
Dget_element_attributes_packet.cc28 return it.extract<uint64_t>(); in GetIdentifier()
33 return it.extract<uint8_t>(); in GetNumAttributes()
40 size_t number_of_attributes = it.extract<uint8_t>(); in GetAttributesRequested()
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DActionDisabledByAdminDialogHelperTest.java81 mActivityShadow = Shadow.extract(mActivity); in setUp()
143 final ShadowUserManager userManagerShadow = Shadow.extract(userManager); in testSetAdminSupportDetails()
164 final ShadowUserManager userManagerShadow = Shadow.extract(userManager); in testSetAdminSupportDetails_shortSupportMessageIsNull()
186 final ShadowUserManager userManagerShadow = Shadow.extract(userManager); in testSetAdminSupportDetailsNotAdmin()
208 ShadowUserManager userManagerShadow = Shadow.extract(userManager); in testMaybeSetLearnMoreButton()
/packages/modules/Bluetooth/system/gd/storage/
Dconfig_cache.cc201 auto section_properties = temporary_devices_.extract(section); in SetProperty()
232 if (information_sections_.extract(section) || persistent_devices_.extract(section)) { in RemoveSection()
236 return temporary_devices_.extract(section).has_value(); in RemoveSection()
244 auto value = section_iter->second.extract(property); in RemoveProperty()
258 auto value = section_iter->second.extract(property); in RemoveProperty()
264 auto section_properties = persistent_devices_.extract(section); in RemoveProperty()
280 auto value = section_iter->second.extract(property); in RemoveProperty()
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/usagereporting/
DSearchSessionStatsExtractorTest.java110 .extract(TEST_PACKAGE_NAME, TEST_DATABASE, takenActionGenericDocuments); in testExtract()
201 .extract(TEST_PACKAGE_NAME, TEST_DATABASE, takenActionGenericDocuments); in testExtract_noSearchActionShouldReturnEmptyList()
239 .extract(TEST_PACKAGE_NAME, TEST_DATABASE, takenActionGenericDocuments); in testExtract_shouldSkipUnknownActionTypeDocuments()
313 .extract(TEST_PACKAGE_NAME, TEST_DATABASE, takenActionGenericDocuments); in testExtract_detectAndSkipSearchNoise_appendNewCharacters()
406 .extract(TEST_PACKAGE_NAME, TEST_DATABASE, takenActionGenericDocuments); in testExtract_detectAndSkipSearchNoise_deleteCharacters()
484 .extract(TEST_PACKAGE_NAME, TEST_DATABASE, takenActionGenericDocuments); in testExtract_occursAfterThresholdShouldNotBeSearchNoise()
568 .extract(TEST_PACKAGE_NAME, TEST_DATABASE, takenActionGenericDocuments); in testExtract_nonPrefixQueryStringShouldNotBeSearchNoise()
651 .extract(TEST_PACKAGE_NAME, TEST_DATABASE, takenActionGenericDocuments); in testExtract_lastSearchActionShouldNotBeSearchNoise()
717 .extract(TEST_PACKAGE_NAME, TEST_DATABASE, takenActionGenericDocuments); in testExtract_lastSearchActionOfRelatedSearchSequenceShouldNotBeSearchNoise()
811 .extract(TEST_PACKAGE_NAME, TEST_DATABASE, takenActionGenericDocuments); in testExtract_withClickActionShouldNotBeSearchNoise()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DFlashNotificationsUtilTest.java35 import static org.robolectric.shadow.api.Shadow.extract;
126 ShadowCameraCharacteristics shadowCameraCharacteristics = extract(cameraCharacteristics); in isTorchAvailable_lensFacingFront_assertFalse()
208 ShadowCameraCharacteristics shadowCameraCharacteristics = extract(cameraCharacteristics); in setTorchPresent()
216 ShadowCameraCharacteristics shadowCameraCharacteristics = extract(cameraCharacteristics); in setTorchNotPresent()
DAccessibilitySettingsContentObserverTest.java64 ShadowContentResolver shadowContentResolver = Shadow.extract(mContentResolver); in register_shouldRegisterContentObserverForDefaultKeys()
77 ShadowContentResolver shadowContentResolver = Shadow.extract(mContentResolver); in unregister_shouldUnregisterContentObserver()
89 ShadowContentResolver shadowContentResolver = Shadow.extract(mContentResolver); in register_addSpecificKeys_shouldRegisterContentObserverForSpecificAndDefaultKeys()
/packages/modules/Bluetooth/system/gd/hci/
Dhci_layer_test.cc575 ASSERT_EQ(bd_addr, itr.extract<Address>()); in TEST_F()
576 ASSERT_EQ(handle, itr.extract<uint16_t>()); in TEST_F()
593 ASSERT_EQ(handle, sent_itr.extract<uint16_t>()); in TEST_F()
594 ASSERT_EQ(bd_addr, sent_itr.extract<Address>()); in TEST_F()
620 ASSERT_EQ(bd_addr, itr.extract<Address>()); in TEST_F()
621 ASSERT_EQ(handle, itr.extract<uint16_t>()); in TEST_F()
622 ASSERT_EQ(i, itr.extract<uint16_t>()); in TEST_F()
645 ASSERT_EQ(handle, itr.extract<uint16_t>()); in TEST_F()
646 ASSERT_EQ(i, itr.extract<uint16_t>()); in TEST_F()
/packages/modules/Bluetooth/system/gd/packet/parser/test/
Dvariable.h51 size_t data_length = it.template extract<uint8_t>(); in Parse()
60 ss << it.template extract<char>(); in Parse()
/packages/modules/Bluetooth/system/profile/sdp/common/
Ddata_element_reader.cc63 return (it_.extract<uint8_t>() != 0); in ReadNext()
103 array[i] = it_.extract<uint8_t>(); in ReadLargeInt()
166 uuid_array[i] = it_.extract<uint8_t>(); in ReadUuid()
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/apps/specialaccess/
DSpecialAppAccessTest.java24 import static org.robolectric.shadow.api.Shadow.extract;
56 mActivityManager = extract(RuntimeEnvironment.application in setUp()
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/connectivity/setup/
DAddStartStateTest.java20 import static org.robolectric.shadow.api.Shadow.extract;
60 ShadowStateMachine shadowStateMachine = extract(stateMachine); in setUp()
/packages/modules/Bluetooth/floss/build/
Dllvm-rename.sh19 --slave /usr/bin/llvm-extract llvm-extract /usr/bin/llvm-extract-${version} \
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DExternalSourcesDetailsTest.java115 final ShadowUserManager shadowUserManager = Shadow.extract(userManager); in refreshUi_userRestrictionsUnknownSources_disablesSwitchPreference()
154 final ShadowUserManager shadowUserManager = Shadow.extract(userManager); in refreshUi_userRestrictionsUnknownSourcesGlobally_disablesSwitchPreference()
193 final ShadowUserManager shadowUserManager = Shadow.extract(userManager); in refreshUi_bothUnknownSourcesUserRestrictions_disableSwitchPreference()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DAccountDetailDashboardFragmentTest.java187 Shadow.extract(mContext.getSystemService(UserManager.class)); in onResume_accountMissing_shouldFinish()
199 Shadow.extract(mContext.getSystemService(UserManager.class)); in onResume_accountPresentOneProfile_shouldNotFinish()
211 Shadow.extract(mContext.getSystemService(UserManager.class)); in onResume_accountPresentTwoProfiles_shouldNotFinish()

12345678910