Searched defs:field (Results 1 - 22 of 22) sorted by relevance

/system/bt/vendor_libs/test_vendor_lib/src/
H A Ddevice_properties.cc36 bool ParseUint8t(const base::StringPiece& value, uint8_t* field) { argument
37 *field = std::stoi(value.as_string());
41 bool ParseUint16t(const base::StringPiece& value, uint16_t* field) { argument
42 *field = std::stoi(value.as_string());
106 #define REGISTER_UINT8_T(field_name, field) \
108 field_name, &DeviceProperties::field, &ParseUint8t);
109 #define REGISTER_UINT16_T(field_name, field) \
111 field_name, &DeviceProperties::field, &ParseUint16t);
/system/core/init/test_service/
H A Dtest_service.cpp26 printf("Usage: %s <status field> <value> [<status field> <value>]*\n", argv[0]);
33 LOG(FATAL) << "no status field requested";
53 std::string field = tokens[0]; local
55 if (field.length() > 0) {
56 fields[field] = value;
67 LOG(ERROR) << "field '" << argv[i] << "' expected '" << expected_value
72 LOG(WARNING) << "could not find field '" << argv[i] << "'";
/system/core/libmetricslogger/
H A Dmetrics_logger.cpp55 void LogMultiAction(int32_t category, int32_t field, const std::string& value) { argument
58 << field << value << LOG_ID_EVENTS;
/system/extras/simpleperf/
H A Dtracing.h51 const TracingField& field = GetField(name); local
52 place.offset = field.offset;
53 place.size = field.elem_size;
58 for (const auto& field : fields) {
59 if (field.name == name) {
60 return field;
63 LOG(FATAL) << "Couldn't find field " << name << "in TracingFormat of "
H A Dtracing.cpp283 // Parse lines like: field:char comm[16]; offset:8; size:16; signed:1;
285 TracingField field; local
297 if (name == "field") {
300 field.name = value;
301 field.elem_count = 1;
303 field.name = value.substr(0, pos);
304 field.elem_count =
308 field.offset =
312 CHECK_EQ(size % field.elem_count, 0u);
313 field
348 TracingField field = ParseTracingField(s); local
[all...]
/system/update_engine/payload_generator/
H A Dgraph_utils.cc105 void DumpExtents(const T& field, int prepend_space_count) { argument
107 for (const auto& extent : field) {
/system/core/healthd/
H A DAnimationParser.cpp54 bool parse_text_field(const char* in, animation::text_field* field) { argument
55 int* x = &field->pos_x;
56 int* y = &field->pos_y;
57 int* r = &field->color_r;
58 int* g = &field->color_g;
59 int* b = &field->color_b;
60 int* a = &field->color_a;
77 field->font_file.assign(&in[start], end - start);
H A Dhealthd_draw.cpp97 void HealthdDraw::determine_xy(const animation::text_field& field, argument
99 *x = field.pos_x;
101 int str_len_px = length * field.font->char_width;
102 if (field.pos_x == CENTER_VAL) {
104 } else if (field.pos_x >= 0) {
105 *x = field.pos_x;
107 *x = screen_width_ + field.pos_x - str_len_px - kSplitOffset;
110 *y = field.pos_y;
112 if (field.pos_y == CENTER_VAL) {
113 *y = (screen_height_ - field
125 const animation::text_field& field = anim->text_clock; local
158 const animation::text_field& field = anim->text_percent; local
[all...]
/system/core/libunwindstack/include/unwindstack/
H A DMemory.h44 inline bool ReadField(uint64_t addr, void* start, void* field, size_t size) { argument
45 if (reinterpret_cast<uintptr_t>(field) < reinterpret_cast<uintptr_t>(start)) {
48 uint64_t offset = reinterpret_cast<uintptr_t>(field) - reinterpret_cast<uintptr_t>(start);
53 return ReadFully(offset, field, size);
/system/extras/iotop/
H A Diotop.cpp56 static Sorter GetSorter(const std::string& field) { argument
58 static auto comparator = [](auto& lhs, auto& rhs, auto field, bool ascending) -> bool {
59 auto a = (lhs.*field)();
60 auto b = (rhs.*field)();
62 // Sort by selected field
70 auto make_sorter = [](auto field, bool ascending) {
71 // Make closure for comparator on a specific field
73 auto bound_comparator = std::bind(comparator, _1, _2, field, ascending);
93 auto it = sorters.find(field);
/system/extras/showmap/
H A Dshowmap.cpp92 char field[64]; local
95 if (sscanf(line, "%63s %n", field, &len) == 1
96 && *field && field[strlen(field) - 1] == ':') {
99 if (!strcmp(field, "Size:")) {
101 } else if (!strcmp(field, "Rss:")) {
103 } else if (!strcmp(field, "Pss:")) {
105 } else if (!strcmp(field, "Shared_Clean:")) {
107 } else if (!strcmp(field, "Shared_Dirt
[all...]
/system/bt/stack/a2dp/
H A Da2dp_vendor_aptx.cc345 std::string field; local
358 field.clear();
359 AppendField(&field, (aptx_cie.sampleRate == 0), "NONE");
360 AppendField(&field, (aptx_cie.sampleRate & A2DP_APTX_SAMPLERATE_44100),
362 AppendField(&field, (aptx_cie.sampleRate & A2DP_APTX_SAMPLERATE_48000),
364 res << "\tsamp_freq: " << field << " (" << loghex(aptx_cie.sampleRate)
368 field.clear();
369 AppendField(&field, (aptx_cie.channelMode == 0), "NONE");
370 AppendField(&field, (aptx_cie.channelMode & A2DP_APTX_CHANNELS_MONO), "Mono");
371 AppendField(&field, (aptx_ci
[all...]
H A Da2dp_vendor_aptx_hd.cc361 std::string field; local
374 field.clear();
375 AppendField(&field, (aptx_hd_cie.sampleRate == 0), "NONE");
376 AppendField(&field, (aptx_hd_cie.sampleRate & A2DP_APTX_HD_SAMPLERATE_44100),
378 AppendField(&field, (aptx_hd_cie.sampleRate & A2DP_APTX_HD_SAMPLERATE_48000),
380 res << "\tsamp_freq: " << field << " (" << loghex(aptx_hd_cie.sampleRate)
384 field.clear();
385 AppendField(&field, (aptx_hd_cie.channelMode == 0), "NONE");
386 AppendField(&field, (aptx_hd_cie.channelMode & A2DP_APTX_HD_CHANNELS_MONO),
388 AppendField(&field, (aptx_hd_ci
[all...]
H A Da2dp_vendor_ldac.cc434 std::string field; local
447 field.clear();
448 AppendField(&field, (ldac_cie.sampleRate == 0), "NONE");
449 AppendField(&field, (ldac_cie.sampleRate & A2DP_LDAC_SAMPLING_FREQ_44100),
451 AppendField(&field, (ldac_cie.sampleRate & A2DP_LDAC_SAMPLING_FREQ_48000),
453 AppendField(&field, (ldac_cie.sampleRate & A2DP_LDAC_SAMPLING_FREQ_88200),
455 AppendField(&field, (ldac_cie.sampleRate & A2DP_LDAC_SAMPLING_FREQ_96000),
457 AppendField(&field, (ldac_cie.sampleRate & A2DP_LDAC_SAMPLING_FREQ_176400),
459 AppendField(&field, (ldac_cie.sampleRate & A2DP_LDAC_SAMPLING_FREQ_192000),
461 res << "\tsamp_freq: " << field << " (" << loghe
[all...]
H A Da2dp_aac.cc567 std::string field; local
580 field.clear();
581 AppendField(&field, (aac_cie.objectType == 0), "NONE");
582 AppendField(&field, (aac_cie.objectType & A2DP_AAC_OBJECT_TYPE_MPEG2_LC),
584 AppendField(&field, (aac_cie.objectType & A2DP_AAC_OBJECT_TYPE_MPEG4_LC),
586 AppendField(&field, (aac_cie.objectType & A2DP_AAC_OBJECT_TYPE_MPEG4_LTP),
588 AppendField(&field,
591 res << "\tobjectType: " << field << " (" << loghex(aac_cie.objectType)
595 field.clear();
596 AppendField(&field, (aac_ci
[all...]
H A Da2dp_sbc.cc689 std::string field; local
702 field.clear();
703 AppendField(&field, (sbc_cie.samp_freq == 0), "NONE");
704 AppendField(&field, (sbc_cie.samp_freq & A2DP_SBC_IE_SAMP_FREQ_16), "16000");
705 AppendField(&field, (sbc_cie.samp_freq & A2DP_SBC_IE_SAMP_FREQ_32), "32000");
706 AppendField(&field, (sbc_cie.samp_freq & A2DP_SBC_IE_SAMP_FREQ_44), "44100");
707 AppendField(&field, (sbc_cie.samp_freq & A2DP_SBC_IE_SAMP_FREQ_48), "48000");
708 res << "\tsamp_freq: " << field << " (" << loghex(sbc_cie.samp_freq) << ")\n";
711 field.clear();
712 AppendField(&field, (sbc_ci
[all...]
/system/core/libnativebridge/
H A Dnative_bridge.cc327 static void SetCpuAbi(JNIEnv* env, jclass build_class, const char* field, const char* value) { argument
329 jfieldID field_id = env->GetStaticFieldID(build_class, field, "Ljava/lang/String;");
332 ALOGW("Could not find %s field.", field);
/system/bt/service/client/
H A Dmain.cc321 void PrintFieldAndValue(const string& field, const string& value) { argument
322 cout << COLOR_BOLDWHITE << field << ": " << COLOR_BOLDYELLOW << value
326 void PrintFieldAndBoolValue(const string& field, bool value) { argument
327 PrintFieldAndValue(field, (value ? "true" : "false"));
/system/chre/external/flatbuffers/include/flatbuffers/
H A Dflatbuffers.h372 // Vector::data() assumes the vector elements start after the length field.
499 // of wether it is null or not (the field is not set).
839 void TrackField(voffset_t field, uoffset_t off) {
840 FieldLoc fl = { off, field };
844 // Like PushElement, but additionally tracks the field this represents.
845 template<typename T> void AddElement(voffset_t field, T e, T def) {
849 TrackField(field, off);
852 template<typename T> void AddOffset(voffset_t field, Offset<T> off) {
854 AddElement(field, ReferTo(off.o), static_cast<uoffset_t>(0));
857 template<typename T> void AddStruct(voffset_t field, cons
1692 GetField(voffset_t field, T defaultval) const argument
1697 GetPointer(voffset_t field) argument
1714 SetField(voffset_t field, T val) argument
1721 SetPointer(voffset_t field, const uint8_t *val) argument
1729 GetAddressOf(voffset_t field) argument
1850 IsFieldPresent(const T *table, voffset_t field) argument
[all...]
/system/chre/platform/slpi/see/
H A Dsee_helper.cc171 * Copy an encoded pb message to a wrapper proto's field.
173 bool copyPayload(pb_ostream_t *stream, const pb_field_t *field, argument
178 if (!pb_encode_tag_for_field(stream, field)) {
212 // The encoded size can be 0 as there's only one optional field.
377 * Helps decode a pb string field and passes the string to the calling function.
379 bool decodeStringField(pb_istream_t *stream, const pb_field_t *field, argument
395 bool decodeSnsSuidEventSuid(pb_istream_t *stream, const pb_field_t *field, argument
408 bool decodeSnsSuidEvent(pb_istream_t *stream, const pb_field_t *field, argument
458 bool decodeSnsSuidProtoEvent(pb_istream_t *stream, const pb_field_t *field, argument
465 success = decodeSnsSuidEvent(stream, field, ar
544 decodeSnsStdAttrValue(pb_istream_t *stream, const pb_field_t *field, void **arg) argument
597 decodeSnsStrAttr(pb_istream_t *stream, const pb_field_t *field, void **arg) argument
655 decodeSnsStdAttrEvent(pb_istream_t *stream, const pb_field_t *field, void **arg) argument
698 decodeSnsStdProtoEvent(pb_istream_t *stream, const pb_field_t *field, void **arg) argument
836 decodeFloatData(pb_istream_t *stream, const pb_field_t *field, void **arg) argument
858 decodeSnsStdSensorPhysicalConfigEvent( pb_istream_t *stream, const pb_field_t *field, void **arg) argument
902 decodeSnsStdSensorEvent(pb_istream_t *stream, const pb_field_t *field, void **arg) argument
923 decodeSnsStdSensorProtoEvent(pb_istream_t *stream, const pb_field_t *field, void **arg) argument
943 decodeSnsCalEvent(pb_istream_t *stream, const pb_field_t *field, void **arg) argument
994 decodeSnsCalProtoEvent(pb_istream_t *stream, const pb_field_t *field, void **arg) argument
1010 decodeSnsProximityEvent(pb_istream_t *stream, const pb_field_t *field, void **arg) argument
1028 decodeSnsProximityProtoEvent(pb_istream_t *stream, const pb_field_t *field, void **arg) argument
1044 decodeSnsRemoteProcStateEvent( pb_istream_t *stream, const pb_field_t *field, void **arg) argument
1062 decodeSnsRemoteProcProtoEvent( pb_istream_t *stream, const pb_field_t *field, void **arg) argument
1140 decodeSnsClientEventMsg(pb_istream_t *stream, const pb_field_t *field, void **arg) argument
[all...]
/system/core/lmkd/
H A Dlmkd.c181 } field; member in union:zoneinfo
221 } field; member in union:meminfo
276 int field_count, int64_t* field,
284 return parse_int64(ap, field) ? PARSE_SUCCESS : PARSE_FAIL;
790 zi->field.totalreserve_pages +=
823 zi->field.totalreserve_pages += zi->field.high;
877 mi->field.nr_file_pages = mi->field.cached + mi->field
274 match_field(const char* cp, const char* ap, const char* const field_names[], int field_count, int64_t* field, int *field_idx) argument
[all...]
/system/vold/
H A Dcryptfs.cpp2625 * Test if key is part of the multi-entry (field, index) sequence. Return non-zero if key is in the
2628 int match_multi_entry(const char *key, const char *field, unsigned index) { argument
2630 std::string field_ = field;
2648 * Delete entry/entries from persist_data. If the entries are part of a multi-segment field, all
2651 * PERSIST_DEL_KEY_ERROR_NO_FIELD if the field does not exist,
2706 /* Return the value of the specified field. */
2710 SLOGE("Cannot get field when file encrypted");
2747 // maximum field length. At this point we have in fact fully read out the original
2772 /* Set the value of the specified field. */
2776 SLOGE("Cannot set field whe
[all...]

Completed in 362 milliseconds