Home
last modified time | relevance | path

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

12345678910>>...13

/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;
77 chre::PlatformLogSingleton::init(); in main()
82 auto audioSource = chre::MakeUnique<chre::AudioSource>( in main()
85 chre::PlatformAudio::addAudioSource(audioSource); in main()
93 chre::init(); in main()
104 chre::loadStaticNanoapps(); in main()
108 chre::DynamicVector<chre::UniquePtr<chre::Nanoapp>> dynamicNanoapps; in main()
110 dynamicNanoapps.push_back(chre::MakeUnique<chre::Nanoapp>()); in main()
120 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_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 .setNanoappTimer(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_gnss.cc23 using chre::EventLoopManager;
24 using chre::EventLoopManagerSingleton;
25 using chre::Milliseconds;
29 return chre::EventLoopManagerSingleton::get()->getGnssManager() in chreGnssGetCapabilities()
40 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreGnssLocationSessionStartAsync()
41 return chre::EventLoopManagerSingleton::get()->getGnssManager() in chreGnssLocationSessionStartAsync()
52 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreGnssLocationSessionStopAsync()
53 return chre::EventLoopManagerSingleton::get()->getGnssManager() in chreGnssLocationSessionStopAsync()
63 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreGnssMeasurementSessionStartAsync()
64 return chre::EventLoopManagerSingleton::get()->getGnssManager() in chreGnssMeasurementSessionStartAsync()
[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;
96 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreSensorFindDefault()
118 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreGetSensorInfo()
[all …]
Dchre_api_wwan.cc22 using chre::EventLoopManager;
23 using chre::EventLoopManagerSingleton;
27 return chre::EventLoopManagerSingleton::get()->getWwanRequestManager() in chreWwanGetCapabilities()
36 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreWwanGetCellInfoAsync()
37 return chre::EventLoopManagerSingleton::get()->getWwanRequestManager() in chreWwanGetCellInfoAsync()
Dchre_api_wifi.cc22 using chre::EventLoopManager;
23 using chre::EventLoopManagerSingleton;
27 return chre::EventLoopManagerSingleton::get()->getWifiRequestManager() in chreWifiGetCapabilities()
37 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreWifiConfigureScanMonitorAsync()
48 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreWifiRequestScanAsync()
60 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreWifiRequestRangingAsync()
Dchre_api_core.cc29 using chre::EventLoop;
30 using chre::EventLoopManager;
31 using chre::EventLoopManagerSingleton;
32 using chre::Nanoapp;
113 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreConfigureNanoappInfoEvents()
118 chre::Nanoapp *nanoapp = EventLoopManager::validateChreApiCall(__func__); in chreConfigureHostSleepStateEvents()
/system/chre/platform/slpi/
Dinit.cc44 using chre::EventLoop;
45 using chre::EventLoopManagerSingleton;
46 using chre::LockGuard;
47 using chre::Mutex;
48 using chre::UniquePtr;
66 constexpr unsigned char kTcbPartition = chre::isSlpiUimgSupported() ?
98 UniquePtr<char> dump = chre::EventLoopManagerSingleton::get()->debugDump(); in performDebugDumpCallback()
99 chre::commitDebugDump(*handle, dump.get(), true /*done*/); in performDebugDumpCallback()
106 chre::EventLoopManagerSingleton::get()->deferCallback( in onDebugDumpRequested()
107 chre::SystemCallbackType::PerformDebugDump, &debugDumpHandle, in onDebugDumpRequested()
[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/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( in main()
62 chre::deinit(); in main()
/system/chre/pal/tests/src/
Dwifi_pal_impl_test.cc42 using ::chre::Nanoseconds;
43 using ::chre::Seconds;
44 using ::chre::SystemTime;
82 char ssidBuffer[chre::kMaxSsidStrLen]; in logChreWifiResult()
85 } else if (chre::parseSsidToStr(ssidBuffer, sizeof(ssidBuffer), result.ssid, in logChreWifiResult()
92 char bssidBuffer[chre::kBssidStrLen]; in logChreWifiResult()
93 if (chre::parseBssidToStr(result.bssid, bssidBuffer, sizeof(bssidBuffer))) { in logChreWifiResult()
102 LOGI(" band: %s (%" PRIu8 ")", chre::parseChreWifiBand(result.band), in logChreWifiResult()
125 ASSERT_TRUE(api_->open(&chre::gChrePalSystemApi, &kCallbacks)); in SetUp()
150 chre::LockGuard<chre::Mutex> lock(mutex_); in scanMonitorStatusChangeCallback()
[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()
187 chre::LockGuard<chre::Mutex> lock(mutex_); in locationStatusChangeCallback()
195 chre::LockGuard<chre::Mutex> lock(mutex_); in locationEventCallback()
212 chre::LockGuard<chre::Mutex> lock(mutex_); in measurementStatusChangeCallback()
220 chre::LockGuard<chre::Mutex> lock(mutex_); in measurementEventCallback()
230 chre::Nanoseconds timeoutNs) { in waitForAsyncResponseAssertSuccess()
251 chre::LockGuard<chre::Mutex> lock(mutex_); in TEST_F()
[all …]
/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()
80 class HostProtocolHost : public ::chre::HostProtocolCommon {
175 ::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 …]
/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/pal/tests/include/
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_;
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_;
/system/chre/
DAndroid.mk31 LOCAL_MODULE := chre
59 system/chre/external/flatbuffers/include \
60 system/chre/host/common/include \
61 system/chre/host/msm/daemon \
62 system/chre/platform/shared/include \
63 system/chre/platform/slpi/include \
64 system/chre/util/include \
/system/chre/host/common/audio_stress_test/
Daudio_stress_test.cc38 using android::chre::getStringFromByteVector;
39 using android::chre::FragmentedLoadTransaction;
40 using android::chre::HostProtocolHost;
41 using android::chre::IChreMessageHandlers;
42 using android::chre::SocketClient;
47 namespace fbs = ::chre::fbs;
121 chre::kAudioStressTestAppId, in main()
/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()
280 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;

12345678910>>...13