/system/update_engine/payload_generator/ |
H A D | bzip.cc | 5 // you may not use this file except in compliance with the License. 10 // Unless required by applicable law or agreed to in writing, software 29 bool BzipCompress(const brillo::Blob& in, brillo::Blob* out) { argument 32 if (in.size() == 0) 37 size_t buf_size = 40 + in.size() * 35 / 100; 48 reinterpret_cast<char*>(const_cast<uint8_t*>(in.data())), 49 in.size(),
|
H A D | xz_chromeos.cc | 5 // you may not use this file except in compliance with the License. 10 // Unless required by applicable law or agreed to in writing, software 23 bool XzCompress(const brillo::Blob& in, brillo::Blob* out) { argument 24 // No Xz compressor implementation in Chrome OS delta_generator builds.
|
H A D | xz_android.cc | 5 // you may not use this file except in compliance with the License. 10 // Unless required by applicable law or agreed to in writing, software 84 bool XzCompress(const brillo::Blob& in, brillo::Blob* out) { argument 87 if (in.empty()) 93 // No checksum in the xz stream. xz-embedded (used by the decompressor) only 102 // LZMA compression "level 6" requires 9 MB of RAM to decompress in the worst 107 lzma2Props.lzmaProps.reduceSize = in.size(); 111 BlobReaderStream in_reader(in);
|
H A D | zip_unittest.cc | 5 // you may not use this file except in compliance with the License. 10 // Unless required by applicable law or agreed to in writing, software 71 bool DecompressWithWriter(const brillo::Blob& in, brillo::Blob* out) { argument 76 TEST_AND_RETURN_FALSE(writer->Write(in.data(), in.size())); 86 bool ZipCompress(const brillo::Blob& in, brillo::Blob* out) const = 0; 87 bool ZipDecompress(const brillo::Blob& in, brillo::Blob* out) const = 0; 95 bool ZipCompress(const brillo::Blob& in, brillo::Blob* out) const { argument 96 return BzipCompress(in, out); 98 bool ZipDecompress(const brillo::Blob& in, brill argument 108 ZipCompress(const brillo::Blob& in, brillo::Blob* out) const argument 111 ZipDecompress(const brillo::Blob& in, brillo::Blob* out) const argument 162 brillo::Blob in; local [all...] |
/system/media/audio_utils/tests/ |
H A D | limiter_tests.c | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 32 float in = (float) ((double) i * 0.01); local 33 float out = limiter(in); 34 printf("%g,%g\n", in, out); 36 out = limiter(-in); 37 printf("%g,%g\n", -in, out);
|
/system/core/libsparse/ |
H A D | simg2img.c | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 40 int in; local 58 in = STDIN_FILENO; 60 in = open(argv[i], O_RDONLY | O_BINARY); 61 if (in < 0) { 67 s = sparse_file_import(in, true, false); 83 close(in);
|
H A D | img2simg.c | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 48 int in; local 70 in = STDIN_FILENO; 72 in = open(argv[1], O_RDONLY | O_BINARY); 73 if (in < 0) { 89 len = lseek64(in, 0, SEEK_END); 90 lseek64(in, 0, SEEK_SET); 99 ret = sparse_file_read(s, in, false, false); 111 close(in); [all...] |
H A D | simg2simg.c | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 44 int in; local 61 in = open(argv[1], O_RDONLY | O_BINARY); 62 if (in < 0) { 67 s = sparse_file_import(in, true, false); 112 close(in);
|
/system/core/libutils/tests/ |
H A D | String8_test.cpp | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 77 const char *in = "some string"; local 78 EXPECT_EQ(NO_MEMORY, String8("").setTo(in, SIZE_MAX)); 84 // first character in the pair and handling the rest correctly.
|
/system/core/trusty/gatekeeper/ |
H A D | trusty_gatekeeper_ipc.c | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 42 int trusty_gatekeeper_call(uint32_t cmd, void *in, uint32_t in_size, uint8_t *out, argument 52 memcpy(msg->payload, in, in_size);
|
/system/media/audio_utils/ |
H A D | conversion.cpp | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 34 const int16_t *in = out; local 37 accum += *in++; 49 const float *in = out; local 52 accum += *in++;
|
H A D | limiter.c | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 23 static inline float atan_approximation(float in) argument 26 if (in <= 1.0) { 27 return in / (1.0 + 0.28 * in * in); 29 const float in_inverse = 1.0 / in; 35 float limiter(float in) argument 38 float in_abs = fabsf(in); [all...] |
H A D | channels.c | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 47 inline uint8x3_t int32_to_uint8x3(int32_t in) { argument 50 out.c[2] = in; 51 out.c[1] = in >> 8; 52 out.c[0] = in >> 16; 54 out.c[0] = in; 55 out.c[1] = in >> 8; 56 out.c[2] = in >> 16; 64 * Move from back to front so that the conversion can be done in [all...] |
H A D | resampler.c | 5 ** you may not use this file except in compliance with the License. 10 ** Unless required by applicable law or agreed to in writing, software 32 uint32_t in_sample_rate; // input sampling rate in Hz 33 uint32_t out_sample_rate; // output sampling rate in Hz 37 size_t frames_in; // number of frames in input buffer 41 int32_t speex_delay_ns; // delay introduced by speex resampler in ns 99 // make sure that the number of frames present in rsmp->in_buf (rsmp->frames_in) is at 139 "ReSampler::resample() remaining %zu frames in and %zu frames out", 153 int16_t *in, 160 if (rsmp == NULL || in 152 resampler_resample_from_input(struct resampler_itfe *resampler, int16_t *in, size_t *inFrameCount, int16_t *out, size_t *outFrameCount) argument [all...] |
/system/tools/aidl/tests/ |
H A D | aidl_test_client_nullables.cpp | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 51 bool ValuesEqual(const unique_ptr<T>& in, const unique_ptr<T>& out) { argument 52 return *in == *out; 57 const unique_ptr<vector<unique_ptr<String16>>>& in, 59 if (!in) { 67 if (in->size() != out->size()) { 71 for (size_t i = 0; i < in->size(); i++) { 72 const unique_ptr<String16>& a = (*in)[i]; 93 unique_ptr<T> in, 56 ValuesEqual( const unique_ptr<vector<unique_ptr<String16>>>& in, const unique_ptr<vector<unique_ptr<String16>>>& out) argument 92 ConfirmNullableType(const sp<ITestService>& s, string type_name, unique_ptr<T> in, Status(ITestService::*func)(const unique_ptr<T>&, unique_ptr<T>*)) argument [all...] |
/system/tpm/attestation/common/ |
H A D | mock_tpm_utility.cc | 5 // you may not use this file except in compliance with the License. 10 // Unless required by applicable law or agreed to in writing, software 29 bool operator()(const std::string& in, std::string* out) { argument 30 *out = attestation::MockTpmUtility::Transform(method_, in); 41 bool operator()(const std::string& in, std::string* out) { argument 43 auto position = in.find(suffix); 47 *out = in.substr(0, position);
|
/system/netd/server/ |
H A D | ResolverStats.h | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 26 // Offsets into the per-server resolver stats as encoded in vector<int32_t> stats of 36 STATS_LAST_SAMPLE_TIME, // time in s when the last sample was recorded 38 STATS_COUNT // total count of integers in the per-server data 52 // Read the serialized resolverstats starting at |in[ofs]|. 53 ssize_t decode(const std::vector<int32_t>& in, ssize_t ofs); 56 // can be written to the same output vector in sequence, however, the corresponding call 57 // to decodeAll() will return the combined contents in one vector. 60 // Decodes the serialized ResolverStats from |in| an 79 decode(const std::vector<int32_t>& in, ssize_t ofs) argument 102 decodeAll(const std::vector<int32_t>& in, std::vector<ResolverStats>* stats) argument [all...] |
/system/core/healthd/ |
H A D | AnimationParser.cpp | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 54 bool parse_text_field(const char* in, animation::text_field* field) { argument 64 if (sscanf(in, "c c %d %d %d %d %n%*s%n", r, g, b, a, &start, &end) == 4) { 67 } else if (sscanf(in, "c %d %d %d %d %d %n%*s%n", y, r, g, b, a, &start, &end) == 5) { 69 } else if (sscanf(in, "%d c %d %d %d %d %n%*s%n", x, r, g, b, a, &start, &end) == 5) { 71 } else if (sscanf(in, "%d %d %d %d %d %d %n%*s%n", x, y, r, g, b, a, &start, &end) != 6) { 77 field->font_file.assign(&in[start], end - start);
|
/system/extras/ext4_utils/ |
H A D | ext2simg.c | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 120 const char *in = NULL; local 150 in = argv[optind++]; 166 infd = open(in, O_RDONLY); 175 build_sparse_ext(infd, in);
|
/system/extras/verity/ |
H A D | verify_boot_signature.c | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 90 * @param offset Receives the offset in bytes 132 BIO *in = NULL; local 142 if ((in = BIO_new_fd(fd, BIO_NOCLOSE)) == NULL) { 147 if ((*bs = ASN1_item_d2i_bio(ASN1_ITEM_rptr(BootSignature), in, bs)) == NULL) { 149 BIO_free(in); 153 BIO_free(in); 159 * the length in authenticated attributes matches the actual length of 193 /* Confirm that the length of the image matches with the length in [all...] |
/system/security/keystore/ |
H A D | blob.cpp | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 155 int in = TEMP_FAILURE_RETRY(open(filename, O_RDONLY)); local 156 if (in < 0) { 159 // fileLength may be less than sizeof(mBlob) since the in 162 size_t fileLength = readFully(in, (uint8_t*)&mBlob, sizeof(mBlob)); 163 if (close(in) != 0) {
|
H A D | user_state.cpp | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 107 int in = TEMP_FAILURE_RETRY(open(src->getMasterKeyFileName(), O_RDONLY)); local 108 if (in < 0) { 112 size_t length = readFully(in, (uint8_t*)&rawBlob, sizeof(rawBlob)); 113 if (close(in) != 0) { 143 int in = TEMP_FAILURE_RETRY(open(mMasterKeyFile, O_RDONLY)); local 144 if (in < 0) { 151 size_t length = readFully(in, (uint8_t*)&rawBlob, sizeof(rawBlob)); 152 if (close(in) ! [all...] |
/system/update_engine/ |
H A D | omaha_response_handler_action_unittest.cc | 5 // you may not use this file except in compliance with the License. 10 // Unless required by applicable law or agreed to in writing, software 55 bool DoTest(const OmahaResponse& in, 94 const OmahaResponse& in, 102 feeder_action.set_obj(in); 103 if (in.update_exists && in.version != kBadVersion) { 105 SetString(kPrefsUpdateCheckResponseHash, in.hash)) 114 string current_url = in.payload_urls.size() ? in 93 DoTest( const OmahaResponse& in, const string& test_deadline_file, InstallPlan* out) argument 144 OmahaResponse in; local 169 OmahaResponse in; local 190 OmahaResponse in; local 213 OmahaResponse in; local 221 OmahaResponse in; local 241 OmahaResponse in; local 262 OmahaResponse in; local 282 OmahaResponse in; local 301 OmahaResponse in; local 321 OmahaResponse in; local 363 OmahaResponse in; local 405 OmahaResponse in; local [all...] |
/system/bt/embdrv/sbc/decoder/srce/ |
H A D | synthesis-dct8.c | 7 * you may not use this file except in compliance with the License. 12 * Unless required by applicable law or agreed to in writing, software 82 PRIVATE void float_dct2_8(float * RESTRICT out, OI_INT32 const *RESTRICT in) argument 95 in0 = FLOAT_SCALE(in[0], DCTII_8_SHIFT_IN); OI_ASSERT(VALID_INT32(in0)); 96 in1 = FLOAT_SCALE(in[1], DCTII_8_SHIFT_IN); OI_ASSERT(VALID_INT32(in1)); 97 in2 = FLOAT_SCALE(in[2], DCTII_8_SHIFT_IN); OI_ASSERT(VALID_INT32(in2)); 98 in3 = FLOAT_SCALE(in[3], DCTII_8_SHIFT_IN); OI_ASSERT(VALID_INT32(in3)); 99 in4 = FLOAT_SCALE(in[4], DCTII_8_SHIFT_IN); OI_ASSERT(VALID_INT32(in4)); 100 in5 = FLOAT_SCALE(in[5], DCTII_8_SHIFT_IN); OI_ASSERT(VALID_INT32(in5)); 101 in6 = FLOAT_SCALE(in[ 209 dct2_8(SBC_BUFFER_T * RESTRICT out, OI_INT32 const *RESTRICT in) argument [all...] |
H A D | synthesis-sbc.c | 7 * you may not use this file except in compliance with the License. 12 * Unless required by applicable law or agreed to in writing, software 28 operations described in A2DP Appendix B, Figure 12.3. Several 36 According to Fig 12.3, in the 8-subband case, 64 formally demonstrated in, e.g., Liu, Chi-Min and Lee, 66 Filter Banks in Current Audio Coding Standards." Journal of 72 the matrix N in light of its factorization into C2 and R, R's 73 sparseness has implications for interpreting the values in V. In 74 particular, there is considerable redundancy in the values stored in 475 cosineModulateSynth4(SBC_BUFFER_T * RESTRICT out, OI_INT32 const * RESTRICT in) argument [all...] |