Home
last modified time | relevance | path

Searched refs:BleRequest (Results 1 – 7 of 7) sorted by relevance

/system/chre/core/
Dble_request.cc37 BleRequest::BleRequest() : BleRequest(0, false) {} in BleRequest() function in chre::BleRequest
39 BleRequest::BleRequest(uint16_t instanceId, bool enable) in BleRequest() function in chre::BleRequest
40 : BleRequest(instanceId, enable, CHRE_BLE_SCAN_MODE_BACKGROUND, in BleRequest()
43 BleRequest::BleRequest(uint16_t instanceId, bool enable, chreBleScanMode mode, in BleRequest() function in chre::BleRequest
64 BleRequest::BleRequest(BleRequest &&other) { in BleRequest() function in chre::BleRequest
68 BleRequest &BleRequest::operator=(BleRequest &&other) { in operator =()
79 bool BleRequest::mergeWith(const BleRequest &request) { in mergeWith()
125 bool BleRequest::isEquivalentTo(const BleRequest &request) { in isEquivalentTo()
142 uint16_t BleRequest::getInstanceId() const { in getInstanceId()
146 chreBleScanMode BleRequest::getMode() const { in getMode()
[all …]
Dble_request_multiplexer.cc23 DynamicVector<BleRequest> &BleRequestMultiplexer::getMutableRequests() { in getMutableRequests()
27 const BleRequest *BleRequestMultiplexer::findRequest(uint16_t instanceId, in findRequest()
39 for (const BleRequest &request : mRequests) { in hasRequests()
72 BleRequest &request = mRequests[index]; in removeDisabledRequests()
Dble_request_manager.cc42 const BleRequest *foundRequest = in handleExistingRequest()
70 bool BleRequestManager::updateRequests(BleRequest &&request, in updateRequests()
92 BleRequest request(nanoapp->getInstanceId(), true, mode, reportDelayMs, in startScanAsync()
99 BleRequest request(nanoapp->getInstanceId(), false /* enable */); in stopScanAsync()
107 const BleRequest *foundRequest = in disableActiveScan()
115 BleRequest request(nanoapp->getInstanceId(), false /* enable */); in disableActiveScan()
159 bool BleRequestManager::configure(BleRequest &&request) { in configure()
203 const BleRequest &maxRequest = mRequests.getCurrentMaximalRequest(); in controlPlatform()
210 BleRequest(0, enable, maxRequest.getMode(), in controlPlatform()
214 mPendingPlatformRequest = BleRequest(0, enable); in controlPlatform()
[all …]
/system/chre/core/tests/
Dble_request_test.cc21 using chre::BleRequest;
23 TEST(BleRequest, DefaultMinimalRequest) { in TEST() argument
24 BleRequest request; in TEST()
32 TEST(BleRequest, AggressiveModeIsHigherThanBackground) { in TEST() argument
33 BleRequest backgroundMode(0 /* instanceId */, true /* enable */, in TEST()
36 BleRequest aggressiveMode(0 /* instanceId */, true /* enable */, in TEST()
40 BleRequest mergedRequest; in TEST()
50 TEST(BleRequest, MergeWithReplacesParametersOfDisabledRequest) { in TEST() argument
58 BleRequest enabled(0, true, CHRE_BLE_SCAN_MODE_AGGRESSIVE, 20, &filter); in TEST()
60 BleRequest mergedRequest; in TEST()
[all …]
/system/chre/core/include/chre/core/
Dble_request.h39 class BleRequest : public NonCopyable {
41 BleRequest();
43 BleRequest(uint16_t instanceId, bool enable);
45 BleRequest(uint16_t instanceId, bool enable, chreBleScanMode mode,
48 BleRequest(BleRequest &&other);
50 BleRequest &operator=(BleRequest &&other);
60 bool mergeWith(const BleRequest &request);
68 bool isEquivalentTo(const BleRequest &request);
Dble_request_multiplexer.h28 typedef void(RequestCallbackFunction)(BleRequest &req, void *data);
34 class BleRequestMultiplexer : public RequestMultiplexer<BleRequest> {
42 DynamicVector<BleRequest> &getMutableRequests();
56 const BleRequest *findRequest(uint16_t instanceId, size_t *index);
Dble_request_manager.h211 BleRequest mPendingPlatformRequest;
214 BleRequest mActivePlatformRequest;
247 void populateRequestData(const BleRequest &req) { in populateRequestData()
279 bool configure(BleRequest &&request);
339 bool updateRequests(BleRequest &&request, bool hasExistingRequest,
404 static bool validateParams(const BleRequest &request);