Home
last modified time | relevance | path

Searched refs:published_data (Results 1 – 8 of 8) sorted by relevance

/packages/services/Car/tests/CarTelemetryApp/res/raw/
Dconn_sessions.lua2 function onConnectivityDataWithSession(published_data, state)
9 res['sessionId'] = published_data['session.sessionId']
13 res['sessionState'] = published_data['session.sessionState']
15 res['createdAtSinceBootMillis'] = published_data['session.createdAtSinceBootMillis']
17 res['createdAtMillis'] = published_data['session.createdAtMillis']
19 res['bootReason'] = published_data['session.bootReason']
20 res['bootCount'] = published_data['session.bootCount']
23 if published_data['conn.packages'] == nil then
40 for i, ps in ipairs(published_data['conn.packages']) do
46 rx[ps] = rx[ps] + published_data['conn.rxBytes'][i]
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/res/raw/
Dtelemetry_driving_sessions_script.lua5 function onWifiStatsForDrivingSessions(published_data, state)
10 local session_id = published_data['session.sessionId']
11 for i = 1, published_data['conn.size'] do
12 if string.match(published_data['conn.packages'][i], KITCHENSINK_PROCESS_NAME) then
13 …local key = 'kitchensink_traffic_in_session_' .. session_id .. '_' .. published_data['session.crea…
14 state[key] = published_data['conn.rxBytes'][i] + published_data['conn.txBytes'][i]
Dtelemetry_stats_and_connectivity_script.lua23 function onProcessCpuTime(published_data, state)
24 local processNameArray = published_data['stats.process_name']
31 for key, valueArray in pairs(published_data) do
42 function onProcessMemory(published_data, state)
43 local processNameArray = published_data['stats.process_name']
50 for key, valueArray in pairs(published_data) do
61 function onWifiNetstats(published_data, state)
/packages/services/Car/tests/CarTelemetryApp/
DREADME.md52 function onActivityForegroundStateChanged(published_data, state)
55 for k, v in pairs(published_data) do
87 function onProcessMemory(published_data, state)
89 result.page_fault_avg = calculateAverage(published_data.page_fault)
91 + "published_data.page_major_fault)
93 + "published_data.oom_adj_score)
95 + "published_data.rss_in_bytes)
97 + "published_data.swap_in_bytes)
99 + "published_data.cache_in_bytes)
/packages/services/Car/tools/telemetry/lua-interpreter/
Dapp.py79 published_data = flask.request.form['published-data']
84 published_data.encode(), saved_state.encode()))
101 published_data=published_data,
Dlua_engine.cc79 bool ConvertJsonToLuaTable(lua_State* lua_state, std::string published_data, in ConvertJsonToLuaTable() argument
100 lua_pushstring(lua_state, published_data.c_str()); in ConvertJsonToLuaTable()
207 std::string published_data, in ExecuteScript() argument
235 if (ConvertJsonToLuaTable(lua_state_, published_data, saved_state, in ExecuteScript()
483 char* published_data, char* saved_state) { in ExecuteScript() argument
486 l->ExecuteScript(script, function_name, published_data, saved_state); in ExecuteScript()
Dlua_engine.h46 std::string published_data,
182 char* published_data, char* saved_state);
/packages/services/Car/tools/telemetry/lua-interpreter/data/
DREADME.md1 This directory contains examples of published_data for different publishers. The various JSON files…
3 To add a button for a new type of published_data, simply drop a JSON file under this directory and …