Home
last modified time | relevance | path

Searched refs:slice (Results 1 – 16 of 16) sorted by relevance

/system/netd/libnetdutils/
DMemBlockTest.cpp37 for (Slice slice = result.get(); !slice.empty(); slice = drop(slice, 1)) { in makeArbitraryMemBlock() local
38 slice.base()[0] = ARBITRARY_VALUE; in makeArbitraryMemBlock()
43 void checkAllZeros(Slice slice) { in checkAllZeros() argument
44 for (; !slice.empty(); slice = drop(slice, 1)) { in checkAllZeros()
45 EXPECT_EQ(0U, slice.base()[0]); in checkAllZeros()
50 Slice slice = block.get(); in checkArbitraryMemBlock() local
51 EXPECT_EQ(expectedSize, slice.size()); in checkArbitraryMemBlock()
52 EXPECT_NE(nullptr, slice.base()); in checkArbitraryMemBlock()
53 for (; !slice.empty(); slice = drop(slice, 1)) { in checkArbitraryMemBlock()
54 EXPECT_EQ(ARBITRARY_VALUE, slice.base()[0]); in checkArbitraryMemBlock()
[all …]
DSlice.cpp54 std::ostream& operator<<(std::ostream& os, const Slice& slice) { in operator <<() argument
55 return os << std::hex << "Slice[base: " << reinterpret_cast<void*>(slice.base()) in operator <<()
56 << ", limit: " << reinterpret_cast<void*>(slice.limit()) << ", size: 0x" in operator <<()
57 << slice.size() << "]" << std::dec; in operator <<()
DSyscallsTest.cpp168 const auto slice = makeSlice(payload); in TEST_F() local
173 EXPECT_CALL(mSyscalls, sendto(kFd, slice, kFlags, asSockaddrPtr(&expected), sizeof(expected))) in TEST_F()
174 .WillOnce(Return(slice.size())); in TEST_F()
175 EXPECT_EQ(status::ok, sys.sendto(kFd, slice, kFlags, expected)); in TEST_F()
/system/bt/gd/rust/hci/custom_types/
Dlib.rs48 fn try_from(slice: &[u8]) -> Result<Self, Self::Error> { in try_from()
49 if slice.len() == 6 { in try_from()
50 match <[u8; 6]>::try_from(slice) { in try_from()
92 fn try_from(slice: &[u8]) -> Result<Self, Self::Error> { in try_from()
93 if slice.len() == 3 { in try_from()
94 match <[u8; 3]>::try_from(slice) { in try_from()
/system/bt/osi/test/fuzzers/buffer/
Dfuzz_buffer.cc61 for (const auto& slice : slices) { in LLVMFuzzerTestOneInput() local
62 buffer_free(slice); in LLVMFuzzerTestOneInput()
/system/security/keystore2/apc_compat/
Dapc_compat.rs30 use std::{ffi::CString, slice};
97 unsafe { slice::from_raw_parts(tbs_message, s as usize) }, in confirmation_result_callback()
107 unsafe { slice::from_raw_parts(confirmation_token, s as usize) }, in confirmation_result_callback()
/system/extras/ioshark/
Dioshark_bench_mmap.c61 int slice; in setup_mmap_io_state() local
65 slice = MAX(IOSHARK_MAX_MMAP_IOLEN, in setup_mmap_io_state()
71 MIN((u_int64_t)total_len, (u_int64_t)slice); in setup_mmap_io_state()
/system/vold/
DCheckpoint.cpp495 Relocations slice; in relocate() local
496 slice[dest] = source - s->first + s->second; in relocate()
501 slice[dest - source + s->first] = s->second; in relocate()
511 relocations.insert(slice.begin(), slice.end()); in relocate()
/system/bt/gd/rust/hci/src/
Dcontroller.rs325 pub fn null_terminated_to_string(slice: &[u8]) -> String { in null_terminated_to_string()
326 let temp = std::str::from_utf8(slice).unwrap(); in null_terminated_to_string()
/system/netd/libnetdutils/include/netdutils/
DSlice.h148 std::ostream& operator<<(std::ostream& os, const Slice& slice);
/system/tools/aidl/
Dhiddenapi-greylist47 "android.app.slice.ISliceListener",
48 "android.app.slice.ISliceManager",
/system/sepolicy/prebuilts/api/28.0/private/
Dservice_contexts149 slice u:object_r:slice_service:s0
/system/sepolicy/prebuilts/api/29.0/private/
Dservice_contexts178 slice u:object_r:slice_service:s0
/system/sepolicy/prebuilts/api/30.0/private/
Dservice_contexts198 slice u:object_r:slice_service:s0
/system/sepolicy/prebuilts/api/31.0/private/
Dservice_contexts247 slice u:object_r:slice_service:s0
/system/sepolicy/private/
Dservice_contexts247 slice u:object_r:slice_service:s0