Home
last modified time | relevance | path

Searched refs:record (Results 1 – 25 of 2020) sorted by relevance

12345678910>>...81

/external/conscrypt/common/src/test/resources/crypto/
Dparse_records.py38 def format_records(record): argument
42 if 'key' in record and 'iv' in record and 'plaintext' in record and 'ciphertext' in record:
44 return ["{key},{iv},{plaintext},{ciphertext}".format(**record)]
45 elif 'key' in record and 'nonce' in record and 'plaintext' in record and 'ciphertext' in record:
47 return ["{key},{nonce},{plaintext},{ciphertext}".format(**record)]
48 elif 'key' in record and 'plaintext' in record and 'ciphertext' in record:
50 return ["{key},,{plaintext},{ciphertext}".format(**record)]
51 elif 'keys' in record and 'iv' in record and 'plaintext' in record and 'ciphertext' in record:
53 return ["{keys}{keys}{keys},{iv},{plaintext},{ciphertext}".format(**record)]
54 elif 'keys' in record and 'plaintext' in record and 'ciphertext' in record:
[all …]
/external/openthread/src/core/utils/
Dflash.cpp47 RecordHeader record; in Init() local
71 …for (mSwapUsed = kSwapMarkerSize; mSwapUsed <= mSwapSize - sizeof(record); mSwapUsed += record.Get… in Init()
73 otPlatFlashRead(&GetInstance(), mSwapIndex, mSwapUsed, &record, sizeof(record)); in Init()
74 if (!record.IsAddBeginSet()) in Init()
79 if (!record.IsAddCompleteSet()) in Init()
123 RecordHeader record; in Get() local
125 for (offset = kSwapMarkerSize; offset < mSwapUsed; offset += record.GetSize()) in Get()
127 otPlatFlashRead(&GetInstance(), mSwapIndex, offset, &record, sizeof(record)); in Get()
129 if ((record.GetKey() != aKey) || !record.IsValid()) in Get()
134 if (record.IsFirst()) in Get()
[all …]
/external/wpa_supplicant_8/src/wps/
Dndef.c36 struct ndef_record *record) in ndef_parse_record() argument
42 record->type_length = *pos++; in ndef_parse_record()
46 record->payload_length = *pos++; in ndef_parse_record()
55 record->payload_length = len; in ndef_parse_record()
62 record->id_length = *pos++; in ndef_parse_record()
64 record->id_length = 0; in ndef_parse_record()
66 if (record->type_length > data + size - pos) in ndef_parse_record()
68 record->type = record->type_length == 0 ? NULL : pos; in ndef_parse_record()
69 pos += record->type_length; in ndef_parse_record()
71 if (record->id_length > data + size - pos) in ndef_parse_record()
[all …]
/external/deqp/external/vulkancts/framework/vulkan/
DvkAllocationCallbackUtil.cpp132 AllocationCallbackRecord record; in allocation() local
134 record.type = TYPE_ALLOCATION; in allocation()
135 record.data.allocation.size = size; in allocation()
136 record.data.allocation.alignment = alignment; in allocation()
137 record.data.allocation.scope = scope; in allocation()
138 record.data.allocation.returnedPtr = returnedPtr; in allocation()
140 return record; in allocation()
145 AllocationCallbackRecord record; in reallocation() local
147 record.type = TYPE_REALLOCATION; in reallocation()
148 record.data.reallocation.original = original; in reallocation()
[all …]
/external/skia/tests/
DRecordTest.cpp31 void apply(const SkRecord& record) { in apply() argument
32 for (int i = 0; i < record.count(); i++) { in apply()
33 record.visit(i, *this); in apply()
49 void apply(SkRecord* record) { in apply()
50 for (int i = 0; i < record->count(); i++) { in apply()
51 record->mutate(i, *this); in apply()
56 #define APPEND(record, type, ...) new (record.append<type>()) type{__VA_ARGS__} argument
60 SkRecord record; in DEF_TEST() local
65 APPEND(record, SkRecords::DrawRect, paint, rect); in DEF_TEST()
69 summer.apply(record); in DEF_TEST()
[all …]
DRecordPatternTest.cpp26 SkRecord record; in DEF_TEST() local
27 REPORTER_ASSERT(r, !pattern.match(&record, 0)); in DEF_TEST()
29 SkRecorder recorder(&record, 1920, 1200); in DEF_TEST()
33 REPORTER_ASSERT(r, !pattern.match(&record, 0)); in DEF_TEST()
36 REPORTER_ASSERT(r, !pattern.match(&record, 0)); in DEF_TEST()
39 REPORTER_ASSERT(r, pattern.match(&record, 0)); in DEF_TEST()
48 SkRecord record; in DEF_TEST() local
49 SkRecorder recorder(&record, 1920, 1200); in DEF_TEST()
61 REPORTER_ASSERT(r, pattern.match(&record, i) == i + 3); in DEF_TEST()
63 REPORTER_ASSERT(r, !pattern.match(&record, i)); in DEF_TEST()
[all …]
DRecordOptsTest.cpp35 SkRecord record; in DEF_TEST() local
36 SkRecorder recorder(&record, W, H); in DEF_TEST()
42 record.replace<SkRecords::NoOp>(1); // NoOps should be allowed. in DEF_TEST()
44 SkRecordNoopSaveRestores(&record); in DEF_TEST()
46 REPORTER_ASSERT(r, 2 == count_instances_of_type<SkRecords::DrawRect>(record)); in DEF_TEST()
50 SkRecord record; in DEF_TEST() local
51 SkRecorder recorder(&record, W, H); in DEF_TEST()
57 SkRecordNoopSaveRestores(&record); in DEF_TEST()
59 assert_type<SkRecords::NoOp>(r, record, i); in DEF_TEST()
64 SkRecord record; in DEF_TEST() local
[all …]
DRecordDrawTest.cpp45 SkRecord record; in DEF_TEST() local
46 SkRecorder recorder(&record, W, H); in DEF_TEST()
48 REPORTER_ASSERT(r, 0 == record.count()); in DEF_TEST()
50 REPORTER_ASSERT(r, 0 == record.count()); // the save was not recorded (yet) in DEF_TEST()
52 REPORTER_ASSERT(r, 1 == record.count()); in DEF_TEST()
54 REPORTER_ASSERT(r, 3 == record.count()); // now we see the save in DEF_TEST()
56 REPORTER_ASSERT(r, 4 == record.count()); in DEF_TEST()
58 assert_type<SkRecords::DrawPaint>(r, record, 0); in DEF_TEST()
59 assert_type<SkRecords::Save> (r, record, 1); in DEF_TEST()
60 assert_type<SkRecords::Scale> (r, record, 2); in DEF_TEST()
[all …]
/external/skia/src/core/
DSkRecordOpts.cpp26 static bool apply(Pass* pass, SkRecord* record) { in apply() argument
31 while (match.search(record, &begin, &end)) { in apply()
32 changed |= pass->onMatch(record, &match, begin, end); in apply()
39 static void multiple_set_matrices(SkRecord* record) { in multiple_set_matrices() argument
46 bool onMatch(SkRecord* record, Match* pattern, int begin, int end) { in multiple_set_matrices()
47 record->replace<NoOp>(begin); // first SetMatrix in multiple_set_matrices()
51 while (apply(&pass, record)); in multiple_set_matrices()
57 static void apply_matrix_to_draw_params(SkRecord* record) {
64 bool onMatch(SkRecord* record, Pattern* pattern, int begin, int end) {
65 record->replace<NoOp>(begin); // first SetMatrix
[all …]
/external/tensorflow/tensorflow/core/profiler/convert/
Dop_metrics_to_record.h50 inline void SetExecutionTimes(const OpMetrics& metrics, Record* record) { in SetExecutionTimes() argument
51 record->set_occurrences(metrics.occurrences()); in SetExecutionTimes()
52 record->set_total_time_in_us(PicoToMicro(metrics.time_ps())); in SetExecutionTimes()
53 record->set_avg_time_in_us( in SetExecutionTimes()
54 SafeDivide(record->total_time_in_us(), metrics.occurrences())); in SetExecutionTimes()
55 record->set_total_self_time_in_us(PicoToMicro(metrics.self_time_ps())); in SetExecutionTimes()
56 record->set_avg_self_time_in_us( in SetExecutionTimes()
57 SafeDivide(record->total_self_time_in_us(), metrics.occurrences())); in SetExecutionTimes()
61 inline void SetTpuUnitFractions(const OpMetrics& metrics, Record* record) { in SetTpuUnitFractions() argument
62 record->set_dma_stall_fraction( in SetTpuUnitFractions()
[all …]
Dop_stats_to_tf_stats.cc38 TfStatsRecord record; in ConvertOpMetricsToTfStatsRecord() local
39 record.set_host_or_device(on_device ? "Device" : "Host"); in ConvertOpMetricsToTfStatsRecord()
40 record.set_is_eager(metrics.is_eager()); in ConvertOpMetricsToTfStatsRecord()
41 record.set_op_type(metrics.category()); in ConvertOpMetricsToTfStatsRecord()
42 record.set_op_name(metrics.name()); in ConvertOpMetricsToTfStatsRecord()
43 SetExecutionTimes(metrics, &record); in ConvertOpMetricsToTfStatsRecord()
44 SetRooflineMetrics(metrics, ridge_point_operational_intensity, &record); in ConvertOpMetricsToTfStatsRecord()
45 return record; in ConvertOpMetricsToTfStatsRecord()
66 TfStatsRecord* record = tf_stats_table.add_tf_stats_record(); in GenerateTfStatsTable() local
67 *record = ConvertOpMetricsToTfStatsRecord( in GenerateTfStatsTable()
[all …]
/external/cronet/net/dns/
Drecord_rdata_unittest.cc37 record[] = in TEST() local
46 DnsRecordParser parser(record, sizeof(record), 0, /*num_records=*/0); in TEST()
49 record, first_record_len); in TEST()
51 record + first_record_len, sizeof(record) - first_record_len); in TEST()
79 const uint8_t record[] = { in TEST() local
83 DnsRecordParser parser(record, sizeof(record), 0, /*num_records=*/0); in TEST()
84 base::StringPiece record_strpiece = MakeStringPiece(record, sizeof(record)); in TEST()
99 const uint8_t record[] = { in TEST() local
104 DnsRecordParser parser(record, sizeof(record), 0, /*num_records=*/0); in TEST()
105 base::StringPiece record_strpiece = MakeStringPiece(record, sizeof(record)); in TEST()
[all …]
/external/mesa3d/src/gallium/auxiliary/driver_ddebug/
Ddd_draw.c940 dd_free_record(struct pipe_screen *screen, struct dd_draw_record *record) in dd_free_record() argument
942 u_log_page_destroy(record->log_page); in dd_free_record()
943 dd_unreference_copy_of_call(&record->call); in dd_free_record()
944 dd_unreference_copy_of_draw_state(&record->draw_state); in dd_free_record()
945 screen->fence_reference(screen, &record->prev_bottom_of_pipe, NULL); in dd_free_record()
946 screen->fence_reference(screen, &record->top_of_pipe, NULL); in dd_free_record()
947 screen->fence_reference(screen, &record->bottom_of_pipe, NULL); in dd_free_record()
948 util_queue_fence_destroy(&record->driver_finished); in dd_free_record()
949 FREE(record); in dd_free_record()
953 dd_write_record(FILE *f, struct dd_draw_record *record) in dd_write_record() argument
[all …]
/external/openscreen/discovery/mdns/
Dmdns_publisher.cc37 inline MdnsRecord CreateGoodbyeRecord(const MdnsRecord& record) { in CreateGoodbyeRecord() argument
38 if (record.ttl() == kGoodbyeTtl) { in CreateGoodbyeRecord()
39 return record; in CreateGoodbyeRecord()
41 return MdnsRecord(record.name(), record.dns_type(), record.dns_class(), in CreateGoodbyeRecord()
42 record.record_type(), kGoodbyeTtl, record.rdata()); in CreateGoodbyeRecord()
70 Error MdnsPublisher::RegisterRecord(const MdnsRecord& record) { in RegisterRecord() argument
72 OSP_DCHECK(record.dns_class() != DnsClass::kANY); in RegisterRecord()
74 if (!CanBePublished(record.dns_type())) { in RegisterRecord()
78 if (!IsRecordNameClaimed(record)) { in RegisterRecord()
82 const DomainName& name = record.name(); in RegisterRecord()
[all …]
Dmdns_publisher_unittest.cc29 MdnsRecord record) { in ContainsRecord() argument
31 [&record](const MdnsRecord& ref) { in ContainsRecord()
32 return ref == record; in ContainsRecord()
68 return announcer->record().dns_type() != in IsNonPtrRecordPresent()
133 for (const auto& record : expected_records) { in CheckPublishedRecords() local
134 EXPECT_TRUE(ContainsRecord(records, record)); in CheckPublishedRecords()
138 void TestUniqueRecordRegistrationWorkflow(MdnsRecord record, in TestUniqueRecordRegistrationWorkflow() argument
142 DnsType type = record.dns_type(); in TestUniqueRecordRegistrationWorkflow()
145 ASSERT_EQ(record.dns_type(), record2.dns_type()); in TestUniqueRecordRegistrationWorkflow()
149 ASSERT_NE(record, record2); in TestUniqueRecordRegistrationWorkflow()
[all …]
Dmdns_querier.cc29 bool IsNegativeResponseFor(const MdnsRecord& record, DnsType type) { in IsNegativeResponseFor() argument
30 if (record.dns_type() != DnsType::kNSEC) { in IsNegativeResponseFor()
34 const NsecRecordRdata& nsec = absl::get<NsecRecordRdata>(record.rdata()); in IsNegativeResponseFor()
296 int MdnsQuerier::RecordTrackerLruCache::Update(const MdnsRecord& record, in Update() argument
298 return Update(record, check, [](const MdnsRecordTracker& t) {}); in Update()
302 const MdnsRecord& record, in Update() argument
305 auto pair = records_.equal_range(record.name()); in Update()
309 auto result = it->second->Update(record); in Update()
335 MdnsRecord record, in StartTracking() argument
338 const MdnsRecord& record) { in StartTracking() argument
[all …]
/external/python/mobly/tests/mobly/
Drecords_test.py67 record,
73 record.update_record()
75 self.assertEqual(record.test_name, self.tn)
76 self.assertEqual(record.result, result)
77 self.assertEqual(record.details, details)
78 self.assertEqual(record.termination_signal_type, termination_signal_type)
79 self.assertEqual(record.extras, extras)
80 self.assertTrue(record.begin_time, 'begin time should not be empty.')
81 self.assertTrue(record.end_time, 'end time should not be empty.')
83 self.assertIsNone(record.uid)
[all …]
/external/trace-cmd/tracecmd/
Dtrace-split.c43 struct tep_record *record; member
76 struct tep_record *record, in write_record() argument
94 diff = record->ts - cpu_data->ts; in write_record()
104 cpu_data->ts = record->ts; in write_record()
109 if (record->size && (record->size <= 28 * 4)) in write_record()
110 len = record->size / 4; in write_record()
120 len = record->size + 4; in write_record()
121 if ((len + 4) > record->record_size) in write_record()
123 record->record_size, len + 4); in write_record()
129 len = (record->size + 3) & ~3; in write_record()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/duration/impl/
DDataRecord.java62 DataRecord record = new DataRecord(); in read() local
63 record.pl = in.namedIndex("pl", EPluralization.names); in read()
64 record.pluralNames = in.stringTable("pluralName"); in read()
65 record.genders = in.namedIndexArray("gender", EGender.names); in read()
66 record.singularNames = in.stringArray("singularName"); in read()
67 record.halfNames = in.stringArray("halfName"); in read()
68 record.numberNames = in.stringArray("numberName"); in read()
69 record.mediumNames = in.stringArray("mediumName"); in read()
70 record.shortNames = in.stringArray("shortName"); in read()
71 record.measures = in.stringArray("measure"); in read()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/impl/
DDataRecord.java60 DataRecord record = new DataRecord(); in read() local
61 record.pl = in.namedIndex("pl", EPluralization.names); in read()
62 record.pluralNames = in.stringTable("pluralName"); in read()
63 record.genders = in.namedIndexArray("gender", EGender.names); in read()
64 record.singularNames = in.stringArray("singularName"); in read()
65 record.halfNames = in.stringArray("halfName"); in read()
66 record.numberNames = in.stringArray("numberName"); in read()
67 record.mediumNames = in.stringArray("mediumName"); in read()
68 record.shortNames = in.stringArray("shortName"); in read()
69 record.measures = in.stringArray("measure"); in read()
[all …]
/external/libcups/scheduler/
Dcups-driverd.cxx89 ppd_rec_t record; /* PPDs.dat record */ member
263 ppd->record.mtime = mtime; in add_ppd()
264 ppd->record.size = (off_t)size; in add_ppd()
265 ppd->record.model_number = model_number; in add_ppd()
266 ppd->record.type = type; in add_ppd()
268 strlcpy(ppd->record.filename, filename, sizeof(ppd->record.filename)); in add_ppd()
269 strlcpy(ppd->record.name, name, sizeof(ppd->record.name)); in add_ppd()
270 strlcpy(ppd->record.languages[0], language, in add_ppd()
271 sizeof(ppd->record.languages[0])); in add_ppd()
272 strlcpy(ppd->record.products[0], product, sizeof(ppd->record.products[0])); in add_ppd()
[all …]
/external/replicaisland/src/com/replica/replicaisland/
DGameObjectCollisionSystem.java87 CollisionVolumeRecord record = mRecordPool.allocate(); in registerForCollisions() local
88 if (record != null && object != null && boundingVolume != null in registerForCollisions()
90 record.object = object; in registerForCollisions()
91 record.boundingVolume = boundingVolume; in registerForCollisions()
92 record.attackVolumes = attackVolumes; in registerForCollisions()
93 record.vulnerabilityVolumes = vulnerabilityVolumes; in registerForCollisions()
94 record.reactionComponent = reactionComponent; in registerForCollisions()
95 mObjects.add(record); in registerForCollisions()
106 final CollisionVolumeRecord record = mObjects.get(x); in update() local
107 final Vector2 position = record.object.getPosition(); in update()
[all …]
/external/slf4j/jul-to-slf4j/src/main/java/org/slf4j/bridge/
DSLF4JBridgeHandler.java197 protected Logger getSLF4JLogger(LogRecord record) { in getSLF4JLogger() argument
198 String name = record.getLoggerName(); in getSLF4JLogger()
205 protected void callLocationAwareLogger(LocationAwareLogger lal, LogRecord record) { in callLocationAwareLogger() argument
206 int julLevelValue = record.getLevel().intValue(); in callLocationAwareLogger()
220 String i18nMessage = getMessageI18N(record); in callLocationAwareLogger()
221 lal.log(null, FQCN, slf4jLevel, i18nMessage, null, record.getThrown()); in callLocationAwareLogger()
224 protected void callPlainSLF4JLogger(Logger slf4jLogger, LogRecord record) { in callPlainSLF4JLogger() argument
225 String i18nMessage = getMessageI18N(record); in callPlainSLF4JLogger()
226 int julLevelValue = record.getLevel().intValue(); in callPlainSLF4JLogger()
228 slf4jLogger.trace(i18nMessage, record.getThrown()); in callPlainSLF4JLogger()
[all …]
/external/e2fsprogs/e2fsck/
Drevoke.c140 struct jbd2_revoke_record_s *record; in insert_revoke_hash() local
145 record = kmem_cache_alloc(jbd2_revoke_record_cache, gfp_mask); in insert_revoke_hash()
146 if (!record) in insert_revoke_hash()
149 record->sequence = seq; in insert_revoke_hash()
150 record->blocknr = blocknr; in insert_revoke_hash()
153 list_add(&record->hash, hash_list); in insert_revoke_hash()
164 struct jbd2_revoke_record_s *record; in find_revoke_record() local
169 record = (struct jbd2_revoke_record_s *) hash_list->next; in find_revoke_record()
170 while (&(record->hash) != hash_list) { in find_revoke_record()
171 if (record->blocknr == blocknr) { in find_revoke_record()
[all …]
/external/e2fsprogs/debugfs/
Drevoke.c140 struct jbd2_revoke_record_s *record; in insert_revoke_hash() local
145 record = kmem_cache_alloc(jbd2_revoke_record_cache, gfp_mask); in insert_revoke_hash()
146 if (!record) in insert_revoke_hash()
149 record->sequence = seq; in insert_revoke_hash()
150 record->blocknr = blocknr; in insert_revoke_hash()
153 list_add(&record->hash, hash_list); in insert_revoke_hash()
164 struct jbd2_revoke_record_s *record; in find_revoke_record() local
169 record = (struct jbd2_revoke_record_s *) hash_list->next; in find_revoke_record()
170 while (&(record->hash) != hash_list) { in find_revoke_record()
171 if (record->blocknr == blocknr) { in find_revoke_record()
[all …]

12345678910>>...81