/system/chre/build/sys_support/qcom/ |
D | chre.scons | 68 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/ |
D | init.cc | 37 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/ |
D | chre_api_gnss.cc | 24 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 …]
|
D | chre_api_re.cc | 26 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 …]
|
D | chre_api_wwan.cc | 23 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()
|
D | chre_api_wifi.cc | 23 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()
|
D | chre_api_sensor.cc | 24 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 …]
|
D | chre_api_user_settings.cc | 23 using chre::EventLoopManager; 24 using chre::Nanoapp; 25 using chre::Setting; 26 using chre::SettingState; 29 return chre::getSettingStateAsInt8(setting); in chreUserSettingGetState()
|
D | dlfcn.cc | 24 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/ |
D | wwan_convert_test.cpp | 91 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/ |
D | init.cc | 27 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/ |
D | init.cc | 51 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 …]
|
D | memory_manager.cc | 22 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/ |
D | wifi_utils.c | 33 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/ |
D | host_protocol_host.h | 31 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/ |
D | host_messages_generated.h | 9 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/ |
D | host_messages_generated.h | 9 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/ |
D | init.cc | 32 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()
|
D | memory_manager.cc | 21 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/ |
D | wifi_pal_impl_test.cc | 42 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 …]
|
D | gnss_pal_impl_test.cc | 44 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/ |
D | heap_test.cc | 7 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/ |
D | wifi_pal_impl_test.h | 65 void waitForAsyncResponseAssertSuccess(chre::Nanoseconds timeoutNs); 80 chre::DynamicVector<chreWifiScanEvent *> scanEventList_; 83 chre::Optional<chreWifiScanParams> scanParams_; 92 chre::Mutex mutex_; 93 chre::ConditionVariable condVar_;
|
D | gnss_pal_impl_test.h | 57 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/ |
D | audio_stress_test.cc | 39 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()
|