Home
last modified time | relevance | path

Searched refs:format (Results 1 – 25 of 36) sorted by relevance

12

/chre-3.4.0/host/common/include/chre_host/
Dlog.h34 #define CHRE_LOG(level, stream, format, ...) \ argument
36 ALOG(level, LOG_TAG, format, ##__VA_ARGS__); \
37 fprintf(stream, "%s:%d: " format "\n", __func__, __LINE__, ##__VA_ARGS__); \
40 #define LOGE(format, ...) CHRE_LOG(LOG_ERROR, stderr, format, ##__VA_ARGS__) argument
41 #define LOGW(format, ...) CHRE_LOG(LOG_WARN, stdout, format, ##__VA_ARGS__) argument
42 #define LOGI(format, ...) CHRE_LOG(LOG_INFO, stdout, format, ##__VA_ARGS__) argument
43 #define LOGD(format, ...) CHRE_LOG(LOG_DEBUG, stdout, format, ##__VA_ARGS__) argument
46 __attribute__((format(printf, 1, 2))) inline void chreLogNull( in chreLogNull()
49 #define LOGV(format, ...) chreLogNull(format, ##__VA_ARGS__) argument
51 #define LOGV(format, ...) CHRE_LOG(LOG_VERBOSE, stdout, format, ##__VA_ARGS__) argument
/chre-3.4.0/platform/include/chre/platform/
Dlog.h75 #define LOGE(format, ...) CHRE_LOG_NULL(format, ##__VA_ARGS__) argument
80 #define LOGW(format, ...) CHRE_LOG_NULL(format, ##__VA_ARGS__) argument
85 #define LOGI(format, ...) CHRE_LOG_NULL(format, ##__VA_ARGS__) argument
90 #define LOGD(format, ...) CHRE_LOG_NULL(format, ##__VA_ARGS__) argument
95 #define LOGV(format, ...) CHRE_LOG_NULL(format, ##__VA_ARGS__) argument
/chre-3.4.0/chpp/include/chpp/
Dlog.h59 #define CHPP_LOGE(format, ...) CHRE_LOG_NULL(format, ##__VA_ARGS__) argument
64 #define CHPP_LOGW(format, ...) CHRE_LOG_NULL(format, ##__VA_ARGS__) argument
69 #define CHPP_LOGI(format, ...) CHRE_LOG_NULL(format, ##__VA_ARGS__) argument
74 #define CHPP_LOGD(format, ...) CHRE_LOG_NULL(format, ##__VA_ARGS__) argument
/chre-3.4.0/chpp/api_parser/
Dchre_api_to_chpp.py78 out.append("// This file was automatically generated by {}\n".format(
80 out.append("// Date: {} UTC\n".format(datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S')))
81 out.append("// Source: {} @ commit {}\n\n".format(self.json['filename'], self.commit_hash))
89 print("---- {} ----".format(output_filename))
91 print("---- end of {} ----\n".format(output_filename))
124 raise RuntimeError("Couldn't figure out new type name for {}".format(chre_type))
137 return " // Input ignored; always set to {}".format(annotation['value'])
139 return " // References {} instances of {}".format(
167 raise RuntimeError("Pointer types require annotation\n{}".format(
177 return "[{}]".format(self._get_array_len(member_info['type']))
[all …]
/chre-3.4.0/util/nanoapp/
Daudio.cc21 const char *getChreAudioFormatString(uint8_t format) { in getChreAudioFormatString() argument
22 switch (format) { in getChreAudioFormatString()
/chre-3.4.0/platform/linux/
Dplatform_audio.cc55 if (dataEvent.format == CHRE_AUDIO_DATA_FORMAT_16_BIT_SIGNED_PCM) { in audioSourceCallback()
121 audioSource->format = source->dataEvent.format; in getAudioSource()
142 } else if ((audioInfo.format & SF_FORMAT_ULAW) == SF_FORMAT_ULAW) { in addAudioSource()
143 source->dataEvent.format = CHRE_AUDIO_DATA_FORMAT_8_BIT_U_LAW; in addAudioSource()
146 } else if ((audioInfo.format & SF_FORMAT_PCM_16) == SF_FORMAT_PCM_16) { in addAudioSource()
147 source->dataEvent.format = CHRE_AUDIO_DATA_FORMAT_16_BIT_SIGNED_PCM; in addAudioSource()
151 FATAL_ERROR("Invalid format 0x%08x", audioInfo.format); in addAudioSource()
/chre-3.4.0/java/test/cross_validation/src/com/google/android/chre/test/crossvalidator/
DSensorDatapoint.java35 String str = String.format("<SensorDatapoint timestamp: %d, values: [ ", timestamp); in toString()
37 str += String.format("%f ", val); in toString()
DChreCrossValidatorSensor.java129 Assert.assertTrue(String.format("Sensor type %d is not recognized", apSensorType), in ChreCrossValidatorSensor()
147 Assume.assumeTrue(String.format("Sensor could not be instantiated for sensor type %d.", in ChreCrossValidatorSensor()
257 setErrorStr(String.format("Incorrect sensor type %d when expecting %d", in parseInfoResponseFromNanoappMessage()
284 String.format(kParseDataErrorPrefix in parseSensorDataFromNanoappMessage()
292 setErrorStr(String.format(kParseDataErrorPrefix in parseSensorDataFromNanoappMessage()
337 setErrorStr(String.format("incorrect sensor type %d when expecting %d", in onSensorChanged()
516 String.format("AP and CHRE three axis datapoint values differ on index %d", index) in assertSensorDatapointsSimilar()
DChreCrossValidatorBase.java132 Log.d(TAG, String.format("Unloaded napp: 0x%X", state.getNanoAppId())); in unloadAllNanoApps()
DChreCrossValidatorWifi.java260 setErrorStr(String.format("Received message with unexpected type: %d", in parseDataFromNanoAppMessage()
294 String.format("Bssid did not match expected format %s bssid = %s", in bssidToBytes()
/chre-3.4.0/chre_api/legacy/v1_2/chre/
Daudio.h149 uint8_t format; member
260 uint8_t format; member
/chre-3.4.0/chre_api/legacy/v1_3/chre/
Daudio.h149 uint8_t format; member
260 uint8_t format; member
/chre-3.4.0/chre_api/legacy/v1_4/chre/
Daudio.h149 uint8_t format; member
260 uint8_t format; member
Dtoolchain.h32 __attribute__((format(printf, formatPos, argStart)))
/chre-3.4.0/chre_api/include/chre_api/chre/
Daudio.h149 uint8_t format; member
260 uint8_t format; member
Dtoolchain.h33 __attribute__((format(printf, formatPos, argStart)))
/chre-3.4.0/util/include/chre/util/nanoapp/
Daudio.h31 const char *getChreAudioFormatString(uint8_t format);
/chre-3.4.0/platform/android/
Dplatform_audio.cc52 if (dataEvent.format == CHRE_AUDIO_DATA_FORMAT_16_BIT_SIGNED_PCM) { in audioReadCallback()
168 audioSource->format = mDataEvent.format; in getAudioSource()
180 mDataEvent.format = CHRE_AUDIO_DATA_FORMAT_16_BIT_SIGNED_PCM; in initAudioDataEvent()
/chre-3.4.0/platform/shared/
Dlog_buffer_manager.cc22 void chrePlatformLogToBuffer(chreLogLevel chreLogLevel, const char *format, in chrePlatformLogToBuffer() argument
25 va_start(args, format); in chrePlatformLogToBuffer()
27 chre::LogBufferManagerSingleton::get()->logVa(chreLogLevel, format, args); in chrePlatformLogToBuffer()
/chre-3.4.0/apps/test/common/chre_audio_concurrency_test/src/
Dchre_audio_concurrency_test_manager.cc189 if (data->format == CHRE_AUDIO_DATA_FORMAT_8_BIT_U_LAW) { in validateAudioDataEvent()
191 } else if (data->format != CHRE_AUDIO_DATA_FORMAT_16_BIT_SIGNED_PCM) { in validateAudioDataEvent()
192 LOGE("Invalid format %" PRIu8, data->format); in validateAudioDataEvent()
/chre-3.4.0/apps/test/chqts/src/general_test/
Dbasic_audio_test.cc120 } else if (source.format != CHRE_AUDIO_DATA_FORMAT_8_BIT_U_LAW && in validateAudioSource()
121 source.format != CHRE_AUDIO_DATA_FORMAT_16_BIT_SIGNED_PCM) { in validateAudioSource()
139 source.format == CHRE_AUDIO_DATA_FORMAT_16_BIT_SIGNED_PCM); in validateMinimumAudioSource()
/chre-3.4.0/apps/audio_stress_test/
Daudio_stress_test.cc110 source.sampleRate, chre::getChreAudioFormatString(source.format)); in discoverAudioHandle()
117 source.format == kBufferFormat) { in discoverAudioHandle()
/chre-3.4.0/external/
D.clang-format17 # External libraries shouldn't be formatted so they retain the format they were
/chre-3.4.0/chre_api/
D.clang-format17 # Legacy headers shouldn't be formatted so they retain the format they were
/chre-3.4.0/platform/slpi/include/chre/target_platform/
Dlog.h42 void chrePlatformLogToBuffer(enum chreLogLevel chreLogLevel, const char *format,

12