Home
last modified time | relevance | path

Searched refs:chre (Results 1 – 25 of 286) sorted by relevance

12345678910>>...12

/system/chre/platform/linux/
Dinit.cc35 using chre::EventLoopManagerSingleton;
36 using chre::Milliseconds;
75 chre::PlatformLogSingleton::init(); in main()
80 auto audioSource = chre::MakeUnique<chre::AudioSource>( in main()
83 chre::PlatformAudio::addAudioSource(audioSource); in main()
91 chre::init(); in main()
100 chre::loadStaticNanoapps(); in main()
104 chre::DynamicVector<chre::UniquePtr<chre::Nanoapp>> dynamicNanoapps; in main()
106 dynamicNanoapps.push_back(chre::MakeUnique<chre::Nanoapp>()); in main()
116 chre::deinit(); in main()
[all …]
Dmemory_manager.cc21 namespace chre { namespace
24 return chre::memoryAlloc(bytes); in doAlloc()
28 chre::memoryFree(ptr); in doFree()
/system/chre/platform/shared/
Dchre_api_gnss.cc23 using chre::EventLoopManager;
24 using chre::EventLoopManagerSingleton;
25 using chre::Milliseconds;
28 return chre::EventLoopManagerSingleton::get()->getGnssManager() in chreGnssGetCapabilities()
35 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreGnssLocationSessionStartAsync()
36 return chre::EventLoopManagerSingleton::get()->getGnssManager() in chreGnssLocationSessionStartAsync()
43 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreGnssLocationSessionStopAsync()
44 return chre::EventLoopManagerSingleton::get()->getGnssManager() in chreGnssLocationSessionStopAsync()
50 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreGnssMeasurementSessionStartAsync()
51 return chre::EventLoopManagerSingleton::get()->getGnssManager() in chreGnssMeasurementSessionStartAsync()
[all …]
Dchre_api_re.cc25 using chre::EventLoopManager;
26 using chre::EventLoopManagerSingleton;
29 return chre::SystemTime::getMonotonicTime().toRawNanoseconds(); in chreGetTime()
33 return chre::SystemTime::getEstimatedHostTimeOffset(); in chreGetEstimatedHostTimeOffset()
37 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreGetAppId()
42 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreGetInstanceId()
48 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreTimerSet()
50 .setTimer(nanoapp, chre::Nanoseconds(duration), cookie, oneShot); in chreTimerSet()
54 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreTimerCancel()
60 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreHeapAlloc()
[all …]
Dchre_api_sensor.cc23 using chre::EventLoopManager;
24 using chre::EventLoopManagerSingleton;
25 using chre::Nanoseconds;
26 using chre::SensorMode;
27 using chre::SensorRequest;
28 using chre::SensorType;
30 using chre::getSensorModeFromEnum;
31 using chre::getSensorTypeFromUnsignedInt;
44 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreGetSensorInfo()
69 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreSensorConfigure()
Dchre_api_wwan.cc22 using chre::EventLoopManager;
23 using chre::EventLoopManagerSingleton;
26 return chre::EventLoopManagerSingleton::get()->getWwanRequestManager() in chreWwanGetCapabilities()
31 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreWwanGetCellInfoAsync()
32 return chre::EventLoopManagerSingleton::get()->getWwanRequestManager() in chreWwanGetCellInfoAsync()
Dchre_api_wifi.cc22 using chre::EventLoopManager;
23 using chre::EventLoopManagerSingleton;
26 return chre::EventLoopManagerSingleton::get()->getWifiRequestManager() in chreWifiGetCapabilities()
32 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreWifiConfigureScanMonitorAsync()
39 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreWifiRequestScanAsync()
47 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreWifiRequestRangingAsync()
Dchre_api_version.cc27 return chreGetApiVersion() | chre::kPatchVersion; in chreGetVersion()
31 return chre::createPlatformIdFromVendorPlatform(chre::kVendorId, in chreGetPlatformId()
32 chre::kPlatformId); in chreGetPlatformId()
Dchre_api_core.cc29 using chre::EventLoop;
30 using chre::EventLoopManager;
31 using chre::EventLoopManagerSingleton;
32 using chre::Nanoapp;
116 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreConfigureNanoappInfoEvents()
121 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreConfigureHostSleepStateEvents()
Dchre_api_audio.cc26 using chre::EventLoopManager;
27 using chre::EventLoopManagerSingleton;
28 using chre::Nanoapp;
/system/chre/platform/android/
Dinit.cc28 using android::chre::HostProtocolHost;
29 using chre::EventLoopManagerSingleton;
38 if (!chre::handleMessageFromHost(data, length)) { in onMessageReceivedFromClient()
48 chre::init(); in main()
49 chre::loadStaticNanoapps(); in main()
50 chre::loadPreloadedNanoapps(); in main()
53 chre::SocketServerSingleton::init(); in main()
57 chre::SocketServerSingleton::get()->run( in main()
64 chre::deinit(); in main()
/system/chre/platform/slpi/
Dinit.cc46 using chre::EventLoop;
47 using chre::EventLoopManagerSingleton;
48 using chre::LockGuard;
49 using chre::Mutex;
50 using chre::UniquePtr;
68 constexpr unsigned char kTcbPartition = chre::isSlpiUimgSupported() ?
100 UniquePtr<char> dump = chre::EventLoopManagerSingleton::get()->debugDump(); in performDebugDumpCallback()
108 chre::EventLoopManagerSingleton::get()->deferCallback( in onDebugDumpRequested()
109 chre::SystemCallbackType::PerformDebugDump, &debugDumpHandle, in onDebugDumpRequested()
120 chre::loadStaticNanoapps(); in chreThreadEntry()
[all …]
Dmemory_manager.cc22 namespace chre { namespace
26 return chre::memoryAlloc(bytes); in doAlloc()
28 return chre::memoryAllocBigImage(bytes); in doAlloc()
34 chre::memoryFree(ptr); in doFree()
36 chre::memoryFreeBigImage(ptr); in doFree()
/system/chre/host/common/include/chre_host/
Dhost_protocol_host.h31 namespace chre {
52 const ::chre::fbs::NanoappMessageT& /*message*/) {}; in handleNanoappMessage()
55 const ::chre::fbs::HubInfoResponseT& /*response*/) {}; in handleHubInfoResponse()
58 const ::chre::fbs::NanoappListResponseT& /*response*/) {}; in handleNanoappListResponse()
61 const ::chre::fbs::LoadNanoappResponseT& /*response*/) {}; in handleLoadNanoappResponse()
64 const ::chre::fbs::UnloadNanoappResponseT& /*response*/) {}; in handleUnloadNanoappResponse()
67 const ::chre::fbs::DebugDumpDataT& /*data*/) {}; in handleDebugDumpData()
70 const ::chre::fbs::DebugDumpResponseT& /*response*/) {}; in handleDebugDumpResponse()
77 class HostProtocolHost : public ::chre::HostProtocolCommon {
172 ::chre::fbs::ChreMessage *messageType);
/system/chre/util/tests/
Dheap_test.cc7 using chre::DynamicVector;
8 using chre::FixedSizeVector;
13 EXPECT_DEATH(chre::push_heap(v, comp), ""); in TEST()
19 EXPECT_DEATH(chre::pop_heap(v, comp), ""); in TEST()
40 chre::push_heap(v, comp); in TEST()
46 chre::pop_heap(v, comp); in TEST()
58 chre::push_heap(v, comp); in TEST()
59 EXPECT_DEATH(chre::remove_heap(v, 1, comp), ""); in TEST()
79 chre::push_heap(v, comp); in TEST()
85 chre::remove_heap(v, std::rand() % s, comp); in TEST()
[all …]
Dtime_test.cc21 using chre::Seconds;
22 using chre::Milliseconds;
23 using chre::Microseconds;
24 using chre::Nanoseconds;
25 using chre::kOneSecondInNanoseconds;
26 using chre::kOneMillisecondInNanoseconds;
27 using chre::kOneMicrosecondInNanoseconds;
28 using chre::kOneMillisecondInMicroseconds;
Dblocking_queue_test.cc22 using chre::FixedSizeBlockingQueue;
23 using chre::MakeUnique;
24 using chre::UniquePtr;
/system/chre/host/hal_generic/
Dgeneric_context_hub.h39 using ::android::chre::FragmentedLoadRequest;
40 using ::android::chre::FragmentedLoadTransaction;
70 ::android::chre::SocketClient mClient;
74 class SocketCallbacks : public ::android::chre::SocketClient::ICallbacks,
75 public ::android::chre::IChreMessageHandlers {
83 const ::chre::fbs::NanoappMessageT& message) override;
86 const ::chre::fbs::HubInfoResponseT& response) override;
89 const ::chre::fbs::NanoappListResponseT& response) override;
92 const ::chre::fbs::LoadNanoappResponseT& response) override;
95 const ::chre::fbs::UnloadNanoappResponseT& response) override;
[all …]
/system/chre/apps/wifi_world/
Dwifi_world.cc25 using chre::kOneMillisecondInNanoseconds;
26 using chre::Nanoseconds;
27 using chre::Seconds;
34 namespace chre { namespace
85 char ssidBuffer[chre::kMaxSsidStrLen]; in logChreWifiResult()
88 } else if (chre::parseSsidToStr(ssidBuffer, sizeof(ssidBuffer), in logChreWifiResult()
96 char bssidBuffer[chre::kBssidStrLen]; in logChreWifiResult()
97 if (chre::parseBssidToStr(result.bssid, bssidBuffer, sizeof(bssidBuffer))) { in logChreWifiResult()
107 chre::parseChreWifiBand(result.band), result.band); in logChreWifiResult()
300 CHRE_STATIC_NANOAPP_INIT(WifiWorld, chre::kWifiWorldAppId, 0);
/system/chre/ash/platform/slpi/smgr/
Dash.cc33 using chre::getSmrHelper;
34 using chre::getSensorServiceSmrClientHandle;
35 using chre::MakeUnique;
36 using chre::MakeUniqueZeroFill;
37 using chre::memoryAlloc;
38 using chre::memoryFree;
39 using chre::UniquePtr;
/system/chre/platform/android/include/chre/platform/android/
Dhost_link.h25 namespace chre {
28 typedef chre::Singleton<::android::chre::SocketServer> SocketServerSingleton;
/system/chre/platform/slpi/smgr/tests/
Dplatform_sensor_util_test.cc21 using chre::intervalToSmgrSamplingRate;
22 using chre::intervalToSmgrQ16ReportRate;
23 using chre::Milliseconds;
24 using chre::Nanoseconds;
25 using chre::Seconds;
/system/chre/
Dload_android_sim.sh19 adb push out/google_arm64_android_debug/libchre /system/bin/chre
20 adb push variant/android/chre-stub /vendor/bin/chre
/system/chre/host/common/test/
Dchre_test_client.cc39 using android::chre::getStringFromByteVector;
40 using android::chre::FragmentedLoadTransaction;
41 using android::chre::HostProtocolHost;
42 using android::chre::IChreMessageHandlers;
43 using android::chre::SocketClient;
48 namespace fbs = ::chre::fbs;
149 builder, chre::kMessageWorldAppId, 1234 /* messageType */, in sendMessageToNanoapp()
216 sendUnloadNanoappRequest(client, chre::kSpammerAppId); in main()
/system/chre/apps/audio_world/
Daudio_world.cc30 namespace chre { namespace
34 using chre::Milliseconds;
35 using chre::Nanoseconds;
128 chre::getChreAudioFormatString(audioSource.format)); in nanoappStart()
176 CHRE_STATIC_NANOAPP_INIT(AudioWorld, chre::kAudioWorldAppId, 0);

12345678910>>...12