Home
last modified time | relevance | path

Searched refs:cr (Results 1 – 25 of 920) sorted by relevance

12345678910>>...37

/external/libaom/libaom/av1/encoder/
Daq_cyclicrefresh.c64 CYCLIC_REFRESH *const cr = aom_calloc(1, sizeof(*cr)); in av1_cyclic_refresh_alloc() local
65 if (cr == NULL) return NULL; in av1_cyclic_refresh_alloc()
67 cr->map = aom_calloc(mi_rows * mi_cols, sizeof(*cr->map)); in av1_cyclic_refresh_alloc()
68 if (cr->map == NULL) { in av1_cyclic_refresh_alloc()
69 av1_cyclic_refresh_free(cr); in av1_cyclic_refresh_alloc()
72 last_coded_q_map_size = mi_rows * mi_cols * sizeof(*cr->last_coded_q_map); in av1_cyclic_refresh_alloc()
73 cr->last_coded_q_map = aom_malloc(last_coded_q_map_size); in av1_cyclic_refresh_alloc()
74 if (cr->last_coded_q_map == NULL) { in av1_cyclic_refresh_alloc()
75 av1_cyclic_refresh_free(cr); in av1_cyclic_refresh_alloc()
79 memset(cr->last_coded_q_map, MAXQ, last_coded_q_map_size); in av1_cyclic_refresh_alloc()
[all …]
/external/libvpx/libvpx/vp9/encoder/
Dvp9_aq_cyclicrefresh.c34 CYCLIC_REFRESH *const cr = vpx_calloc(1, sizeof(*cr)); in vp9_cyclic_refresh_alloc() local
35 if (cr == NULL) return NULL; in vp9_cyclic_refresh_alloc()
37 cr->map = vpx_calloc(mi_rows * mi_cols, sizeof(*cr->map)); in vp9_cyclic_refresh_alloc()
38 if (cr->map == NULL) { in vp9_cyclic_refresh_alloc()
39 vp9_cyclic_refresh_free(cr); in vp9_cyclic_refresh_alloc()
42 last_coded_q_map_size = mi_rows * mi_cols * sizeof(*cr->last_coded_q_map); in vp9_cyclic_refresh_alloc()
43 cr->last_coded_q_map = vpx_malloc(last_coded_q_map_size); in vp9_cyclic_refresh_alloc()
44 if (cr->last_coded_q_map == NULL) { in vp9_cyclic_refresh_alloc()
45 vp9_cyclic_refresh_free(cr); in vp9_cyclic_refresh_alloc()
49 memset(cr->last_coded_q_map, MAXQ, last_coded_q_map_size); in vp9_cyclic_refresh_alloc()
[all …]
/external/u-boot/arch/arm/mach-imx/
Dddrmc-vf610.c116 writel(DDRMC_CR00_DRAM_CLASS_DDR3, &ddrmr->cr[0]); in ddrmc_ctrl_init_ddr3()
117 writel(DDRMC_CR02_DRAM_TINIT(timings->tinit), &ddrmr->cr[2]); in ddrmc_ctrl_init_ddr3()
118 writel(DDRMC_CR10_TRST_PWRON(timings->trst_pwron), &ddrmr->cr[10]); in ddrmc_ctrl_init_ddr3()
120 writel(DDRMC_CR11_CKE_INACTIVE(timings->cke_inactive), &ddrmr->cr[11]); in ddrmc_ctrl_init_ddr3()
122 DDRMC_CR12_CASLAT_LIN(timings->caslat_lin), &ddrmr->cr[12]); in ddrmc_ctrl_init_ddr3()
126 &ddrmr->cr[13]); in ddrmc_ctrl_init_ddr3()
129 DDRMC_CR14_TRAS_MIN(timings->tras_min), &ddrmr->cr[14]); in ddrmc_ctrl_init_ddr3()
131 DDRMC_CR16_TRTP(timings->trtp), &ddrmr->cr[16]); in ddrmc_ctrl_init_ddr3()
133 DDRMC_CR17_TMOD(timings->tmod), &ddrmr->cr[17]); in ddrmc_ctrl_init_ddr3()
135 DDRMC_CR18_TCKE(timings->tcke), &ddrmr->cr[18]); in ddrmc_ctrl_init_ddr3()
[all …]
/external/u-boot/arch/arm/mach-at91/
Dmpddrc.c24 static int ddr2_decodtype_is_seq(const unsigned int base, u32 cr) in ddr2_decodtype_is_seq() argument
30 (cr & ATMEL_MPDDRC_CR_DECOD_INTERLEAVED)) in ddr2_decodtype_is_seq()
43 u32 ba_off, cr; in ddr2_init() local
46 ba_off = (mpddr_value->cr & ATMEL_MPDDRC_CR_NC_MASK) + 9; in ddr2_init()
47 if (ddr2_decodtype_is_seq(base, mpddr_value->cr)) in ddr2_init()
48 ba_off += ((mpddr_value->cr & ATMEL_MPDDRC_CR_NR_MASK) >> 2) + 11; in ddr2_init()
56 writel(mpddr_value->cr, &mpddr->cr); in ddr2_init()
91 cr = readl(&mpddr->cr); in ddr2_init()
92 writel(cr | ATMEL_MPDDRC_CR_DLL_RESET_ENABLED, &mpddr->cr); in ddr2_init()
105 cr = readl(&mpddr->cr); in ddr2_init()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowSettings.java40 protected static boolean putStringForUser(ContentResolver cr, String name, String value, in putStringForUser() argument
42 return putString(cr, name, value); in putStringForUser()
46 protected static String getStringForUser(ContentResolver cr, String name, int userHandle) { in getStringForUser() argument
47 return getString(cr, name); in getStringForUser()
51 protected static boolean putString(ContentResolver cr, String name, String value) { in putString() argument
52 get(cr).put(name, value); in putString()
57 protected static String getString(ContentResolver cr, String name) { in getString() argument
58 return get(cr).get(name); in getString()
61 private static Map<String, String> get(ContentResolver cr) { in get() argument
62 Map<String, String> map = dataMap.get(cr); in get()
[all …]
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
DCharsetUTF8.java72 CoderResult cr; in decodeLoop() local
99 cr = CoderResult.UNDERFLOW; in decodeLoop()
107 cr = CoderResult.malformedForLength(bytesSoFar); in decodeLoop()
131 cr = CoderResult.OVERFLOW; in decodeLoop()
143 cr = CoderResult.UNDERFLOW; in decodeLoop()
147 cr = CoderResult.OVERFLOW; in decodeLoop()
155 cr = CoderResult.UNDERFLOW; in decodeLoop()
159 cr = CoderResult.OVERFLOW; in decodeLoop()
176 cr = CoderResult.malformedForLength(bytesSoFar); in decodeLoop()
183 return cr; in decodeLoop()
[all …]
DCharsetUTF16.java159 CoderResult cr = decodeTrail(source, target, offsets, (char) toUnicodeStatus); in decodeLoop() local
160 if (cr != null) in decodeLoop()
161 return cr; in decodeLoop()
191 CoderResult cr = decodeTrail(source, target, offsets, char16); in decodeLoop() local
192 if (cr != null) in decodeLoop()
193 return cr; in decodeLoop()
259 CoderResult cr; in encodeLoop() local
267 cr = fromUWriteBytes(this, bom, 0, bom.length, target, offsets, -1); in encodeLoop()
268 if (cr.isOverflow()) in encodeLoop()
269 return cr; in encodeLoop()
[all …]
DCharsetUTF32.java184 CoderResult cr; in encodeLoop() local
192 cr = fromUWriteBytes(this, bom, 0, bom.length, target, offsets, -1); in encodeLoop()
193 if (cr.isOverflow()) in encodeLoop()
194 return cr; in encodeLoop()
202 cr = encodeChar(source, target, offsets, (char) fromUChar32); in encodeLoop()
203 if (cr != null) in encodeLoop()
204 return cr; in encodeLoop()
213 cr = encodeChar(source, target, offsets, source.get()); in encodeLoop()
214 if (cr != null) in encodeLoop()
215 return cr; in encodeLoop()
[all …]
DCharsetUTF7.java189 CoderResult cr=CoderResult.UNDERFLOW; in decodeLoop() local
240 cr=CoderResult.malformedForLength(sourceArrayIndex); in decodeLoop()
251 cr = CoderResult.OVERFLOW; in decodeLoop()
267 cr=CoderResult.OVERFLOW; in decodeLoop()
308 cr=CoderResult.malformedForLength(sourceArrayIndex); in decodeLoop()
315 cr=CoderResult.malformedForLength(sourceArrayIndex); in decodeLoop()
321 cr=CoderResult.malformedForLength(sourceArrayIndex); in decodeLoop()
350 cr=CoderResult.malformedForLength(sourceArrayIndex); in decodeLoop()
369 cr=CoderResult.malformedForLength(sourceArrayIndex); in decodeLoop()
388 cr=CoderResult.malformedForLength(sourceArrayIndex); in decodeLoop()
[all …]
DCharsetCallback.java133 char[] buffer, int length, CoderResult cr); in call() argument
149 char[] buffer, int length, int cp, CoderResult cr); in call() argument
159 char[] buffer, int length, int cp, CoderResult cr){
163 if(!cr.isUnmappable()){
164 return cr;
169 return cr;
180 char[] buffer, int length, CoderResult cr){
184 if(!cr.isUnmappable()){
185 return cr;
190 return cr;
[all …]
DCharsetASCII.java51 CoderResult cr; in decodeLoop() local
80cr = decodeLoopCoreOptimized(source, target, sourceArray, targetArray, sourceIndex, offset, limit); in decodeLoop()
81 if (cr == null) { in decodeLoop()
85 cr = CoderResult.UNDERFLOW; in decodeLoop()
89 cr = CoderResult.OVERFLOW; in decodeLoop()
94 cr = decodeLoopCoreUnoptimized(source, target); in decodeLoop()
95 if (cr == CoderResult.OVERFLOW) { in decodeLoop()
108 return cr; in decodeLoop()
201 CoderResult cr; in encodeLoop() local
211 cr = encodeTrail(source, (char) fromUChar32, flush); in encodeLoop()
[all …]
DCharsetEncoderICU.java76 char[] buffer, int length, int cp, CoderResult cr) {
77 if (cr.isUnmappable()) {
79 offsets, buffer, length, cp, cr);
82 offsets, buffer, length, cp, cr);
403 CoderResult cr = CoderResult.UNDERFLOW; in fromUnicodeWithCallback() local
445 cr = encodeLoop(source, target, offsets, flush); in fromUnicodeWithCallback()
453 converterSawEndOfInput = (cr.isUnderflow() && flush in fromUnicodeWithCallback()
522 if (cr.isUnderflow()) { in fromUnicodeWithCallback()
544 cr = CoderResult.malformedForLength(1); in fromUnicodeWithCallback()
565 return cr; in fromUnicodeWithCallback()
[all …]
DCharsetDecoderICU.java62 CharBuffer target, IntBuffer offsets, char[] buffer, int length, CoderResult cr) {
63 if (cr.isUnmappable()) {
65 length, cr);
68 length, cr);
412 CoderResult cr = CoderResult.UNDERFLOW; in toUnicodeWithCallback() local
453 cr = decodeLoop(source, target, offsets, flush); in toUnicodeWithCallback()
462 … converterSawEndOfInput= (cr.isUnderflow() && flush && source.remaining()==0 && toULength == 0); in toUnicodeWithCallback()
539 if(cr.isUnderflow()) { in toUnicodeWithCallback()
561 cr = CoderResult.malformedForLength(toULength); in toUnicodeWithCallback()
582 return cr; in toUnicodeWithCallback()
[all …]
/external/harfbuzz_ng/util/
Dview-cairo.cc73 cairo_t *cr = helper_cairo_create_context (w + view_options.margin.l + view_options.margin.r, in render() local
76 cairo_set_scaled_font (cr, scaled_font); in render()
79 cairo_translate (cr, view_options.margin.l, view_options.margin.t); in render()
81 cairo_translate (cr, in render()
87 cairo_translate (cr, in render()
93 cairo_translate (cr, +vert * leading, -horiz * leading); in render()
98 cairo_translate (cr, -vert * leading, +horiz * leading); in render()
101 cairo_save (cr); in render()
104 cairo_set_source_rgba (cr, 1., 0., 0., .5); in render()
105 cairo_set_line_width (cr, 5); in render()
[all …]
Dhelper-cairo-ansi.cc42 cairo_t *cr = cairo_create (new_surface); in helper_cairo_surface_write_to_ansi_stream() local
44 cairo_set_source_rgb (cr, 0., 0., 0.); in helper_cairo_surface_write_to_ansi_stream()
45 cairo_paint (cr); in helper_cairo_surface_write_to_ansi_stream()
46 cairo_set_source_rgb (cr, 1., 1., 1.); in helper_cairo_surface_write_to_ansi_stream()
47 cairo_mask_surface (cr, surface, 0, 0); in helper_cairo_surface_write_to_ansi_stream()
49 cairo_set_source_rgb (cr, 1., 1., 1.); in helper_cairo_surface_write_to_ansi_stream()
50 cairo_paint (cr); in helper_cairo_surface_write_to_ansi_stream()
51 cairo_set_source_surface (cr, surface, 0, 0); in helper_cairo_surface_write_to_ansi_stream()
52 cairo_paint (cr); in helper_cairo_surface_write_to_ansi_stream()
54 cairo_destroy (cr); in helper_cairo_surface_write_to_ansi_stream()
/external/python/cpython3/Lib/test/
Dtest_crypt.py10 cr = crypt.crypt('mypassword')
11 cr2 = crypt.crypt('mypassword', cr)
12 self.assertEqual(cr2, cr)
13 cr = crypt.crypt('mypassword', 'ab')
14 if cr is not None:
15 cr2 = crypt.crypt('mypassword', cr)
16 self.assertEqual(cr2, cr)
28 cr = crypt.crypt('assword', method)
29 self.assertEqual(len(cr), method.total_size)
30 cr2 = crypt.crypt('assword', cr)
[all …]
/external/autotest/client/site_tests/graphics_Stress/
Dgraphics_Stress.py41 def create_window(self, cr, url): argument
43 cr.autotest_ext.ExecuteJavaScript(cmd)
44 tab = cr.browser.tabs[-1]
48 def open_urls(self, cr, url_list, window=True): argument
55 cr.browser.tabs[0].WaitForDocumentReadyStateToBeComplete()
60 tab = cr.browser.tabs[0]
64 tab = self.create_window(cr, url)
66 tab = cr.browser.tabs.New()
92 with self.new_chrome() as cr:
93 tabs = self.open_urls(cr, [WEBGL_SPIRITBOX_URL] * 50,
[all …]
/external/clang/bindings/python/tests/cindex/
Dtest_code_completion.py3 def check_completion_results(cr, expected): argument
4 assert cr is not None
5 assert len(cr.diagnostics) == 0
7 completions = [str(c) for c in cr.results]
28 cr = tu.codeComplete('fake.c', 9, 1, unsaved_files=files, include_brief_comments=True)
35 check_completion_results(cr, expected)
57 cr = tu.codeComplete('fake.cpp', 12, 5, unsaved_files=files)
66 check_completion_results(cr, expected)
68 cr = tu.codeComplete('fake.cpp', 13, 5, unsaved_files=files)
75 check_completion_results(cr, expected)
/external/harfbuzz_ng/src/
Dtest-ot-color.cc149 cairo_t *cr = cairo_create (surface); in layered_glyph_dump() local
150 cairo_set_font_face (cr, cairo_face); in layered_glyph_dump()
151 cairo_set_font_size (cr, upem); in layered_glyph_dump()
156 cairo_glyph_extents (cr, glyphs, num_layers, &extents); in layered_glyph_dump()
159 cairo_destroy (cr); in layered_glyph_dump()
184 cairo_t *cr = cairo_create (surface); in layered_glyph_dump() local
185 cairo_set_font_face (cr, cairo_face); in layered_glyph_dump()
186 cairo_set_font_size (cr, upem); in layered_glyph_dump()
193 cairo_set_source_rgba (cr, in layered_glyph_dump()
203 cairo_show_glyphs (cr, &glyph, 1); in layered_glyph_dump()
[all …]
/external/mesa3d/src/compiler/glsl/glcpp/tests/
Dglcpp-test-cr-lf.sh100 rm -rf ./subtest-cr
101 mkdir subtest-cr
104 tr "\n" "\r" < "$file" > subtest-cr/"$base"
105 cp $abs_builddir/glsl/glcpp/tests/subtest-lf/"$base".out subtest-cr/"$base".expected
113 rm -rf ./subtest-cr-lf
114 mkdir subtest-cr-lf
118 /' < "$file" > subtest-cr-lf/"$base"
119 cp $abs_builddir/glsl/glcpp/tests/subtest-lf/"$base".out subtest-cr-lf/"$base".expected
127 rm -rf ./subtest-lf-cr
128 mkdir subtest-lf-cr
[all …]
/external/libjpeg-turbo/
Djdmrg565.c24 int cb, cr; in LOCAL() local
47 cr = GETJSAMPLE(*inptr2++); in LOCAL()
48 cred = Crrtab[cr]; in LOCAL()
49 cgreen = (int)RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], SCALEBITS); in LOCAL()
72 cr = GETJSAMPLE(*inptr2); in LOCAL()
73 cred = Crrtab[cr]; in LOCAL()
74 cgreen = (int)RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], SCALEBITS); in LOCAL()
95 int cb, cr; in LOCAL() local
119 cr = GETJSAMPLE(*inptr2++); in LOCAL()
120 cred = Crrtab[cr]; in LOCAL()
[all …]
Djdcol565.c25 register int y, cb, cr; in LOCAL() local
50 cr = GETJSAMPLE(*inptr2++); in LOCAL()
51 r = range_limit[y + Crrtab[cr]]; in LOCAL()
52 g = range_limit[y + ((int)RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], in LOCAL()
63 cr = GETJSAMPLE(*inptr2++); in LOCAL()
64 r = range_limit[y + Crrtab[cr]]; in LOCAL()
65 g = range_limit[y + ((int)RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], in LOCAL()
72 cr = GETJSAMPLE(*inptr2++); in LOCAL()
73 r = range_limit[y + Crrtab[cr]]; in LOCAL()
74 g = range_limit[y + ((int)RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr], in LOCAL()
[all …]
/external/v8/src/ppc/
Dassembler-ppc.h636 static inline int encode_crbit(const CRegister& cr, enum CRBit crbit) { in encode_crbit() argument
637 return ((cr.code() * CRWIDTH) + crbit); in encode_crbit()
677 const CRegister cr = cr7, const RCBit rc = LeaveRC) { \
678 x_form(instr_name, cr, src1, src2, rc); \
681 const CRegister cr = cr7, const RCBit rc = LeaveRC) { \
682 x_form(instr_name, cr.code() * B2, src1.code(), src2.code(), LeaveRC); \
706 inline void x_form(Instr instr, CRegister cr, Register s1, Register s2, in x_form() argument
713 emit(instr | cr.code() * B23 | L * B21 | s1.code() * B16 | in x_form()
802 inline CRegister cmpi_optimization(CRegister cr) { in cmpi_optimization() argument
812 cmpi_cr_.code() == cr.code() && last_bound_pos_ != pos) { in cmpi_optimization()
[all …]
/external/autotest/client/site_tests/video_WebRtcPerf/
Dvideo_WebRtcPerf.py111 def start_loopback(self, cr): argument
117 cr.browser.platform.SetHTTPServerDirectories(self.bindir)
119 tab = cr.browser.tabs[0]
120 tab.Navigate(cr.browser.platform.http_server.UrlOf(
125 def open_stats_page(self, cr): argument
133 tab = cr.browser.tabs.New()
198 init_network_controller=True) as cr:
205 self.start_loopback(cr)
206 result = gather_result(cr)
210 cr,
[all …]
/external/autotest/client/site_tests/power_LowMemorySuspend/
Dpower_LowMemorySuspend.py35 def create_tabs(self, cr): argument
50 tab = cr.browser.tabs.New()
60 def check_tab_discard(self, cr, tabs): argument
63 active_tabs = len(cr.browser.tabs)
73 def cycling_suspend(self, cr, tabs, switches_per_suspend, argument
96 self.check_tab_discard(cr, tabs)
111 self.check_tab_discard(cr, tabs)
120 password=password) as cr:
121 tabs = self.create_tabs(cr)
123 cr, tabs, switches_per_suspend, total_suspend_duration,
[all …]

12345678910>>...37