Home
last modified time | relevance | path

Searched refs:plan (Results 1 – 25 of 252) sorted by relevance

1234567891011

/external/archive-patcher/generator/src/test/java/com/google/archivepatcher/generator/
DPreDiffPlannerTest.java272 private void checkRecommendation(PreDiffPlan plan, QualifiedRecommendation... expected) { in checkRecommendation() argument
273 Assert.assertNotNull(plan.getQualifiedRecommendations()); in checkRecommendation()
274 Assert.assertEquals(expected.length, plan.getQualifiedRecommendations().size()); in checkRecommendation()
276 QualifiedRecommendation actual = plan.getQualifiedRecommendations().get(x); in checkRecommendation()
291 PreDiffPlan plan = invokeGeneratePreDiffPlan(oldFile, newFile); in testGeneratePreDiffPlan_OneCompressedEntry_Unchanged() local
292 Assert.assertNotNull(plan); in testGeneratePreDiffPlan_OneCompressedEntry_Unchanged()
294 Assert.assertTrue(plan.getOldFileUncompressionPlan().isEmpty()); in testGeneratePreDiffPlan_OneCompressedEntry_Unchanged()
295 Assert.assertTrue(plan.getNewFileUncompressionPlan().isEmpty()); in testGeneratePreDiffPlan_OneCompressedEntry_Unchanged()
296 checkRecommendation(plan, new QualifiedRecommendation( in testGeneratePreDiffPlan_OneCompressedEntry_Unchanged()
310 PreDiffPlan plan = invokeGeneratePreDiffPlan(oldFile, newFile); in testGeneratePreDiffPlan_OneCompressedEntry_LengthsChanged() local
[all …]
DPreDiffExecutorTest.java131 PreDiffPlan plan = executor.prepareForDiffing(); in testPrepareForDiffing_OneCompressedEntry_Unchanged() local
132 Assert.assertNotNull(plan); in testPrepareForDiffing_OneCompressedEntry_Unchanged()
134 Assert.assertTrue(plan.getOldFileUncompressionPlan().isEmpty()); in testPrepareForDiffing_OneCompressedEntry_Unchanged()
135 Assert.assertTrue(plan.getNewFileUncompressionPlan().isEmpty()); in testPrepareForDiffing_OneCompressedEntry_Unchanged()
136 Assert.assertTrue(plan.getDeltaFriendlyNewFileRecompressionPlan().isEmpty()); in testPrepareForDiffing_OneCompressedEntry_Unchanged()
154 PreDiffPlan plan = executor.prepareForDiffing(); in testPrepareForDiffing_OneCompressedEntry_Changed() local
155 Assert.assertNotNull(plan); in testPrepareForDiffing_OneCompressedEntry_Changed()
157 Assert.assertEquals(1, plan.getOldFileUncompressionPlan().size()); in testPrepareForDiffing_OneCompressedEntry_Changed()
158 Assert.assertEquals(1, plan.getNewFileUncompressionPlan().size()); in testPrepareForDiffing_OneCompressedEntry_Changed()
159 Assert.assertEquals(1, plan.getDeltaFriendlyNewFileRecompressionPlan().size()); in testPrepareForDiffing_OneCompressedEntry_Changed()
[all …]
/external/apache-http/src/org/apache/http/conn/routing/
DBasicRouteDirector.java69 public int nextStep(RouteInfo plan, RouteInfo fact) { in nextStep() argument
70 if (plan == null) { in nextStep()
78 step = firstStep(plan); in nextStep()
79 else if (plan.getHopCount() > 1) in nextStep()
80 step = proxiedStep(plan, fact); in nextStep()
82 step = directStep(plan, fact); in nextStep()
96 protected int firstStep(RouteInfo plan) { in firstStep() argument
98 return (plan.getHopCount() > 1) ? in firstStep()
112 protected int directStep(RouteInfo plan, RouteInfo fact) { in directStep() argument
116 if (!plan.getTargetHost().equals(fact.getTargetHost())) in directStep()
[all …]
/external/harfbuzz_ng/src/
Dhb-subset.cc51 _plan_estimate_subset_table_size (hb_subset_plan_t *plan, in _plan_estimate_subset_table_size() argument
54 unsigned int src_glyphs = plan->source->get_num_glyphs (); in _plan_estimate_subset_table_size()
55 unsigned int dst_glyphs = plan->glyphset->get_population (); in _plan_estimate_subset_table_size()
65 _subset2 (hb_subset_plan_t *plan) in _subset2() argument
67 hb_blob_t *source_blob = hb_sanitize_context_t ().reference_table<TableType> (plan->source); in _subset2()
75 unsigned int buf_size = _plan_estimate_subset_table_size (plan, source_blob->length); in _subset2()
84 hb_subset_context_t c (plan, &serializer); in _subset2()
101 result = c.plan->add_table (tag, dest_blob); in _subset2()
120 _subset (hb_subset_plan_t *plan) in _subset() argument
122 hb_blob_t *source_blob = hb_sanitize_context_t ().reference_table<TableType> (plan->source); in _subset()
[all …]
Dhb-subset-plan.cc181 hb_subset_plan_t *plan = hb_object_create<hb_subset_plan_t> (); in hb_subset_plan_create() local
183 plan->drop_hints = input->drop_hints; in hb_subset_plan_create()
184 plan->drop_layout = input->drop_layout; in hb_subset_plan_create()
185 plan->desubroutinize = input->desubroutinize; in hb_subset_plan_create()
186 plan->unicodes = hb_set_create(); in hb_subset_plan_create()
187 plan->glyphs.init(); in hb_subset_plan_create()
188 plan->source = hb_face_reference (face); in hb_subset_plan_create()
189 plan->dest = hb_face_builder_create (); in hb_subset_plan_create()
190 plan->codepoint_to_glyph = hb_map_create(); in hb_subset_plan_create()
191 plan->glyph_map = hb_map_create(); in hb_subset_plan_create()
[all …]
Dhb-ot-shape.cc91 hb_ot_shape_planner_t::compile (hb_ot_shape_plan_t &plan, in compile() argument
94 plan.props = props; in compile()
95 plan.shaper = shaper; in compile()
96 map.compile (plan.map, key); in compile()
98 aat_map.compile (plan.aat_map); in compile()
100 plan.frac_mask = plan.map.get_1_mask (HB_TAG ('f','r','a','c')); in compile()
101 plan.numr_mask = plan.map.get_1_mask (HB_TAG ('n','u','m','r')); in compile()
102 plan.dnom_mask = plan.map.get_1_mask (HB_TAG ('d','n','o','m')); in compile()
103 plan.has_frac = plan.frac_mask || (plan.numr_mask && plan.dnom_mask); in compile()
104 plan.rtlm_mask = plan.map.get_1_mask (HB_TAG ('r','t','l','m')); in compile()
[all …]
Dhb-subset-cff2.cc268 hb_subset_plan_t *plan) in create()
273 drop_hints = plan->drop_hints; in create()
274 desubroutinize = plan->desubroutinize; in create()
290 flattener(acc, plan->glyphs, plan->drop_hints); in create()
300 if (!subr_subsetter.subset (acc, plan->glyphs, plan->drop_hints)) in create()
304 if (!subr_subsetter.encode_charstrings (acc, plan->glyphs, subset_charstrings)) in create()
355 if (unlikely (!hb_plan_subset_cff_fdselect (plan->glyphs, in create()
388 …2CharStrings::calculate_serialized_size (offsets.charStringsInfo.offSize, plan->glyphs.len, dataSi… in create()
404 if (!plan->desubroutinize && has_localsubrs) in create()
437 static inline bool _write_cff2 (const cff2_subset_plan &plan, in _write_cff2() argument
[all …]
Dhb-subset-cff1.cc463 …signed int plan_subset_encoding (const OT::cff1::accelerator_subset_t &acc, hb_subset_plan_t *plan) in plan_subset_encoding()
474 subset_enc_num_codes = plan->glyphs.len - 1; in plan_subset_encoding()
476 for (glyph = 1; glyph < plan->glyphs.len; glyph++) in plan_subset_encoding()
478 hb_codepoint_t orig_glyph = plan->glyphs[glyph]; in plan_subset_encoding()
524 …nsigned int plan_subset_charset (const OT::cff1::accelerator_subset_t &acc, hb_subset_plan_t *plan) in plan_subset_charset()
531 for (glyph = 1; glyph < plan->glyphs.len; glyph++) in plan_subset_charset()
533 hb_codepoint_t orig_glyph = plan->glyphs[glyph]; in plan_subset_charset()
549 size0 = Charset0::min_size + HBUINT16::static_size * (plan->glyphs.len - 1); in plan_subset_charset()
564 subset_charset_format? subset_charset_ranges.len: plan->glyphs.len); in plan_subset_charset()
591 hb_subset_plan_t *plan) in create()
[all …]
Dhb-ot-shape-complex-use.cc105 setup_syllables (const hb_ot_shape_plan_t *plan,
109 clear_substitution_flags (const hb_ot_shape_plan_t *plan,
113 record_rphf (const hb_ot_shape_plan_t *plan,
117 record_pref (const hb_ot_shape_plan_t *plan,
121 reorder (const hb_ot_shape_plan_t *plan,
125 clear_syllables (const hb_ot_shape_plan_t *plan,
130 collect_features_use (hb_ot_shape_planner_t *plan) in collect_features_use() argument
132 hb_ot_map_builder_t *map = &plan->map; in collect_features_use()
214 data_create_use (const hb_ot_shape_plan_t *plan) in data_create_use() argument
220 use_plan->rphf_mask = plan->map.get_1_mask (HB_TAG('r','p','h','f')); in data_create_use()
[all …]
Dhb-ot-shape-complex-khmer.cc88 setup_syllables (const hb_ot_shape_plan_t *plan,
92 reorder (const hb_ot_shape_plan_t *plan,
96 clear_syllables (const hb_ot_shape_plan_t *plan,
101 collect_features_khmer (hb_ot_shape_planner_t *plan) in collect_features_khmer() argument
103 hb_ot_map_builder_t *map = &plan->map; in collect_features_khmer()
133 override_features_khmer (hb_ot_shape_planner_t *plan) in override_features_khmer() argument
135 hb_ot_map_builder_t *map = &plan->map; in override_features_khmer()
207 data_create_khmer (const hb_ot_shape_plan_t *plan) in data_create_khmer() argument
215 khmer_plan->pref.init (&plan->map, HB_TAG('p','r','e','f'), true); in data_create_khmer()
219 0 : plan->map.get_1_mask (khmer_features[i].tag); in data_create_khmer()
[all …]
Dhb-ot-shape-complex-myanmar.cc79 setup_syllables (const hb_ot_shape_plan_t *plan,
83 reorder (const hb_ot_shape_plan_t *plan,
87 clear_syllables (const hb_ot_shape_plan_t *plan,
92 collect_features_myanmar (hb_ot_shape_planner_t *plan) in collect_features_myanmar() argument
94 hb_ot_map_builder_t *map = &plan->map; in collect_features_myanmar()
123 override_features_myanmar (hb_ot_shape_planner_t *plan) in override_features_myanmar() argument
125 plan->map.disable_feature (HB_TAG('l','i','g','a')); in override_features_myanmar()
140 setup_masks_myanmar (const hb_ot_shape_plan_t *plan HB_UNUSED, in setup_masks_myanmar()
157 setup_syllables (const hb_ot_shape_plan_t *plan HB_UNUSED, in setup_syllables()
277 initial_reordering_syllable (const hb_ot_shape_plan_t *plan HB_UNUSED, in initial_reordering_syllable()
[all …]
Dhb-ot-shape-complex-indic.cc171 setup_syllables (const hb_ot_shape_plan_t *plan,
175 initial_reordering (const hb_ot_shape_plan_t *plan,
179 final_reordering (const hb_ot_shape_plan_t *plan,
183 clear_syllables (const hb_ot_shape_plan_t *plan,
188 collect_features_indic (hb_ot_shape_planner_t *plan) in collect_features_indic() argument
190 hb_ot_map_builder_t *map = &plan->map; in collect_features_indic()
221 override_features_indic (hb_ot_shape_planner_t *plan) in override_features_indic() argument
223 plan->map.disable_feature (HB_TAG('l','i','g','a')); in override_features_indic()
289 data_create_indic (const hb_ot_shape_plan_t *plan) in data_create_indic() argument
297 if (plan->props.script == indic_configs[i].script) { in data_create_indic()
[all …]
Dhb-subset-glyf.cc120 _update_components (hb_subset_plan_t * plan, in _update_components() argument
132 if (!plan->new_gid_for_old_gid (iterator.current->glyphIndex, in _update_components()
156 _write_glyf_and_loca_prime (hb_subset_plan_t *plan, in _write_glyf_and_loca_prime() argument
166 hb_vector_t<hb_codepoint_t> &glyph_ids = plan->glyphs; in _write_glyf_and_loca_prime()
212 _update_components (plan, glyf_prime_data_next, length); in _write_glyf_and_loca_prime()
229 hb_subset_plan_t *plan, in _hb_subset_glyf_and_loca() argument
235 hb_vector_t<hb_codepoint_t> &glyphs_to_retain = plan->glyphs; in _hb_subset_glyf_and_loca()
244 plan->drop_hints, in _hb_subset_glyf_and_loca()
255 if (unlikely (!_write_glyf_and_loca_prime (plan, glyf, glyf_data, in _hb_subset_glyf_and_loca()
289 hb_subset_glyf_and_loca (hb_subset_plan_t *plan, in hb_subset_glyf_and_loca() argument
[all …]
Dhb-ot-shape-complex-arabic.cc162 arabic_fallback_shape (const hb_ot_shape_plan_t *plan,
167 record_stch (const hb_ot_shape_plan_t *plan,
172 collect_features_arabic (hb_ot_shape_planner_t *plan) in collect_features_arabic() argument
174 hb_ot_map_builder_t *map = &plan->map; in collect_features_arabic()
209 …bool has_fallback = plan->props.script == HB_SCRIPT_ARABIC && !FEATURE_IS_SYRIAC (arabic_features[… in collect_features_arabic()
220 if (plan->props.script == HB_SCRIPT_ARABIC) in collect_features_arabic()
259 data_create_arabic (const hb_ot_shape_plan_t *plan) in data_create_arabic() argument
265 arabic_plan->do_fallback = plan->props.script == HB_SCRIPT_ARABIC; in data_create_arabic()
266 arabic_plan->has_stch = !!plan->map.get_1_mask (HB_TAG ('s','t','c','h')); in data_create_arabic()
268 arabic_plan->mask_array[i] = plan->map.get_1_mask (arabic_features[i]); in data_create_arabic()
[all …]
Dhb-ot-maxp-table.hh97 bool subset (hb_subset_plan_t *plan) const in subset()
99 hb_blob_t *maxp_blob = hb_sanitize_context_t().reference_table<maxp> (plan->source); in subset()
108 maxp_prime->set_num_glyphs (plan->glyphs.len); in subset()
109 if (plan->drop_hints) in subset()
110 drop_hint_fields (plan, maxp_prime); in subset()
112 bool result = plan->add_table (HB_OT_TAG_maxp, maxp_prime_blob); in subset()
117 static void drop_hint_fields (hb_subset_plan_t *plan HB_UNUSED, maxp *maxp_prime) in drop_hint_fields()
Dhb-ot-hdmx-table.hh135 bool serialize (hb_serialize_context_t *c, const hdmx *source_hdmx, hb_subset_plan_t *plan) in serialize()
143 this->sizeDeviceRecord.set (DeviceRecord::get_size (plan->glyphs.len)); in serialize()
148 subset_view.init (&(*source_hdmx)[i], source_hdmx->sizeDeviceRecord, plan); in serialize()
157 static size_t get_subsetted_size (const hdmx *source_hdmx, hb_subset_plan_t *plan) in get_subsetted_size()
159 return min_size + source_hdmx->numRecords * DeviceRecord::get_size (plan->glyphs.len); in get_subsetted_size()
162 bool subset (hb_subset_plan_t *plan) const in subset()
164 size_t dest_size = get_subsetted_size (this, plan); in subset()
174 if (!hdmx_prime || !hdmx_prime->serialize (&c, this, plan)) in subset()
187 bool result = plan->add_table (HB_OT_TAG_hdmx, hdmx_prime_blob); in subset()
Dhb-ot-shape-complex-arabic-fallback.hh48 arabic_fallback_synthesize_lookup_single (const hb_ot_shape_plan_t *plan HB_UNUSED, in arabic_fallback_synthesize_lookup_single()
98 arabic_fallback_synthesize_lookup_ligature (const hb_ot_shape_plan_t *plan HB_UNUSED, in arabic_fallback_synthesize_lookup_ligature()
174 arabic_fallback_synthesize_lookup (const hb_ot_shape_plan_t *plan, in arabic_fallback_synthesize_lookup() argument
179 return arabic_fallback_synthesize_lookup_single (plan, font, feature_index); in arabic_fallback_synthesize_lookup()
181 return arabic_fallback_synthesize_lookup_ligature (plan, font); in arabic_fallback_synthesize_lookup()
216 const hb_ot_shape_plan_t *plan HB_UNUSED, in arabic_fallback_plan_init_win1256()
238 fallback_plan->mask_array[j] = plan->map.get_1_mask (manifest[i].tag); in arabic_fallback_plan_init_win1256()
261 const hb_ot_shape_plan_t *plan, in arabic_fallback_plan_init_unicode() argument
268 fallback_plan->mask_array[j] = plan->map.get_1_mask (arabic_fallback_features[i]); in arabic_fallback_plan_init_unicode()
271 fallback_plan->lookup_array[j] = arabic_fallback_synthesize_lookup (plan, font, i); in arabic_fallback_plan_init_unicode()
[all …]
Dhb-ot-vorg-table.hh72 bool _subset (const hb_subset_plan_t *plan HB_UNUSED, in _subset()
105 bool subset (hb_subset_plan_t *plan) const in subset()
107 hb_blob_t *vorg_blob = hb_sanitize_context_t().reference_table<VORG> (plan->source); in subset()
115 while ((glyph < plan->glyphs.len) && (i < vertYOrigins.len)) in subset()
117 if (plan->glyphs[glyph] > vertYOrigins[i].glyph) in subset()
119 else if (plan->glyphs[glyph] < vertYOrigins[i].glyph) in subset()
142 if (!_subset (plan, vorg_table, subset_metrics, dest_sz, dest)) in subset()
155 bool success = plan->add_table (HB_OT_TAG_VORG, result); in subset()
Dhb-ot-shape-fallback.cc165 _hb_ot_shape_fallback_mark_position_recategorize_marks (const hb_ot_shape_plan_t *plan HB_UNUSED, in _hb_ot_shape_fallback_mark_position_recategorize_marks()
195 position_mark (const hb_ot_shape_plan_t *plan HB_UNUSED, in position_mark()
302 position_around_base (const hb_ot_shape_plan_t *plan, in position_around_base() argument
354 if (HB_DIRECTION_IS_HORIZONTAL (plan->props.direction)) in position_around_base()
355 horiz_dir = plan->props.direction; in position_around_base()
357 horiz_dir = hb_script_get_horizontal_direction (plan->props.script); in position_around_base()
374 position_mark (plan, font, buffer, cluster_extents, i, this_combining_class); in position_around_base()
393 position_cluster (const hb_ot_shape_plan_t *plan, in position_cluster() argument
413 position_around_base (plan, font, buffer, i, j); in position_cluster()
420 _hb_ot_shape_fallback_mark_position (const hb_ot_shape_plan_t *plan, in _hb_ot_shape_fallback_mark_position() argument
[all …]
Dhb-ot-shape-complex.hh73 void (*collect_features) (hb_ot_shape_planner_t *plan);
81 void (*override_features) (hb_ot_shape_planner_t *plan);
89 void *(*data_create) (const hb_ot_shape_plan_t *plan);
105 void (*preprocess_text) (const hb_ot_shape_plan_t *plan,
114 void (*postprocess_glyphs) (const hb_ot_shape_plan_t *plan,
145 void (*setup_masks) (const hb_ot_shape_plan_t *plan,
160 void (*reorder_marks) (const hb_ot_shape_plan_t *plan,
Dhb-ot-shape-fallback.hh35 HB_INTERNAL void _hb_ot_shape_fallback_mark_position (const hb_ot_shape_plan_t *plan,
39 …TERNAL void _hb_ot_shape_fallback_mark_position_recategorize_marks (const hb_ot_shape_plan_t *plan,
44 HB_INTERNAL void _hb_ot_shape_fallback_kern (const hb_ot_shape_plan_t *plan,
48 HB_INTERNAL void _hb_ot_shape_fallback_spaces (const hb_ot_shape_plan_t *plan,
/external/tensorflow/tensorflow/stream_executor/cuda/
Dcufft_10_0.inc4 cufftResult CUFFTAPI cufftPlan1d(cufftHandle *plan,
11 return func_ptr(plan, nx, type, batch);
14 cufftResult CUFFTAPI cufftPlan2d(cufftHandle *plan,
20 return func_ptr(plan, nx, ny, type);
23 cufftResult CUFFTAPI cufftPlan3d(cufftHandle *plan,
29 return func_ptr(plan, nx, ny, nz, type);
32 cufftResult CUFFTAPI cufftPlanMany(cufftHandle *plan,
42 return func_ptr(plan, rank, n, inembed, istride, idist, onembed, ostride, odist, type, batch);
45 cufftResult CUFFTAPI cufftMakePlan1d(cufftHandle plan,
53 return func_ptr(plan, nx, type, batch, workSize);
[all …]
/external/tensorflow/tensorflow/stream_executor/
Dfft.h176 Stream *stream, Plan *plan, ScratchAllocator *scratch_allocator) = 0;
180 virtual bool DoFft(Stream *stream, Plan *plan,
183 virtual bool DoFft(Stream *stream, Plan *plan,
188 virtual bool DoFft(Stream *stream, Plan *plan,
191 virtual bool DoFft(Stream *stream, Plan *plan,
196 virtual bool DoFft(Stream *stream, Plan *plan,
199 virtual bool DoFft(Stream *stream, Plan *plan,
244 void UpdatePlanWithScratchAllocator(Stream *stream, fft::Plan *plan, \
247 bool DoFft(Stream *stream, fft::Plan *plan, \
250 bool DoFft(Stream *stream, fft::Plan *plan, \
[all …]
/external/archive-patcher/generator/src/main/java/com/google/archivepatcher/generator/
DPatchWriter.java34 private final PreDiffPlan plan; field in PatchWriter
65 PreDiffPlan plan, in PatchWriter() argument
69 this.plan = plan; in PatchWriter()
92 dataOut.writeInt(plan.getOldFileUncompressionPlan().size()); in writeV1Patch()
93 for (TypedRange<Void> range : plan.getOldFileUncompressionPlan()) { in writeV1Patch()
99 dataOut.writeInt(plan.getDeltaFriendlyNewFileRecompressionPlan().size()); in writeV1Patch()
100 for (TypedRange<JreDeflateParameters> range : plan.getDeltaFriendlyNewFileRecompressionPlan()) { in writeV1Patch()
/external/archive-patcher/applier/src/main/java/com/google/archivepatcher/applier/
DFileByFileV1DeltaApplier.java92 PatchApplyPlan plan = patchReader.readPatchApplyPlan(deltaIn); in applyDeltaInternal() local
93 writeDeltaFriendlyOldBlob(plan, oldBlob, deltaFriendlyOldBlob); in applyDeltaInternal()
97 long deltaLength = plan.getDeltaDescriptors().get(0).getDeltaLength(); in applyDeltaInternal()
106 plan.getDeltaFriendlyNewFileRecompressionPlan(), in applyDeltaInternal()
121 PatchApplyPlan plan, File oldBlob, File deltaFriendlyOldBlob) throws IOException { in writeDeltaFriendlyOldBlob() argument
126 deltaFriendlyOldBlob, plan.getDeltaFriendlyOldFileSize()); in writeDeltaFriendlyOldBlob()
128 plan.getOldFileUncompressionPlan(), in writeDeltaFriendlyOldBlob()

1234567891011