Home
last modified time | relevance | path

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

12345678910>>...20

/system/chre/build/sys_support/qcom/
Dchre.scons68 SRCPATH = "${BUILD_ROOT}/chre/chre/src"
71 LIB_ROOT = "${BUILD_ROOT}/chre/chre"
99 env['SKEL_DEP'] += ' ${BUILD_ROOT}/chre/chre_drv_loc/build/${BUILDPATH}/chre_drv_loc.so '
100 env.Depends(target_so,'${BUILD_ROOT}/chre/chre_drv_loc/build/${BUILDPATH}/chre_drv_loc.so')
103 env['SKEL_DEP'] += ' ${BUILD_ROOT}/chre/chre_drv_wifi/build/${BUILDPATH}/chre_drv_wifi.so ' \
104 ' ${BUILD_ROOT}/chre/lowi_client/build/${BUILDPATH}/lowi_client.so '
105 env.Depends(target_so,'${BUILD_ROOT}/chre/chre_drv_wifi/build/${BUILDPATH}/chre_drv_wifi.so')
106 env.Depends(target_so,'${BUILD_ROOT}/chre/lowi_client/build/${BUILDPATH}/lowi_client.so')
109 env['SKEL_DEP'] += ' ${BUILD_ROOT}/chre/chre_drv_modem/build/${BUILDPATH}/chre_drv_modem.so '
110 env.Depends(target_so,'${BUILD_ROOT}/chre/chre_drv_modem/build/${BUILDPATH}/chre_drv_modem.so')
[all …]
/system/chre/platform/linux/
Dinit.cc37 using chre::EventLoopManagerSingleton;
38 using chre::Milliseconds;
82 chre::PlatformLogSingleton::init(); in main()
87 auto audioSource = chre::MakeUnique<chre::AudioSource>( in main()
90 chre::PlatformAudio::addAudioSource(audioSource); in main()
98 chre::init(); in main()
109 chre::loadStaticNanoapps(); in main()
113 chre::DynamicVector<chre::UniquePtr<chre::Nanoapp>> dynamicNanoapps; in main()
115 dynamicNanoapps.push_back(chre::MakeUnique<chre::Nanoapp>()); in main()
125 chre::deinit(); in main()
[all …]
/system/chre/platform/shared/
Dchre_api_gnss.cc24 using chre::EventLoopManager;
25 using chre::EventLoopManagerSingleton;
26 using chre::Milliseconds;
27 using chre::NanoappPermissions;
31 return chre::EventLoopManagerSingleton::get() in chreGnssGetCapabilities()
43 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreGnssLocationSessionStartAsync()
45 chre::EventLoopManagerSingleton::get() in chreGnssLocationSessionStartAsync()
57 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreGnssLocationSessionStopAsync()
59 chre::EventLoopManagerSingleton::get() in chreGnssLocationSessionStopAsync()
71 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreGnssMeasurementSessionStartAsync()
[all …]
Dchre_api_re.cc26 using chre::EventLoopManager;
27 using chre::EventLoopManagerSingleton;
30 return chre::SystemTime::getMonotonicTime().toRawNanoseconds(); in chreGetTime()
34 return chre::SystemTime::getEstimatedHostTimeOffset(); in chreGetEstimatedHostTimeOffset()
38 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreGetAppId()
43 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreGetInstanceId()
49 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreTimerSet()
53 .setNanoappTimer(nanoapp, chre::Nanoseconds(duration), cookie, oneShot); in chreTimerSet()
57 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreTimerCancel()
65 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreHeapAlloc()
[all …]
Dchre_api_wwan.cc23 using chre::EventLoopManager;
24 using chre::EventLoopManagerSingleton;
25 using chre::NanoappPermissions;
29 return chre::EventLoopManagerSingleton::get() in chreWwanGetCapabilities()
39 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreWwanGetCellInfoAsync()
41 chre::EventLoopManagerSingleton::get() in chreWwanGetCellInfoAsync()
Dchre_api_wifi.cc23 using chre::EventLoopManager;
24 using chre::EventLoopManagerSingleton;
25 using chre::NanoappPermissions;
29 return chre::EventLoopManagerSingleton::get() in chreWifiGetCapabilities()
40 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreWifiConfigureScanMonitorAsync()
53 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreWifiRequestScanAsync()
65 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreWifiRequestRangingAsync()
Dchre_api_sensor.cc24 using chre::EventLoopManager;
25 using chre::EventLoopManagerSingleton;
26 using chre::Nanoseconds;
27 using chre::SensorMode;
28 using chre::SensorRequest;
30 using chre::getSensorModeFromEnum;
39 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreSensorFind()
56 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreGetSensorInfo()
95 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreSensorConfigure()
114 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreSensorConfigureBiasEvents()
[all …]
Dchre_api_user_settings.cc23 using chre::EventLoopManager;
24 using chre::Nanoapp;
25 using chre::Setting;
26 using chre::SettingState;
29 return chre::getSettingStateAsInt8(setting); in chreUserSettingGetState()
Ddlfcn.cc24 return chre::NanoappLoader::create(elfBinary, mapIntoTcm); in dlopenbuf()
32 resolvedSymbol = chre::NanoappLoader::findExportedSymbol(symbol); in dlsym()
34 auto *loader = reinterpret_cast<chre::NanoappLoader *>(handle); in dlsym()
51 chre::NanoappLoader::destroy(static_cast<chre::NanoappLoader *>(handle)); in dlclose()
/system/chre/chpp/test/
Dwwan_convert_test.cpp91 void compareCellInfo(const chreWwanCellInfo *chre, in compareCellInfo() argument
98 EXPECT_EQ(chpp->timeStamp, chre->timeStamp); in compareCellInfo()
99 EXPECT_EQ(chpp->cellInfoType, chre->cellInfoType); in compareCellInfo()
100 EXPECT_EQ(chpp->timeStampType, chre->timeStampType); in compareCellInfo()
101 EXPECT_EQ(chpp->registered, chre->registered); in compareCellInfo()
106 chre->CellInfo.lte.cellIdentityLte.mcc); in compareCellInfo()
108 chre->CellInfo.lte.cellIdentityLte.mnc); in compareCellInfo()
110 chre->CellInfo.lte.cellIdentityLte.ci); in compareCellInfo()
112 chre->CellInfo.lte.cellIdentityLte.pci); in compareCellInfo()
114 chre->CellInfo.lte.cellIdentityLte.tac); in compareCellInfo()
[all …]
/system/chre/platform/android/
Dinit.cc27 using android::chre::HostProtocolHost;
28 using chre::EventLoopManagerSingleton;
37 if (!chre::handleMessageFromHost(data, length)) { in onMessageReceivedFromClient()
47 chre::init(); in main()
48 chre::loadStaticNanoapps(); in main()
51 chre::SocketServerSingleton::init(); in main()
55 chre::SocketServerSingleton::get()->run("chre", true, in main()
62 chre::deinit(); in main()
/system/chre/platform/slpi/
Dinit.cc51 using chre::EventLoop;
52 using chre::EventLoopManagerSingleton;
53 using chre::LockGuard;
54 using chre::Mutex;
55 using chre::UniquePtr;
74 chre::isSlpiUimgSupported() ? QURT_THREAD_ATTR_TCB_PARTITION_TCM
122 chre::openQsh(); in chreThreadEntry()
126 chre::loadStaticNanoapps(); in chreThreadEntry()
129 chre::deinit(); in chreThreadEntry()
132 chre::closeQsh(); 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/chpp/common/
Dwifi_utils.c33 bool chppCheckWifiScanEventNotification(const struct chreWifiScanEvent *chre) { in chppCheckWifiScanEventNotification() argument
36 if (chre->eventIndex != gExpectedIndex) { in chppCheckWifiScanEventNotification()
37 CHPP_LOGE("Unexpected scan index %" PRIu8 " exp %" PRIu8, chre->eventIndex, in chppCheckWifiScanEventNotification()
41 if (chre->eventIndex == 0) { in chppCheckWifiScanEventNotification()
49 gResultTotal = chre->resultTotal; in chppCheckWifiScanEventNotification()
52 if (gResultTotal != chre->resultTotal) { in chppCheckWifiScanEventNotification()
54 chre->resultTotal, gResultTotal); in chppCheckWifiScanEventNotification()
58 gResultAcc += chre->resultCount; in chppCheckWifiScanEventNotification()
/system/chre/host/common/include/chre_host/
Dhost_protocol_host.h31 namespace chre {
55 const ::chre::fbs::NanoappMessageT & /*message*/){}; in handleNanoappMessage()
58 const ::chre::fbs::HubInfoResponseT & /*response*/){}; in handleHubInfoResponse()
61 const ::chre::fbs::NanoappListResponseT & /*response*/){}; in handleNanoappListResponse()
64 const ::chre::fbs::LoadNanoappResponseT & /*response*/){}; in handleLoadNanoappResponse()
67 const ::chre::fbs::UnloadNanoappResponseT & /*response*/){}; in handleUnloadNanoappResponse()
70 const ::chre::fbs::DebugDumpDataT & /*data*/){}; in handleDebugDumpData()
73 const ::chre::fbs::DebugDumpResponseT & /*response*/){}; in handleDebugDumpResponse()
76 const ::chre::fbs::SelfTestResponseT & /*response*/){}; in handleSelfTestResponse()
83 class HostProtocolHost : public ::chre::HostProtocolCommon {
[all …]
/system/chre/host/common/include/chre_host/generated/
Dhost_messages_generated.h9 namespace chre {
270 template<> struct ChreMessageTraits<chre::fbs::NanoappMessage> {
274 template<> struct ChreMessageTraits<chre::fbs::HubInfoRequest> {
278 template<> struct ChreMessageTraits<chre::fbs::HubInfoResponse> {
282 template<> struct ChreMessageTraits<chre::fbs::NanoappListRequest> {
286 template<> struct ChreMessageTraits<chre::fbs::NanoappListResponse> {
290 template<> struct ChreMessageTraits<chre::fbs::LoadNanoappRequest> {
294 template<> struct ChreMessageTraits<chre::fbs::LoadNanoappResponse> {
298 template<> struct ChreMessageTraits<chre::fbs::UnloadNanoappRequest> {
302 template<> struct ChreMessageTraits<chre::fbs::UnloadNanoappResponse> {
[all …]
/system/chre/platform/shared/include/chre/platform/shared/generated/
Dhost_messages_generated.h9 namespace chre {
247 template<> struct ChreMessageTraits<chre::fbs::NanoappMessage> {
251 template<> struct ChreMessageTraits<chre::fbs::HubInfoRequest> {
255 template<> struct ChreMessageTraits<chre::fbs::HubInfoResponse> {
259 template<> struct ChreMessageTraits<chre::fbs::NanoappListRequest> {
263 template<> struct ChreMessageTraits<chre::fbs::NanoappListResponse> {
267 template<> struct ChreMessageTraits<chre::fbs::LoadNanoappRequest> {
271 template<> struct ChreMessageTraits<chre::fbs::LoadNanoappResponse> {
275 template<> struct ChreMessageTraits<chre::fbs::UnloadNanoappRequest> {
279 template<> struct ChreMessageTraits<chre::fbs::UnloadNanoappResponse> {
[all …]
/system/chre/platform/freertos/
Dinit.cc32 namespace chre { namespace
63 chre::init(); in chreThreadEntry()
64 chre::EventLoopManagerSingleton::get()->lateInit(); in chreThreadEntry()
65 chre::loadStaticNanoapps(); in chreThreadEntry()
67 chre::EventLoopManagerSingleton::get()->getEventLoop().run(); in chreThreadEntry()
70 chre::deinit(); in chreThreadEntry()
81 chre::LogBufferManagerSingleton::get()->startSendLogsToHostLoop(); in chreFlushLogsToHostThreadEntry()
95 chre::LogBufferManagerSingleton::init(gPrimaryLogBufferData, in init()
121 chre::EventLoopManagerSingleton::get()->getEventLoop().stop(); in deinit()
Dmemory_manager.cc21 namespace chre { namespace
25 return chre::memoryAlloc(bytes); in doAlloc()
27 return chre::memoryAllocDram(bytes); in doAlloc()
33 chre::memoryFree(ptr); in doFree()
35 chre::memoryFreeDram(ptr); in doFree()
/system/chre/pal/tests/src/
Dwifi_pal_impl_test.cc42 using ::chre::Nanoseconds;
43 using ::chre::Seconds;
44 using ::chre::SystemTime;
94 ASSERT_TRUE(api_->open(&chre::gChrePalSystemApi, &kCallbacks)); in SetUp()
121 chre::LockGuard<chre::Mutex> lock(mutex_); in scanMonitorStatusChangeCallback()
134 chre::LockGuard<chre::Mutex> lock(mutex_); in scanResponseCallback()
144 chre::LockGuard<chre::Mutex> lock(mutex_); in scanEventCallback()
164 chre::kOneMillisecondInNanoseconds)); in validateWifiScanEvent()
171 chre::Nanoseconds timeoutNs) { in waitForAsyncResponseAssertSuccess()
193 chre::LockGuard<chre::Mutex> lock(mutex_); in TEST_F()
[all …]
Dgnss_pal_impl_test.cc44 using ::chre::Nanoseconds;
45 using ::chre::Seconds;
46 using ::chre::SystemTime;
160 ASSERT_TRUE(api_->open(&chre::gChrePalSystemApi, &kCallbacks)); in SetUp()
189 chre::LockGuard<chre::Mutex> lock(mutex_); in locationStatusChangeCallback()
197 chre::LockGuard<chre::Mutex> lock(mutex_); in locationEventCallback()
214 chre::LockGuard<chre::Mutex> lock(mutex_); in measurementStatusChangeCallback()
222 chre::LockGuard<chre::Mutex> lock(mutex_); in measurementEventCallback()
232 chre::Nanoseconds timeoutNs) { in waitForAsyncResponseAssertSuccess()
253 chre::LockGuard<chre::Mutex> lock(mutex_); in TEST_P()
[all …]
/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()
47 chre::pop_heap(v, comp); in TEST()
59 chre::push_heap(v, comp); in TEST()
60 EXPECT_DEATH(chre::remove_heap(v, 1, comp), ""); in TEST()
80 chre::push_heap(v, comp); in TEST()
87 chre::remove_heap(v, std::rand() % s, comp); in TEST()
[all …]
/system/chre/pal/tests/include/
Dwifi_pal_impl_test.h65 void waitForAsyncResponseAssertSuccess(chre::Nanoseconds timeoutNs);
80 chre::DynamicVector<chreWifiScanEvent *> scanEventList_;
83 chre::Optional<chreWifiScanParams> scanParams_;
92 chre::Mutex mutex_;
93 chre::ConditionVariable condVar_;
Dgnss_pal_impl_test.h57 void waitForAsyncResponseAssertSuccess(chre::Nanoseconds timeoutNs);
73 chre::FixedSizeVector<chreGnssLocationEvent *, kEventArraySize>
75 chre::FixedSizeVector<chreGnssDataEvent *, kEventArraySize>
79 chre::Mutex mutex_;
80 chre::ConditionVariable condVar_;
/system/chre/host/common/audio_stress_test/
Daudio_stress_test.cc39 using android::chre::FragmentedLoadTransaction;
40 using android::chre::getStringFromByteVector;
41 using android::chre::HostProtocolHost;
42 using android::chre::IChreMessageHandlers;
43 using android::chre::SocketClient;
48 namespace fbs = ::chre::fbs;
126 chre::kAudioStressTestAppId, 1 /* appVersion */); in main()

12345678910>>...20