Home
last modified time | relevance | path

Searched refs:dest (Results 1 – 25 of 90) sorted by relevance

1234

/system/tools/hidl/hidl2aidl/test/
Dtranslate_cpp_test.cpp27 hidl2aidl::test::OnlyIn10 dest; in TEST_F() local
30 ASSERT_TRUE(h2a::translate(source, &dest)); in TEST_F()
31 EXPECT_EQ(source.str, String8(dest.str).c_str()); in TEST_F()
35 hidl2aidl::test::OnlyIn11 dest; in TEST_F() local
38 ASSERT_TRUE(h2a::translate(source, &dest)); in TEST_F()
39 EXPECT_EQ(source.str, dest.str); in TEST_F()
43 hidl2aidl::test::OverrideMe dest; in TEST_F() local
46 ASSERT_TRUE(h2a::translate(source, &dest)); in TEST_F()
47 EXPECT_EQ(source.a, String8(dest.a).c_str()); in TEST_F()
51 hidl2aidl::test::Outer dest; in TEST_F() local
[all …]
Dtranslate_ndk_test.cpp27 aidl::hidl2aidl::test::OnlyIn10 dest; in TEST_F() local
30 ASSERT_TRUE(h2a::translate(source, &dest)); in TEST_F()
31 EXPECT_EQ(source.str, dest.str); in TEST_F()
35 aidl::hidl2aidl::test::OnlyIn11 dest; in TEST_F() local
38 ASSERT_TRUE(h2a::translate(source, &dest)); in TEST_F()
39 EXPECT_EQ(source.str, dest.str); in TEST_F()
43 aidl::hidl2aidl::test::OverrideMe dest; in TEST_F() local
46 ASSERT_TRUE(h2a::translate(source, &dest)); in TEST_F()
47 EXPECT_EQ(source.a, dest.a); in TEST_F()
51 aidl::hidl2aidl::test::Outer dest; in TEST_F() local
[all …]
DTranslateJavaTest.java30 hidl2aidl.test.OnlyIn10 dest; in OnlyIn10() local
33 dest = Translate.h2aTranslate(source); in OnlyIn10()
34 assertThat(source.str, is(dest.str)); in OnlyIn10()
39 hidl2aidl.test.OnlyIn11 dest; in OnlyIn11() local
42 dest = Translate.h2aTranslate(source); in OnlyIn11()
43 assertThat(source.str, is(dest.str)); in OnlyIn11()
48 hidl2aidl.test.OverrideMe dest; in OverrideMe() local
51 dest = Translate.h2aTranslate(source); in OverrideMe()
52 assertThat(source.a, is(dest.a)); in OverrideMe()
57 hidl2aidl.test.Outer dest; in Outer() local
[all …]
/system/chre/util/include/chre/util/
Dmemory_impl.h38 inline void moveOrCopyAssign(ElementType &dest, ElementType &source, in moveOrCopyAssign() argument
40 dest = std::move(source); in moveOrCopyAssign()
45 inline void moveOrCopyAssign(ElementType &dest, ElementType &source, in moveOrCopyAssign() argument
47 dest = source; in moveOrCopyAssign()
51 inline void moveOrCopyAssign(ElementType &dest, ElementType &source) { in moveOrCopyAssign() argument
52 moveOrCopyAssign(dest, source, in moveOrCopyAssign()
59 ElementType *dest, std::true_type) { in uninitializedMoveOrCopy() argument
60 std::memcpy(dest, source, count * sizeof(ElementType)); in uninitializedMoveOrCopy()
67 ElementType *dest, std::false_type, in uninitializedMoveOrCopy() argument
70 new (&dest[i]) ElementType(std::move(source[i])); in uninitializedMoveOrCopy()
[all …]
Dmemory.h39 void moveOrCopyAssign(ElementType &dest, ElementType &source);
53 ElementType *dest);
/system/keymaster/android_keymaster/
Dserializable.cpp45 bool copy_from_buf(const uint8_t** buf_ptr, const uint8_t* end, void* dest, size_t size) { in copy_from_buf() argument
47 memcpy(dest, *buf_ptr, size); in copy_from_buf()
56 UniquePtr<uint8_t[]>* dest) { in copy_size_and_data_from_buf() argument
60 dest->reset(); in copy_size_and_data_from_buf()
65 dest->reset(new (std::nothrow) uint8_t[*size]); in copy_size_and_data_from_buf()
66 if (!dest->get()) { in copy_size_and_data_from_buf()
69 return copy_from_buf(buf_ptr, end, dest->get(), *size); in copy_size_and_data_from_buf()
131 bool Buffer::read(uint8_t* dest, size_t read_length) { in read() argument
133 memcpy(dest, buffer_.get() + read_position_, read_length); in read()
/system/bt/embdrv/sbc/decoder/srce/
Dframing.c262 PRIVATE void shift_buffer(SBC_BUFFER_T* dest, SBC_BUFFER_T* src, in shift_buffer() argument
265 memmove(dest, src, wordCount * sizeof(SBC_BUFFER_T)); in shift_buffer()
267 OI_ASSERT(((OI_CHAR*)(dest) - (OI_CHAR*)(src)) >= wordCount * sizeof(*dest)); in shift_buffer()
268 memcpy(dest, src, wordCount * sizeof(SBC_BUFFER_T)); in shift_buffer()
273 n = wordCount / 4 / (sizeof(int32_t) / sizeof(*dest)); in shift_buffer()
274 OI_ASSERT((n * 4 * (sizeof(int32_t) / sizeof(*dest))) == wordCount); in shift_buffer()
276 d = (void*)(dest + wordCount); in shift_buffer()
/system/core/libutils/include/utils/
DVectorImpl.h104 virtual void do_copy(void* dest, const void* from, size_t num) const = 0;
105 virtual void do_splat(void* dest, const void* item, size_t num) const = 0;
106 virtual void do_move_forward(void* dest, const void* from, size_t num) const = 0;
107 virtual void do_move_backward(void* dest, const void* from, size_t num) const = 0;
115 inline void _do_copy(void* dest, const void* from, size_t num) const;
116 inline void _do_splat(void* dest, const void* item, size_t num) const;
117 inline void _do_move_forward(void* dest, const void* from, size_t num) const;
118 inline void _do_move_backward(void* dest, const void* from, size_t num) const;
DSortedVector.h147 virtual void do_copy(void* dest, const void* from, size_t num) const;
148 virtual void do_splat(void* dest, const void* item, size_t num) const;
149 virtual void do_move_forward(void* dest, const void* from, size_t num) const;
150 virtual void do_move_backward(void* dest, const void* from, size_t num) const;
267 UTILS_VECTOR_NO_CFI void SortedVector<TYPE>::do_copy(void* dest, const void* from, size_t num) cons… in do_copy() argument
268 copy_type( reinterpret_cast<TYPE*>(dest), reinterpret_cast<const TYPE*>(from), num ); in do_copy()
272 UTILS_VECTOR_NO_CFI void SortedVector<TYPE>::do_splat(void* dest, const void* item, size_t num) con… in do_splat() argument
273 splat_type( reinterpret_cast<TYPE*>(dest), reinterpret_cast<const TYPE*>(item), num ); in do_splat()
277 UTILS_VECTOR_NO_CFI void SortedVector<TYPE>::do_move_forward(void* dest, const void* from, size_t n… in do_move_forward() argument
278 move_forward_type( reinterpret_cast<TYPE*>(dest), reinterpret_cast<const TYPE*>(from), num ); in do_move_forward()
[all …]
DVector.h216 virtual void do_copy(void* dest, const void* from, size_t num) const;
217 virtual void do_splat(void* dest, const void* item, size_t num) const;
218 virtual void do_move_forward(void* dest, const void* from, size_t num) const;
219 virtual void do_move_backward(void* dest, const void* from, size_t num) const;
407 UTILS_VECTOR_NO_CFI void Vector<TYPE>::do_copy(void* dest, const void* from, size_t num) const { in do_copy() argument
408 copy_type( reinterpret_cast<TYPE*>(dest), reinterpret_cast<const TYPE*>(from), num ); in do_copy()
412 UTILS_VECTOR_NO_CFI void Vector<TYPE>::do_splat(void* dest, const void* item, size_t num) const { in do_splat() argument
413 splat_type( reinterpret_cast<TYPE*>(dest), reinterpret_cast<const TYPE*>(item), num ); in do_splat()
417 UTILS_VECTOR_NO_CFI void Vector<TYPE>::do_move_forward(void* dest, const void* from, size_t num) co… in do_move_forward() argument
418 move_forward_type( reinterpret_cast<TYPE*>(dest), reinterpret_cast<const TYPE*>(from), num ); in do_move_forward()
[all …]
/system/apex/tests/native/
Dapex_shared_libraries_test.cpp89 auto dest = fs::canonical(p.path(), ec); in TEST() local
108 auto dest = *static_cast<fs::path*>(data); in TEST() local
123 if (libpath == dest) { in TEST()
132 bool found = (dl_iterate_phdr(dl_callback, &dest) == 1); in TEST()
135 << " which resolves to file " << dest; in TEST()
138 << " correctly loads as library " << dest; in TEST()
/system/netd/libnetdutils/
DMemBlockTest.cpp58 void checkHelloMello(Slice dest, Slice src) { in checkHelloMello() argument
59 EXPECT_EQ('h', dest.base()[0]); in checkHelloMello()
60 EXPECT_EQ('e', dest.base()[1]); in checkHelloMello()
61 EXPECT_EQ('l', dest.base()[2]); in checkHelloMello()
62 EXPECT_EQ('l', dest.base()[3]); in checkHelloMello()
63 EXPECT_EQ('o', dest.base()[4]); in checkHelloMello()
66 EXPECT_EQ('h', dest.base()[0]); in checkHelloMello()
/system/chre/apps/test/chqts/src/shared/
Dnano_string.cc55 char *strncpy(char *dest, const char *src, size_t len) { in strncpy() argument
58 dest[i] = src[i]; in strncpy()
61 dest[i] = '\0'; in strncpy()
63 return dest; in strncpy()
/system/iorap/src/inode2filename/
Dout_of_process_inode_resolver.cc235 void EmitFromCommandFind(rxcpp::subscriber<InodeResult>& dest, in EmitFromCommandFind()
241 dest.on_completed(); in EmitFromCommandFind()
245 EmitFromCommandWithArgv(/*inout*/dest, std::move(argv), inodes.size()); in EmitFromCommandFind()
251 void EmitFromCommandAll(rxcpp::subscriber<InodeResult>& dest, in EmitFromCommandAll()
254 EmitFromCommandWithArgv(/*inout*/dest, std::move(argv), /*result_count*/std::nullopt); in EmitFromCommandAll()
258 void EmitFromCommandWithArgv(rxcpp::subscriber<InodeResult>& dest, in EmitFromCommandWithArgv()
263 dest.on_error( in EmitFromCommandWithArgv()
271 dest.on_error( in EmitFromCommandWithArgv()
315 dest.on_error( in EmitFromCommandWithArgv()
341 dest.on_error( in EmitFromCommandWithArgv()
[all …]
Ddata_source.cc104 [file_name](rx::subscriber<InodeResult> dest) { in EmitInodes() argument
110 dest.on_error(rxcpp::util::make_error_ptr( in EmitInodes()
115 while (dest.is_subscribed() && ifs) { in EmitInodes()
150 dest.on_next(InodeResult::makeSuccess(inode, value_filename)); in EmitInodes()
153 dest.on_completed(); in EmitInodes()
/system/sepolicy/tests/
Dsepolicy_tests.py102 def take_action(self, action, dest, opt, value, values, parser): argument
104 values.ensure_value(dest, []).append(value)
106 Option.take_action(self, action, dest, opt, value, values, parser)
126 parser.add_option("-f", "--file_contexts", dest="file_contexts",
128 parser.add_option("-p", "--policy", dest="policy", metavar="FILE")
129 parser.add_option("-l", "--library-path", dest="libpath", metavar="FILE")
130 parser.add_option("-t", "--test", dest="test", action="extend",
Dtreble_sepolicy_tests.py319 def take_action(self, action, dest, opt, value, values, parser): argument
321 values.ensure_value(dest, []).append(value)
323 Option.take_action(self, action, dest, opt, value, values, parser)
336 parser.add_option("-b", "--basepolicy", dest="basepolicy", metavar="FILE")
337 parser.add_option("-u", "--base-pub-policy", dest="base_pub_policy",
339 parser.add_option("-f", "--file_contexts", dest="file_contexts",
341 parser.add_option("-l", "--library-path", dest="libpath", metavar="FILE")
342 parser.add_option("-m", "--mapping", dest="mapping", metavar="FILE")
343 parser.add_option("-o", "--oldpolicy", dest="oldpolicy", metavar="FILE")
344 parser.add_option("-p", "--policy", dest="policy", metavar="FILE")
[all …]
Dcombine_maps.py60 parser.add_argument("-t", "--top-map", dest="top_map",
62 parser.add_argument("-b", "--bottom-map", dest="bottom_map",
64 parser.add_argument("-o", "--output-file", dest="output_file",
/system/tools/aidl/tests/java/src/android/aidl/tests/generic/
DPair.java31 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument
32 dest.writeValue(mFirst); in writeToParcel()
33 dest.writeValue(mSecond); in writeToParcel()
/system/bt/vendor_libs/test_vendor_lib/model/devices/
Dsniffer.cc44 Address dest = packet.GetDestinationAddress(); in IncomingPacket() local
46 bool match_dest = device_to_sniff_ == dest; in IncomingPacket()
52 source.ToString().c_str(), dest.ToString().c_str(), in IncomingPacket()
/system/bt/embdrv/sbc/decoder/include/
Doi_string.h62 #define OI_Strcpy(dest, src) strcpy((dest), (src)) argument
63 #define OI_Strcat(dest, src) strcat((dest), (src)) argument
/system/core/storaged/tools/
Dranker.py51 parser.add_argument("-i", "--input", dest="input", required="true",
53 parser.add_argument("-o", "--output", dest="output", default="stdout",
55 parser.add_argument("-u", "--uidcnt", dest="uidcnt", type=int, default=10,
58 parser.add_argument("-c", "--combine", dest="combine", default=False,
61 parser.add_argument("-n", "--native", dest="native", default=False,
64 parser.add_argument("-t", "--task", dest="task", default=False,
/system/extras/profcollectd/libprofcollectd/
Dservice.rs110 let mut dest = PathBuf::from(&*BETTERBUG_CACHE_DIR_PREFIX); in copy_report_to_bb() localVariable
111 dest.push(bb_profile_id.to_string()); in copy_report_to_bb()
112 dest.push(&*BETTERBUG_CACHE_DIR_SUFFIX); in copy_report_to_bb()
113 if !dest.is_dir() { in copy_report_to_bb()
116 dest.push(report_name); in copy_report_to_bb()
117 dest.set_extension("zip"); in copy_report_to_bb()
119 copy(report, dest) in copy_report_to_bb()
/system/tools/aidl/tests/java/src/android/aidl/tests/
DSimpleParcelable.java39 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument
40 dest.writeString(mName); in writeToParcel()
41 dest.writeInt(mNumber); in writeToParcel()
/system/libufdt/utils/src/
Dmkdtboimg.py602 parser.add_argument('--id', type=str, dest='id', action='store',
604 parser.add_argument('--rev', type=str, dest='rev',
606 parser.add_argument('--flags', type=str, dest='flags',
609 parser.add_argument('--custom0', type=str, dest='custom0',
612 parser.add_argument('--custom1', type=str, dest='custom1',
615 parser.add_argument('--custom2', type=str, dest='custom2',
618 parser.add_argument('--custom3', type=str, dest='custom3',
777 parser.add_argument('--dt_type', type=str, dest='dt_type',
779 parser.add_argument('--page_size', type=int, dest='page_size',
781 parser.add_argument('--version', type=int, dest='version',
[all …]

1234