Home
last modified time | relevance | path

Searched refs:tlsState (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/tests/Internal/src/com/android/internal/protolog/
DProtologDataSourceTest.java45 final ProtoLogDataSource.TlsState tlsState = createTlsState( in noConfig() local
48 Truth.assertThat(tlsState.getLogFromLevel("SOME_TAG")).isEqualTo(LogLevel.WTF); in noConfig()
49 Truth.assertThat(tlsState.getShouldCollectStacktrace("SOME_TAG")).isFalse(); in noConfig()
54 final ProtoLogDataSource.TlsState tlsState = createTlsState( in defaultTraceMode() local
64 Truth.assertThat(tlsState.getLogFromLevel("SOME_TAG")).isEqualTo(LogLevel.DEBUG); in defaultTraceMode()
65 Truth.assertThat(tlsState.getShouldCollectStacktrace("SOME_TAG")).isFalse(); in defaultTraceMode()
72 final ProtoLogDataSource.TlsState tlsState = createTlsState( in allEnabledTraceMode() local
81 Truth.assertThat(tlsState.getLogFromLevel("SOME_TAG")).isEqualTo(LogLevel.DEBUG); in allEnabledTraceMode()
82 Truth.assertThat(tlsState.getShouldCollectStacktrace("SOME_TAG")).isFalse(); in allEnabledTraceMode()
107 final ProtoLogDataSource.TlsState tlsState = createTlsState( in stackTraceCollection() local
[all …]
/frameworks/base/core/java/android/tracing/perfetto/
DTracingContext.java69 TlsStateType tlsState = (TlsStateType) nativeGetCustomTls(mDataSource.mNativeObj); in getCustomTlsState() local
70 if (tlsState == null) { in getCustomTlsState()
73 tlsState = mDataSource.createTlsState(args); in getCustomTlsState()
74 nativeSetCustomTls(mDataSource.mNativeObj, tlsState); in getCustomTlsState()
77 return tlsState; in getCustomTlsState()
111 private static native void nativeSetCustomTls(long nativeDsPtr, Object tlsState); in nativeSetCustomTls() argument
/frameworks/base/core/jni/
Dandroid_tracing_PerfettoDataSource.cpp158 void PerfettoDataSource::SetCustomTls(jobject tlsState) { in SetCustomTls() argument
167 tls_state->jobj = tlsState; in SetCustomTls()
404 void nativeSetCustomTls(JNIEnv* env, jclass /* clazz */, jlong dataSourcePtr, jobject tlsState) { in nativeSetCustomTls() argument
406 tlsState = env->NewGlobalRef(tlsState); in nativeSetCustomTls()
407 return datasource->SetCustomTls(tlsState); in nativeSetCustomTls()
/frameworks/base/core/java/com/android/internal/protolog/
DPerfettoProtoLogImpl.java340 final ProtoLogDataSource.TlsState tlsState = ctx.getCustomTlsState(); in doLogToProto()
341 final LogLevel logFrom = tlsState.getLogFromLevel(groupName); in doLogToProto()
362 if (tlsState.getShouldCollectStacktrace(groupName)) { in doLogToProto()
417 if (tlsState.getShouldCollectStacktrace(groupName)) { in doLogToProto()
/frameworks/base/core/tests/coretests/src/android/tracing/perfetto/
DDataSourceTest.java558 final TestDataSource.TestTlsState tlsState = new TestDataSource.TestTlsState(); in canUseDataSourceInstanceToCreateTlsState()
563 tlsState.testStateValue = dataSourceInstance.testObject.hashCode(); in canUseDataSourceInstanceToCreateTlsState()
567 return tlsState; in canUseDataSourceInstanceToCreateTlsState()