Home
last modified time | relevance | path

Searched refs:out (Results 1 – 25 of 264) sorted by relevance

1234567891011

/system/update_engine/
Domaha_request_params_unittest.cc45 bool DoTest(OmahaRequestParams* out, const string& app_version,
81 bool OmahaRequestParamsTest::DoTest(OmahaRequestParams* out, in DoTest() argument
85 if (out) in DoTest()
86 *out = params_; in DoTest()
111 OmahaRequestParams out(&fake_system_state_); in TEST_F() local
112 EXPECT_TRUE(DoTest(&out, "", "")); in TEST_F()
113 EXPECT_EQ("Chrome OS", out.os_platform()); in TEST_F()
114 EXPECT_EQ(string("0.2.2.3_") + GetMachineType(), out.os_sp()); in TEST_F()
115 EXPECT_EQ("arm-generic", out.os_board()); in TEST_F()
116 EXPECT_EQ("{87efface-864d-49a5-9bb3-4b050a7c227a}", out.GetAppId()); in TEST_F()
[all …]
/system/core/libsparse/
Doutput_file.c71 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
99 container_of((_o), struct output_file_gz, out)
102 struct output_file out; member
107 container_of((_o), struct output_file_normal, out)
110 struct output_file out; member
116 container_of((_o), struct output_file_callback, out)
[all …]
Dsparse.c104 static int sparse_file_write_block(struct output_file *out, in sparse_file_write_block() argument
111 ret = write_data_chunk(out, backed_block_len(bb), backed_block_data(bb)); in sparse_file_write_block()
114 ret = write_file_chunk(out, backed_block_len(bb), in sparse_file_write_block()
119 ret = write_fd_chunk(out, backed_block_len(bb), in sparse_file_write_block()
124 ret = write_fill_chunk(out, backed_block_len(bb), in sparse_file_write_block()
132 static int write_all_blocks(struct sparse_file *s, struct output_file *out) in write_all_blocks() argument
143 write_skip_chunk(out, (int64_t)blocks * s->block_size); in write_all_blocks()
145 ret = sparse_file_write_block(out, bb); in write_all_blocks()
155 write_skip_chunk(out, pad); in write_all_blocks()
166 struct output_file *out; in sparse_file_write() local
[all …]
Doutput_file.h29 int write_data_chunk(struct output_file *out, unsigned int len, void *data);
30 int write_fill_chunk(struct output_file *out, unsigned int len,
32 int write_file_chunk(struct output_file *out, unsigned int len,
34 int write_fd_chunk(struct output_file *out, unsigned int len,
36 int write_skip_chunk(struct output_file *out, int64_t len);
37 void output_file_close(struct output_file *out);
Dsimg2img.c41 int out; in main() local
50 out = open(argv[argc - 1], O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0664); in main()
51 if (out < 0) { in main()
73 if (lseek(out, 0, SEEK_SET) == -1) { in main()
78 if (sparse_file_write(s, out, false, false, false) < 0) { in main()
86 close(out); in main()
Dimg2simg.c49 int out; in main() local
80 out = STDOUT_FILENO; in main()
82 out = open(argv[2], O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0664); in main()
83 if (out < 0) { in main()
105 ret = sparse_file_write(s, out, false, true, false); in main()
112 close(out); in main()
/system/core/toolbox/upstream-netbsd/bin/dd/
Ddd.c78 IO in, out; /* input/output state */ variable
179 if (out.name == NULL) { in setup()
181 out.fd = STDOUT_FILENO; in setup()
182 out.name = "stdout"; in setup()
183 out.ops = &ddfops_stdfd; in setup()
185 out.ops = prog_ops; in setup()
188 out.fd = ddop_open(out, out.name, O_RDWR | OFLAGS, DEFFILEMODE); in setup()
194 if (out.fd < 0) { in setup()
195 out.fd = ddop_open(out, out.name, O_WRONLY | OFLAGS, in setup()
197 out.flags |= NOREAD; in setup()
[all …]
Dposition.c139 if (!(out.flags & ISTAPE)) { in pos_out()
140 if (ddop_lseek(out, out.fd, in pos_out()
141 (off_t)out.offset * (off_t)out.dbsz, SEEK_SET) == -1) in pos_out()
142 err(EXIT_FAILURE, "%s", out.name); in pos_out()
148 if (out.flags & NOREAD) { in pos_out()
150 t_op.mt_count = out.offset; in pos_out()
152 if (ddop_ioctl(out, out.fd, MTIOCTOP, &t_op) < 0) in pos_out()
153 err(EXIT_FAILURE, "%s", out.name); in pos_out()
159 for (cnt = 0; cnt < out.offset; ++cnt) { in pos_out()
160 if ((n = ddop_read(out, out.fd, out.db, out.dbsz)) > 0) in pos_out()
[all …]
Dconv.c73 out.dbp = in.dbp; in def()
74 out.dbcnt = in.dbcnt; in def()
76 if (in.dbcnt >= out.dbsz) { in def()
85 in.dbp = out.dbp; in def()
86 in.dbcnt = out.dbcnt; in def()
96 out.dbcnt = in.dbcnt; in def_close()
149 for (inp = in.dbp - in.dbcnt, outp = out.dbp; in.dbcnt;) { in block()
193 out.dbp += cbsz; in block()
194 if ((out.dbcnt += cbsz) >= out.dbsz) in block()
196 outp = out.dbp; in block()
[all …]
/system/core/healthd/tests/
DAnimationParser_test.cpp65 animation::text_field out; in TEST() local
67 EXPECT_TRUE(parse_text_field(TEST_XCENT_YCENT, &out)); in TEST()
68 EXPECT_EQ(CENTER_VAL, out.pos_x); in TEST()
69 EXPECT_EQ(CENTER_VAL, out.pos_y); in TEST()
70 EXPECT_EQ(TEST_R, out.color_r); in TEST()
71 EXPECT_EQ(TEST_G, out.color_g); in TEST()
72 EXPECT_EQ(TEST_B, out.color_b); in TEST()
73 EXPECT_EQ(TEST_A, out.color_a); in TEST()
74 EXPECT_STREQ(TEST_FILE_NAME, out.font_file.c_str()); in TEST()
76 EXPECT_TRUE(parse_text_field(TEST_XCENT_YVAL, &out)); in TEST()
[all …]
/system/update_engine/payload_generator/
Dzip_unittest.cc71 bool DecompressWithWriter(const brillo::Blob& in, brillo::Blob* out) { in DecompressWithWriter() argument
73 new W(brillo::make_unique_ptr(new MemoryExtentWriter(out)))); in DecompressWithWriter()
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 { in ZipCompress()
96 return BzipCompress(in, out); in ZipCompress()
98 bool ZipDecompress(const brillo::Blob& in, brillo::Blob* out) const { in ZipDecompress()
99 return DecompressWithWriter<BzipExtentWriter>(in, out); in ZipDecompress()
108 bool ZipCompress(const brillo::Blob& in, brillo::Blob* out) const { in ZipCompress()
109 return XzCompress(in, out); in ZipCompress()
[all …]
Dbzip.cc29 bool BzipCompress(const brillo::Blob& in, brillo::Blob* out) { in BzipCompress() argument
30 TEST_AND_RETURN_FALSE(out); in BzipCompress()
31 out->clear(); in BzipCompress()
38 out->resize(buf_size); in BzipCompress()
46 reinterpret_cast<char*>(out->data()), in BzipCompress()
56 out->resize(data_size); in BzipCompress()
62 out->resize(buf_size); in BzipCompress()
/system/bt/audio_a2dp_hw/
Daudio_a2dp_hw.c588 struct a2dp_stream_out *out = (struct a2dp_stream_out *)stream; in out_write() local
591 DEBUG("write %zu bytes (fd %d)", bytes, out->common.audio_fd); in out_write()
593 pthread_mutex_lock(&out->common.lock); in out_write()
594 if (out->common.state == AUDIO_A2DP_STATE_SUSPENDED || in out_write()
595 out->common.state == AUDIO_A2DP_STATE_STOPPING) { in out_write()
601 if ((out->common.state == AUDIO_A2DP_STATE_STOPPED) || in out_write()
602 (out->common.state == AUDIO_A2DP_STATE_STANDBY)) in out_write()
604 if (start_audio_datapath(&out->common) < 0) in out_write()
609 else if (out->common.state != AUDIO_A2DP_STATE_STARTED) in out_write()
615 pthread_mutex_unlock(&out->common.lock); in out_write()
[all …]
/system/media/audio_utils/
Dlimiter.c42 float out; in limiter() local
47 out = crossover + atan_approximation((in_abs - crossover)*factor)*ratio; in limiter()
48 if (out > 1.0) { in limiter()
49 out = 1.0; in limiter()
60 out = ((A*in_abs + B)*in_abs + C)*in_abs + D; in limiter()
62 out = 1.0; in limiter()
66 out = -out; in limiter()
68 return out; in limiter()
Dconversion.cpp32 int16_t *out = (int16_t *)buf; in mono_blend() local
34 const int16_t *in = out; in mono_blend()
41 *out++ = accum; in mono_blend()
46 float *out = (float *)buf; in mono_blend() local
49 const float *in = out; in mono_blend()
60 *out++ = accum; in mono_blend()
/system/tools/aidl/tests/android/aidl/tests/
DITestService.aidl45 out SimpleParcelable repeat); in RepeatSimpleParcelable()
49 boolean[] ReverseBoolean(in boolean[] input, out boolean[] repeated); in ReverseBoolean()
50 byte[] ReverseByte (in byte[] input, out byte[] repeated); in ReverseByte()
51 char[] ReverseChar (in char[] input, out char[] repeated); in ReverseChar()
52 int[] ReverseInt (in int[] input, out int[] repeated); in ReverseInt()
53 long[] ReverseLong (in long[] input, out long[] repeated); in ReverseLong()
54 float[] ReverseFloat (in float[] input, out float[] repeated); in ReverseFloat()
55 double[] ReverseDouble (in double[] input, out double[] repeated); in ReverseDouble()
56 String[] ReverseString (in String[] input, out String[] repeated); in ReverseString()
59 out SimpleParcelable[] repeated); in ReverseSimpleParcelables()
[all …]
/system/extras/verity/
Dgenerate_verity_key.c46 goto out; in convert_to_mincrypt_format()
83 out: in convert_to_mincrypt_format()
95 goto out; in write_public_keyfile()
98 goto out; in write_public_keyfile()
102 goto out; in write_public_keyfile()
108 out: in write_public_keyfile()
123 goto out; in convert_x509()
129 goto out; in convert_x509()
135 goto out; in convert_x509()
141 goto out; in convert_x509()
[all …]
/system/bt/embdrv/sbc/decoder/srce/
Dsynthesis-dct8.c82 PRIVATE void float_dct2_8(float * RESTRICT out, OI_INT32 const *RESTRICT in) in float_dct2_8() argument
123 out[0] = (float)FLOAT_SCALE(L00, DCTII_8_SHIFT_0); OI_ASSERT(VALID_INT16(out[0])); in float_dct2_8()
124 out[4] = (float)FLOAT_SCALE(L01, DCTII_8_SHIFT_4); OI_ASSERT(VALID_INT16(out[4])); in float_dct2_8()
127 out[6] = (float)FLOAT_SCALE(L02, DCTII_8_SHIFT_6); OI_ASSERT(VALID_INT16(out[6])); in float_dct2_8()
128 out[2] = (float)FLOAT_SCALE(L03, DCTII_8_SHIFT_2); OI_ASSERT(VALID_INT16(out[2])); in float_dct2_8()
153 out[3] = (float)(FLOAT_SCALE(L04, DCTII_8_SHIFT_3-1)); OI_ASSERT(VALID_INT16(out[3])); in float_dct2_8()
154 out[5] = (float)(FLOAT_SCALE(L05, DCTII_8_SHIFT_5-1)); OI_ASSERT(VALID_INT16(out[5])); in float_dct2_8()
157 out[7] = (float)(FLOAT_SCALE(L06, DCTII_8_SHIFT_7-1)); OI_ASSERT(VALID_INT16(out[7])); in float_dct2_8()
158 out[1] = (float)(FLOAT_SCALE(L07, DCTII_8_SHIFT_1-1)); OI_ASSERT(VALID_INT16(out[1])); in float_dct2_8()
209 PRIVATE void dct2_8(SBC_BUFFER_T * RESTRICT out, OI_INT32 const *RESTRICT in) in dct2_8() argument
[all …]
/system/core/libmincrypt/
Dp256_ec.c218 static void felem_sum(felem out, const felem in, const felem in2) { in felem_sum() argument
223 out[i] = in[i] + in2[i]; in felem_sum()
224 out[i] += carry; in felem_sum()
225 carry = out[i] >> 29; in felem_sum()
226 out[i] &= kBottom29Bits; in felem_sum()
232 out[i] = in[i] + in2[i]; in felem_sum()
233 out[i] += carry; in felem_sum()
234 carry = out[i] >> 28; in felem_sum()
235 out[i] &= kBottom28Bits; in felem_sum()
238 felem_reduce_carry(out, carry); in felem_sum()
[all …]
/system/tools/aidl/tests/
Daidl_test_client_nullables.cpp51 bool ValuesEqual(const unique_ptr<T>& in, const unique_ptr<T>& out) { in ValuesEqual() argument
52 return *in == *out; in ValuesEqual()
58 const unique_ptr<vector<unique_ptr<String16>>>& out) { in ValuesEqual() argument
60 return !out; in ValuesEqual()
63 if (!out) { in ValuesEqual()
67 if (in->size() != out->size()) { in ValuesEqual()
73 const unique_ptr<String16>& b = (*out)[i]; in ValuesEqual()
98 unique_ptr<T> out; in ConfirmNullableType() local
100 status = (*s.*func)(in, &out); in ConfirmNullableType()
107 if (!out) { in ConfirmNullableType()
[all …]
/system/core/cpio/
Dmkbootfs.c89 static void _eject(struct stat *s, char *out, int olen, char *data, unsigned datasize) in _eject() argument
101 fix_stat(out, s); in _eject()
120 out, in _eject()
126 if(strlen(out) != (unsigned int)olen) die("ACK!"); in _eject()
151 static void _archive(char *in, char *out, int ilen, int olen);
157 static void _archive_dir(char *in, char *out, int ilen, int olen) in _archive_dir() argument
165 in, out, ilen, olen); in _archive_dir()
212 out[olen] = '/'; in _archive_dir()
213 memcpy(out + olen + 1, names[i], t + 1); in _archive_dir()
214 _archive(in, out, ilen + t + 1, olen + t + 1); in _archive_dir()
[all …]
/system/core/fs_mgr/
Dfs_mgr_verity.cpp136 goto out; in verify_table()
146 goto out; in verify_table()
151 out: in verify_table()
390 goto out; in check_verity_restart()
395 goto out; in check_verity_restart()
407 goto out; in check_verity_restart()
413 goto out; in check_verity_restart()
422 out: in check_verity_restart()
485 goto out; in metadata_find()
492 goto out; in metadata_find()
[all …]
/system/bt/stack/smp/
Daes.h91 unsigned char out[N_BLOCK],
95 unsigned char *out,
104 unsigned char out[N_BLOCK],
108 unsigned char *out,
136 unsigned char out[N_BLOCK],
143 unsigned char out[N_BLOCK],
150 unsigned char out[N_BLOCK],
157 unsigned char out[N_BLOCK],
/system/media/audio_utils/include/audio_utils/
Dprimitives.h52 void ditherAndClamp(int32_t* out, const int32_t *sums, size_t c);
966 int32_t out; in mulAdd() local
968 : [out]"=r"(out) in mulAdd()
971 return out; in mulAdd()
984 int32_t out; in mul() local
986 : [out]"=r"(out) in mul()
989 return out; in mul()
1002 int32_t out; in mulAddRL() local
1005 : [out]"=r"(out) in mulAddRL()
1010 : [out]"=r"(out) in mulAddRL()
[all …]
/system/netd/server/
DResolverStats.h50 void encode(std::vector<int32_t>* out) const;
58 static void encodeAll(const std::vector<ResolverStats>& stats, std::vector<int32_t>* out);
65 inline void ResolverStats::encode(std::vector<int32_t>* out) const { in encode() argument
66 size_t ofs = out->size(); in encode()
67 out->resize(ofs + STATS_COUNT); in encode()
68 int32_t* cur = &(*out)[ofs]; in encode()
95 std::vector<int32_t>* out) { in encodeAll() argument
97 s.encode(out); in encodeAll()

1234567891011