/system/tools/hidl/ |
H A D | generateCpp.cpp | 64 Formatter &out, 68 out << "#include <"; 74 out << component << "/"; 77 out << klass 81 void AST::enterLeaveNamespace(Formatter &out, bool enter) const { argument 88 out << "namespace " << component << " {\n"; 91 out.setNamespace(mPackage.cppNamespace() + "::"); 93 out.setNamespace(std::string()); 98 out << "} // namespace " << *it << "\n"; 103 static void declareGetService(Formatter &out, cons argument 63 generateCppPackageInclude( Formatter &out, const FQName &package, const std::string &klass) argument 121 declareServiceManagerInteractions(Formatter &out, const std::string &interfaceName) argument 136 implementGetService(Formatter &out, const FQName &fqName, bool isTry) argument 155 implementServiceManagerInteractions(Formatter &out, const FQName &fqName, const std::string &package) argument 394 wrapPassthroughArg(Formatter& out, const NamedReference<Type>* arg, bool addPrefixToName, std::function<void(void)> handleError) argument 421 generatePassthroughMethod(Formatter& out, const Method* method) const argument 548 generateMethods(Formatter& out, const MethodGenerator& gen, bool includeParent) const argument 579 generateCppTag(Formatter& out, const std::string& tag) const argument 889 generateCheckNonNull(Formatter &out, const std::string &nonNull) argument 899 generateTypeSource(Formatter& out, const std::string& ifaceName) const argument 903 declareCppReaderLocals(Formatter& out, const std::vector<NamedReference<Type>*>& args, bool forResults) const argument 921 emitCppReaderWriter(Formatter& out, const std::string& parcelObj, bool parcelObjIsPointer, const NamedReference<Type>* arg, bool isReader, Type::ErrorMode mode, bool addPrefixToName) const argument 935 emitCppResolveReferences(Formatter& out, const std::string& parcelObj, bool parcelObjIsPointer, const NamedReference<Type>* arg, bool isReader, Type::ErrorMode mode, bool addPrefixToName) const argument 952 generateProxyMethodSource(Formatter& out, const std::string& klassName, const Method* method, const Interface* superInterface) const argument 1000 generateStaticProxyMethodSource(Formatter& out, const std::string& klassName, const Method* method) const argument 1175 generateProxySource(Formatter& out, const FQName& fqName) const argument 1211 generateStubSource(Formatter& out, const Interface* iface) const argument 1377 generateStubSourceForMethod(Formatter& out, const Method* method, const Interface* superInterface) const argument 1395 generateStaticStubMethodSource(Formatter& out, const FQName& fqName, const Method* method) const argument 1803 generateCppAtraceCall(Formatter &out, InstrumentationEvent event, const Method *method) const argument 1841 generateCppInstrumentationCall( Formatter &out, InstrumentationEvent event, const Method *method) const argument [all...] |
H A D | EnumType.cpp | 206 Formatter &out, 216 out, 226 Formatter &out, 234 out, depth, parcelName, blobName, fieldName, offset, isReader); 237 void EnumType::emitTypeDeclarations(Formatter& out) const { 243 out << "enum class " 249 out.indent(); 257 entry->emitDocComment(out); 259 out << entry->name(); 263 out << " 205 emitReaderWriter( Formatter &out, const std::string &name, const std::string &parcelObj, bool parcelObjIsPointer, bool isReader, ErrorMode mode) const argument 225 emitJavaFieldReaderWriter( Formatter &out, size_t depth, const std::string &parcelName, const std::string &blobName, const std::string &fieldName, const std::string &offset, bool isReader) const argument 316 emitEnumBitwiseOperator( Formatter &out, bool lhsIsEnum, bool rhsIsEnum, const std::string &op) const argument 362 emitBitFieldBitwiseAssignmentOperator( Formatter &out, const std::string &op) const argument 456 emitJavaTypeDeclarations(Formatter& out, bool atTopLevel) const argument 586 emitJavaDump( Formatter &out, const std::string &streamName, const std::string &name) const argument 639 emitExportedHeader(Formatter& out, bool forJava) const argument 898 emitReaderWriter( Formatter &out, const std::string &name, const std::string &parcelObj, bool parcelObjIsPointer, bool isReader, ErrorMode mode) const argument 923 emitDump( Formatter &out, const std::string &streamName, const std::string &name) const argument 932 emitJavaDump( Formatter &out, const std::string &streamName, const std::string &name) const argument 940 emitJavaFieldReaderWriter( Formatter &out, size_t depth, const std::string &parcelName, const std::string &blobName, const std::string &fieldName, const std::string &offset, bool isReader) const argument [all...] |
H A D | Interface.cpp | 92 [](auto &out) { 93 out << "return ::android::hardware::Void();\n"; 97 [](auto &out) { 98 out << "return ::android::hardware::Void();\n"; 104 [](auto &out) { 105 out << "return;\n"; 123 [](auto &out) { 124 out << "(void)cookie;\n" 129 [](auto &out) { 130 out << " 291 emitDigestChain( Formatter& out, const std::string& prefix, const std::vector<const Interface*>& chain, std::function<std::string(std::unique_ptr<ConstantExpression>)> byteToString) const argument 773 emitReaderWriter( Formatter &out, const std::string &name, const std::string &parcelObj, bool parcelObjIsPointer, bool isReader, ErrorMode mode) const argument 862 emitTypeDefinitions(Formatter& out, const std::string& prefix) const argument 868 emitJavaReaderWriter( Formatter &out, const std::string &parcelObj, const std::string &argName, bool isReader) const argument [all...] |
H A D | Type.cpp | 441 Formatter &out, 444 emitDumpWithMethod(out, streamName, "::android::hardware::toString", name); 448 Formatter &out, 452 out << streamName 461 Formatter &out, 464 out << streamName << ".append(" << name << ");\n"; 491 Formatter &out, 496 out, 505 Formatter &out, 507 out << getJavaTyp 440 emitDump( Formatter &out, const std::string &streamName, const std::string &name) const argument 447 emitDumpWithMethod( Formatter &out, const std::string &streamName, const std::string &methodName, const std::string &name) const argument 460 emitJavaDump( Formatter &out, const std::string &streamName, const std::string &name) const argument 490 emitJavaReaderWriter( Formatter &out, const std::string &parcelObj, const std::string &argName, bool isReader) const argument 504 emitJavaFieldInitializer( Formatter &out, const std::string &fieldName) const argument 524 handleError(Formatter &out, ErrorMode mode) const argument 552 emitReaderWriterEmbeddedForTypeName( Formatter &out, const std::string &name, bool nameIsPointer, const std::string &parcelObj, bool parcelObjIsPointer, bool isReader, ErrorMode mode, const std::string &parentName, const std::string &offsetText, const std::string &typeName, const std::string &childName, const std::string &funcNamespace) const argument 668 emitJavaReaderWriterWithSuffix( Formatter &out, const std::string &parcelObj, const std::string &argName, bool isReader, const std::string &suffix, const std::string &extra) const argument [all...] |
/system/tools/hidl/utils/ |
H A D | FQName.cpp | 236 LOG(ERROR) << "numbers in " << majorStr << "." << minorStr << " are out of range."; 283 std::string out; local 284 out.append(mPackage); 285 out.append(atVersion()); 288 out.append("::"); 290 out.append(mName); 293 out.append(":"); 294 out.append(mValueName); 298 return out; 396 std::string out local 411 std::string out = cppNamespace(); local [all...] |
/system/bt/profile/avrcp/ |
H A D | device.cc | 1241 std::ostream& operator<<(std::ostream& out, const Device& d) { argument 1242 out << " " << d.address_.ToString(); 1243 if (d.IsActive()) out << " <Active>"; 1244 out << std::endl; 1245 out << " Current Volume: " << volumeToStr(d.volume_) << std::endl; 1246 out << " Current Browsed Player ID: " << d.curr_browsed_player_id_ 1248 out << " Registered Notifications: " << std::endl; 1250 out << " Track Changed" << std::endl; 1253 out << " Play Status" << std::endl; 1256 out << " Pla [all...] |
/system/bt/stack/smp/ |
H A D | aes.cc | 602 unsigned char out[N_BLOCK], const aes_context ctx[1]) { 621 copy_and_key(out, s1, ctx->ksch + r * N_BLOCK); 629 return_type aes_cbc_encrypt(const unsigned char* in, unsigned char* out, argument 635 memcpy(out, iv, N_BLOCK); 637 out += N_BLOCK; 649 unsigned char out[N_BLOCK], const aes_context ctx[1]) { 668 copy_and_key(out, s1, ctx->ksch); 676 return_type aes_cbc_decrypt(const unsigned char* in, unsigned char* out, argument 683 if (aes_decrypt(in, out, ctx) != EXIT_SUCCESS) return EXIT_FAILURE; 684 xor_block(out, i 601 aes_encrypt(const unsigned char in[N_BLOCK], unsigned char out[N_BLOCK], const aes_context ctx[1]) argument 648 aes_decrypt(const unsigned char in[N_BLOCK], unsigned char out[N_BLOCK], const aes_context ctx[1]) argument 717 aes_encrypt_128(const unsigned char in[N_BLOCK], unsigned char out[N_BLOCK], const unsigned char key[N_BLOCK], unsigned char o_key[N_BLOCK]) argument 771 aes_decrypt_128(const unsigned char in[N_BLOCK], unsigned char out[N_BLOCK], const unsigned char key[N_BLOCK], unsigned char o_key[N_BLOCK]) argument 837 aes_encrypt_256(const unsigned char in[N_BLOCK], unsigned char out[N_BLOCK], const unsigned char key[2 * N_BLOCK], unsigned char o_key[2 * N_BLOCK]) argument 915 aes_decrypt_256(const unsigned char in[N_BLOCK], unsigned char out[N_BLOCK], const unsigned char key[2 * N_BLOCK], unsigned char o_key[2 * N_BLOCK]) argument [all...] |
/system/core/adb/client/ |
H A D | usb_linux.cpp | 261 // we have a match. now we just need to figure out which is in and which is out. 369 // This ioctl must not have TEMP_FAILURE_RETRY because we send SIGALRM to break out. 370 usbdevfs_urb* out = nullptr; local 371 int res = ioctl(fd, USBDEVFS_REAPURB, &out); 388 D("[ urb @%p status = %d, actual = %d ]", out, out->status, out->actual_length); 390 if (out == &h->urb_in) { 399 if (out [all...] |
/system/core/adf/libadf/ |
H A D | adf.cpp | 39 adf_id_t **out) 49 *out = ret; 252 adf_id_t *in, size_t n_in, adf_id_t **out, 272 return adf_id_vector_to_array(ids, out); 283 adf_id_t *in, size_t n_in, adf_id_t **out) 285 return adf_interfaces_filter(dev, in, n_in, out, adf_interface_type_filter, 296 adf_id_t *in, size_t n_in, adf_id_t **out) 298 return adf_interfaces_filter(dev, in, n_in, out, adf_interface_flags_filter, 466 adf_id_t *in, size_t n_in, adf_id_t **out, 487 return adf_id_vector_to_array(ids, out); 38 adf_id_vector_to_array(const std::vector<adf_id_t> &in, adf_id_t **out) argument 251 adf_interfaces_filter(struct adf_device *dev, adf_id_t *in, size_t n_in, adf_id_t **out, bool (*filter)(struct adf_interface_data *data, __u32 match), __u32 match) argument 281 adf_interfaces_filter_by_type(struct adf_device *dev, enum adf_interface_type type, adf_id_t *in, size_t n_in, adf_id_t **out) argument 295 adf_interfaces_filter_by_flag(struct adf_device *dev, __u32 flag, adf_id_t *in, size_t n_in, adf_id_t **out) argument 465 adf_overlay_engines_filter(struct adf_device *dev, adf_id_t *in, size_t n_in, adf_id_t **out, bool (*filter)(struct adf_overlay_engine_data *data, void *cookie), void *cookie) argument 509 adf_overlay_engines_filter_by_format(struct adf_device *dev, const __u32 *formats, size_t n_formats, adf_id_t *in, size_t n_in, adf_id_t **out) argument [all...] |
/system/core/libsparse/ |
H A D | output_file.c | 71 int (*write_data_chunk)(struct output_file *out, unsigned int len, 73 int (*write_fill_chunk)(struct output_file *out, unsigned int len, 75 int (*write_skip_chunk)(struct output_file *out, int64_t len); 76 int (*write_end_chunk)(struct output_file *out); 94 struct output_file out; member in struct:output_file_gz 99 container_of((_o), struct output_file_gz, out) 102 struct output_file out; member in struct:output_file_normal 107 container_of((_o), struct output_file_normal, out) 110 struct output_file out; member in struct:output_file_callback 116 container_of((_o), struct output_file_callback, out) 118 file_open(struct output_file *out, int fd) argument 126 file_skip(struct output_file *out, int64_t cnt) argument 139 file_pad(struct output_file *out, int64_t len) argument 152 file_write(struct output_file *out, void *data, size_t len) argument 174 file_close(struct output_file *out) argument 189 gz_file_open(struct output_file *out, int fd) argument 203 gz_file_skip(struct output_file *out, int64_t cnt) argument 216 gz_file_pad(struct output_file *out, int64_t len) argument 240 gz_file_write(struct output_file *out, void *data, size_t len) argument 259 gz_file_close(struct output_file *out) argument 280 callback_file_skip(struct output_file *out, int64_t off) argument 303 callback_file_write(struct output_file *out, void *data, size_t len) argument 310 callback_file_close(struct output_file *out) argument 347 write_sparse_skip_chunk(struct output_file *out, int64_t skip_len) argument 373 write_sparse_fill_chunk(struct output_file *out, unsigned int len, uint32_t fill_val) argument 408 write_sparse_data_chunk(struct output_file *out, unsigned int len, void *data) argument 449 write_sparse_end_chunk(struct output_file *out) argument 482 write_normal_data_chunk(struct output_file *out, unsigned int len, void *data) argument 500 write_normal_fill_chunk(struct output_file *out, unsigned int len, uint32_t fill_val) argument 525 write_normal_skip_chunk(struct output_file *out, int64_t len) argument 530 write_normal_end_chunk(struct output_file *out) argument 542 output_file_close(struct output_file *out) argument 548 output_file_init(struct output_file *out, int block_size, int64_t len, bool sparse, int chunks, bool crc) argument 667 struct output_file *out; local 690 write_data_chunk(struct output_file *out, unsigned int len, void *data) argument 696 write_fill_chunk(struct output_file *out, unsigned int len, uint32_t fill_val) argument 702 write_fd_chunk(struct output_file *out, unsigned int len, int fd, int64_t offset) argument 755 write_file_chunk(struct output_file *out, unsigned int len, const char *file, int64_t offset) argument 772 write_skip_chunk(struct output_file *out, int64_t len) argument [all...] |
/system/core/libutils/ |
H A D | RefBase.cpp | 367 void printRefsLocked(String8* out, const ref_entry* refs) const argument 374 out->append(buf); 376 out->append(refs->stack.toString("\t\t")); 378 out->append("\t\t(call stacks disabled)"); 695 // which case weakref_impl doesn't out-live the object and we
|
/system/extras/ANRdaemon/ |
H A D | ANRdaemon.cpp | 287 uint8_t *in, *out; local 301 out = (uint8_t*)malloc(bufSize); 304 zs.next_out = out; 323 result = write(output_fd, out, bufSize); 330 zs.next_out = out; 342 result = write(output_fd, out, bytes); 354 free(out);
|
/system/extras/f2fs_utils/ |
H A D | f2fs_sparseblock.c | 599 char *out = argv[2]; local 606 if ((outfd = open(out, O_WRONLY|O_CREAT, S_IRUSR | S_IWUSR)) < 0) {
|
/system/libvintf/ |
H A D | AssembleVintf.cpp | 108 * Set *out to environment variable only if *out is a dummy value (i.e. default constructed). 109 * Return true if *out is set to environment variable, otherwise false. 112 bool getFlagIfUnset(const std::string& envKey, T* out, bool log = true) const { argument 113 bool hasExistingValue = !(*out == T{}); 130 std::cerr << "Warning: cannot override existing value " << *out << " with " 142 *out = envValue; 204 std::vector<KernelConfig>* out) { 219 out->push_back({}); 220 KernelConfig& config = out 203 parseFileForKernelConfigs(std::basic_istream<char>& stream, std::vector<KernelConfig>* out) argument 231 parseFilesForKernelConfigs(std::vector<NamedIstream>* streams, std::vector<ConditionedConfig>* out) argument 264 std::basic_ostream<char>& out() const { return mOutRef == nullptr ? std::cout : *mOutRef; } function in class:android::vintf::AssembleVintfImpl [all...] |
H A D | VintfObject.cpp | 113 const std::shared_ptr<const HalManifest>& deviceManifest, CompatibilityMatrix* out, 160 *out = std::move(*combined); 171 status_t VintfObject::FetchDeviceHalManifest(HalManifest* out, std::string* error) { argument 172 status_t vendorStatus = FetchOneHalManifest(kVendorManifest, out, error); 185 out->addAllHals(&odmManifest); 190 // vendorStatus != OK, "out" is not changed. 192 *out = std::move(odmManifest); 197 return out->fetchAllInformation(kVendorLegacyManifest, error); 200 // "out" is written to iff return status is OK. 208 status_t VintfObject::FetchOdmHalManifest(HalManifest* out, st argument 112 GetCombinedFrameworkMatrix( const std::shared_ptr<const HalManifest>& deviceManifest, CompatibilityMatrix* out, std::string* error) argument 245 FetchOneHalManifest(const std::string& path, HalManifest* out, std::string* error) argument 255 FetchDeviceMatrix(CompatibilityMatrix* out, std::string* error) argument 264 FetchFrameworkHalManifest(HalManifest* out, std::string* error) argument [all...] |
/system/media/audio_utils/ |
H A D | primitives.c | 21 void ditherAndClamp(int32_t *out, const int32_t *sums, size_t pairs) argument 26 *out++ = (r << 16) | (l & 0xFFFF); 422 static const uint8x3_t zero; /* tricky - we use this to zero out a sample */
|
/system/media/audio_utils/tests/ |
H A D | primitives_tests.cpp | 694 void checkAddedClamped(T *out, const T *in1, const T *in2, size_t size, argument 700 EXPECT_EQ(limNeg, out[i]); 702 EXPECT_EQ(limPos, out[i]); 704 EXPECT_EQ(added, out[i]); 725 void checkAddedClampedu8(uint8_t *out, const uint8_t *in1, argument 732 memcpy_to_i16_from_u8(outi16ary, out, size);
|
/system/vold/ |
H A D | KeyStorage.cpp | 177 static bool readRandomBytesOrLog(size_t count, std::string* out) { argument 178 auto status = ReadRandomBytes(count, *out);
|
H A D | Utils.cpp | 375 status_t ReadRandomBytes(size_t bytes, std::string& out) { argument 376 out.resize(bytes); 377 return ReadRandomBytes(bytes, &out[0]); 400 status_t GenerateRandomUuid(std::string& out) { argument 401 status_t res = ReadRandomBytes(16, out); 403 out[6] &= 0x0f; /* clear version */ 404 out[6] |= 0x40; /* set to version 4 */ 405 out[8] &= 0x3f; /* clear variant */ 406 out[8] |= 0x80; /* set to IETF variant */ 470 status_t NormalizeHex(const std::string& in, std::string& out) { argument [all...] |
H A D | VoldNativeService.cpp | 200 auto out = std::fstream(StringPrintf("/proc/self/fd/%d", fd)); local 203 out << dump_permission.toString8() << endl; 208 out << "vold is happy!" << endl; 209 out.flush();
|
/system/core/libusbhost/ |
H A D | usbhost.c | 167 fprintf(stderr, "out of memory in usb_host_context\n"); 516 char* out = malloc(descriptor_len + 3); local 517 if (out == NULL) { 520 memcpy(out, response + 2, descriptor_len); 524 memset(out + descriptor_len, '\0', 3); 525 *ucs2_out = (void*)out;
|
/system/keymaster/key_blob_utils/ |
H A D | ocb.c | 116 } in, out; local 118 out.u32[0] = bswap32(in.u32[1]); 119 out.u32[1] = bswap32(in.u32[0]); 120 return out.u64; 554 static inline void AES_encrypt(const unsigned char* in, unsigned char* out, const AES_KEY* key) { argument 562 _mm_store_si128((__m128i*)out, tmp); 565 static inline void AES_decrypt(const unsigned char* in, unsigned char* out, const AES_KEY* key) { argument 573 _mm_store_si128((__m128i*)out, tmp);
|
/system/libhwbinder/ |
H A D | IPCThreadState.cpp | 68 // Static const and functions will be optimized out if not used, 69 // when LOG_NDEBUG and references in IF_LOG_COMMANDS() are optimized out. 119 static const void* printBinderTransactionData(TextOutput& out, const void* data) argument 125 out << "target.desc=" << btd->target.handle; 127 out << "target.ptr=" << btd->target.ptr; 129 out << " (cookie " << btd->cookie << ")" << endl 138 static const void* printReturnCommand(TextOutput& out, const void* _cmd) argument 145 out << "BR_ERROR: " << (void*)(long)(*cmd++) << endl; 148 out << "Unknown reply: " << code << endl; 151 out << kReturnString 199 printCommand(TextOutput& out, const void* _cmd) argument [all...] |
/system/security/keystore/ |
H A D | KeyStore.cpp | 129 static int encode_key(char* out, const android::String8& keyName) { argument 132 for (int i = length; i > 0; --i, ++in, ++out) { 134 *out = '+' + (*in >> 6); 135 *++out = '0' + (*in & 0x3F); 138 *out = *in; 141 *out = '\0'; 437 static void decode_key(char* out, const char* in, size_t length) { argument 445 *out = (*in++ - '+') << 6; 446 *out++ |= (*in - '0') & 0x3F; 448 *out 756 int out = local [all...] |
/system/bt/audio_a2dp_hw/src/ |
H A D | audio_a2dp_hw.cc | 146 * the a2dp_stream_common (out or in) mutex. 921 struct a2dp_stream_out* out = (struct a2dp_stream_out*)stream; local 925 DEBUG("write %zu bytes (fd %d)", bytes, out->common.audio_fd); 927 std::unique_lock<std::recursive_mutex> lock(*out->common.mutex); 928 if (out->common.state == AUDIO_A2DP_STATE_SUSPENDED || 929 out->common.state == AUDIO_A2DP_STATE_STOPPING) { 935 if ((out->common.state == AUDIO_A2DP_STATE_STOPPED) || 936 (out->common.state == AUDIO_A2DP_STATE_STANDBY)) { 937 if (start_audio_datapath(&out->common) < 0) { 940 } else if (out 990 struct a2dp_stream_out* out = (struct a2dp_stream_out*)stream; local 998 struct a2dp_stream_out* out = (struct a2dp_stream_out*)stream; local 1008 struct a2dp_stream_out* out = (struct a2dp_stream_out*)stream; local 1120 struct a2dp_stream_out* out = (struct a2dp_stream_out*)stream; local 1128 struct a2dp_stream_out* out = (struct a2dp_stream_out*)stream; local 1140 struct a2dp_stream_out* out = (struct a2dp_stream_out*)stream; local 1162 struct a2dp_stream_out* out = (struct a2dp_stream_out*)stream; local 1204 struct a2dp_stream_out* out = (struct a2dp_stream_out*)stream; local 1315 struct a2dp_stream_out* out = (struct a2dp_stream_out*)stream; local 1339 struct a2dp_stream_out* out = (struct a2dp_stream_out*)stream; local 1386 struct a2dp_stream_out* out = (struct a2dp_stream_out*)stream; local 1581 struct a2dp_stream_out* out; local 1681 struct a2dp_stream_out* out = (struct a2dp_stream_out*)stream; local 1712 struct a2dp_stream_out* out = a2dp_dev->output; local [all...] |