/system/chre/platform/slpi/include/chre/platform/slpi/smgr/ |
H A D | platform_sensor_util.h | 27 * Converts an interval in nanoseconds to an SMGR report rate. SMGR overloads 29 * longer a sample rate and becomes an interval for sub-zero sampling rates. 32 * @param interval The sampling interval to convert to a report rate. 33 * @return Returns the SMGR report rate for this interval. 35 uint16_t intervalToSmgrSamplingRate(Nanoseconds interval); 38 * Converts an interval in nanoseconds to an SMGR report rate in Hz and Q16 41 * @param interval The interval to convert to a report rate. 42 * @return Returns the SMGR uint32_t report rate for this interval [all...] |
/system/chre/platform/slpi/smgr/ |
H A D | platform_sensor_util.cc | 30 uint16_t intervalToSmgrSamplingRate(Nanoseconds interval) { argument 34 Milliseconds millis = Milliseconds(interval); 41 } else if (interval != Nanoseconds(0)) { 45 (Seconds(1).toRawNanoseconds() / interval.toRawNanoseconds()); 52 uint32_t intervalToSmgrQ16ReportRate(Nanoseconds interval) { argument 58 if (interval != Nanoseconds(0)) { 59 freq = (Seconds(1).toRawNanoseconds() << 16) / interval.toRawNanoseconds();
|
/system/update_engine/update_manager/ |
H A D | next_update_check_policy_impl.cc | 48 LOG(INFO) << "Periodic check interval not satisfied, blocking until " 65 // some interval. The interval is kTimeoutInitialInterval the first time and 67 // check fails, we increase the interval between the update checks 70 // fuzz to the interval. 93 // Check whether the server is enforcing a poll interval; if not, this value 99 int interval = *server_dictated_poll_interval; local 102 // If no poll interval was dictated by server compute a back-off period, 103 // starting from a predetermined base periodic interval and increasing 105 if (interval 138 FuzzedInterval(PRNG* prng, int interval, int fuzz) argument [all...] |
H A D | next_update_check_policy_impl.h | 31 // Default update check timeout interval/fuzz values used to compute the 39 // Maximum update attempt backoff interval and fuzz. 80 // Returns a TimeDelta based on the provided |interval| seconds +/- half 83 static base::TimeDelta FuzzedInterval(PRNG* prng, int interval, int fuzz);
|
/system/core/init/ |
H A D | watchdogd.cpp | 40 int interval = 10; local 41 if (argc >= 2) interval = atoi(argv[1]); 46 LOG(INFO) << "watchdogd started (interval " << interval << ", margin " << margin << ")!"; 54 int timeout = interval + margin; 63 interval = timeout - margin; 65 interval = 1; 67 LOG(WARNING) << "Adjusted interval to timeout returned by driver: " 69 << ", interval " << interval [all...] |
/system/chre/core/ |
H A D | sensor_request.cc | 27 // With capping in SensorRequest constructor, interval + latency < UINT64_MAX. 29 // interval) will be used to compute the merged latency. 45 SensorRequest::SensorRequest(SensorMode mode, Nanoseconds interval, argument 47 : SensorRequest(nullptr /* nanoapp */, mode, interval, latency) {} 50 Nanoseconds interval, Nanoseconds latency) 51 : mNanoapp(nanoapp), mInterval(interval), mLatency(latency), mMode(mode) { 52 // cap non-default interval/latency to ensure no overflow in CHRE internal 54 if (interval != Nanoseconds(CHRE_SENSOR_INTERVAL_DEFAULT)) { 55 mInterval = std::min(interval, Nanoseconds(kMaxIntervalLatencyNs)); 71 // Calculate minimum batch interval befor 49 SensorRequest(Nanoapp *nanoapp, SensorMode mode, Nanoseconds interval, Nanoseconds latency) argument [all...] |
/system/chre/apps/gnss_world/ |
H A D | gnss_world.cc | 42 //! The interval in seconds between updates. 67 uint32_t interval = kReportIntervals[gLocationTimerCount++]; local 68 LOGI("Modifying location update interval to %" PRIu32 " sec", interval); 70 if (interval > 0) { 72 interval * 1000, 95 uint32_t interval = kReportIntervals[gMeasurementTimerCount++]; local 96 LOGI("Modifying measurement update interval to %" PRIu32 " sec", interval); 98 if (interval > [all...] |
/system/chre/core/include/chre/core/ |
H A D | sensor_request.h | 29 //! Maximum of non-default interval and latency values in nanoseconds to ensure 41 * The sensor is disabled and the interval and latency are both set to zero. 46 * Constructs a sensor request given a mode, interval and latency. Non-default 47 * interval or latency higher than kMaxIntervalLatencyNs will be capped. 50 * @param interval The interval between samples. 54 SensorRequest(SensorMode mode, Nanoseconds interval, Nanoseconds latency); 57 * Constructs a sensor request given an owning nanoapp, mode, interval and 58 * latency. Non-default interval or latency higher than kMaxIntervalLatencyNs 63 * @param interval Th [all...] |
/system/chre/apps/sensor_world/ |
H A D | sensor_world.cc | 59 uint64_t interval; // nsec member in struct:chre::__anon1393::__anon1394::SensorState 69 .interval = Milliseconds(80).toRawNanoseconds(), 77 .interval = CHRE_SENSOR_INTERVAL_DEFAULT, 85 .interval = CHRE_SENSOR_INTERVAL_DEFAULT, 93 .interval = Milliseconds(80).toRawNanoseconds(), 101 .interval = Milliseconds(80).toRawNanoseconds(), 109 .interval = Milliseconds(200).toRawNanoseconds(), 117 .interval = Milliseconds(200).toRawNanoseconds(), 125 .interval = Milliseconds(200).toRawNanoseconds(), 133 .interval [all...] |
/system/chre/platform/shared/ |
H A D | chre_api_sensor.cc | 68 uint64_t interval, uint64_t latency) { 71 SensorRequest sensorRequest(nanoapp, sensorMode, Nanoseconds(interval), 66 chreSensorConfigure(uint32_t sensorHandle, enum chreSensorConfigureMode mode, uint64_t interval, uint64_t latency) argument
|
/system/bt/packet/avrcp/ |
H A D | register_notification_packet.h | 117 * uint32_t interval; // Only used for PLAYBACK_POS_CHANGED 138 Event event, uint32_t interval); 148 RegisterNotificationRequestBuilder(Event event, uint32_t interval) argument 152 interval_(interval){};
|
/system/core/storaged/include/ |
H A D | storaged.h | 129 void update_uid_io_interval(int interval) { argument 130 if (interval >= DEFAULT_PERIODIC_CHORES_INTERVAL_UID_IO_LIMIT) { 131 mConfig.periodic_chores_interval_uid_io = interval;
|
/system/tools/hidl/c2hal/test/ |
H A D | simple.h | 48 int interval);
|
/system/chre/apps/chqts/src/general_test/ |
H A D | basic_sensor_test_base.cc | 102 // Any attempt to make a PASSIVE call with a non-default interval 112 "different interval"); 126 "default interval and non-default latency"); 132 "non-default interval and default latency"); 138 "non-default interval and latency"); 188 // Default interval/latency must be accepted by all sensors. 190 CHRE_SENSOR_INTERVAL_DEFAULT, /* interval */ 199 mNewStatus.interval, mNewStatus.latency)) { 201 " interval and latency"); 210 // TODO: A more in-depth test could try to change this interval [all...] |
/system/chre/chre_api/include/chre_api/chre/ |
H A D | sensor.h | 218 * Indicates that the interval and/or the latency which this sensor is 267 * interval. 283 * Special value indicating non-importance of the batch interval. 420 * The minimum sampling interval supported by this sensor, in nanoseconds. 422 * Requests to chreSensorConfigure with a lower interval than this will 423 * fail. If the sampling interval is not applicable to this sensor, this 427 * v1.1, indicating that the minimum interval is not known. 439 * The interval, in nanoseconds, at which the sensor is now sampling. 441 * If this is CHRE_SENSOR_INTERVAL_DEFAULT, then a sampling interval 446 uint64_t interval; member in struct:chreSensorSamplingStatus [all...] |
/system/chre/chre_api/legacy/v1_0/chre/ |
H A D | sensor.h | 244 * Indicates that the interval and/or the latency which this sensor is 292 * Special value indicating non-importance of the interval. 607 * The interval, in nanoseconds, at which the sensor is now sampling. 609 * If this is CHRE_SENSOR_INTERVAL_DEFAULT, then a sampling interval 614 uint64_t interval; member in struct:chreSensorSamplingStatus 635 * Note that only at least one of 'interval' or 'latency' must be 684 * does not exactly support the interval requested in chreSensorConfigure(), so 688 * requested a faster interval and/or lower latency. This latter scenario 706 * Configures a given sensor at a specific interval and latency and mode. 736 * interval/latenc [all...] |
/system/bt/stack/btm/ |
H A D | btm_pm.cc | 188 /* already in the requested mode and the current interval has less latency 191 ((p_mode->mode & BTM_PM_MD_FORCE) && (p_mode->max >= p_cb->interval) && 192 (p_mode->min <= p_cb->interval)) || 194 (p_mode->max >= p_cb->interval))) { 196 << std::to_string(p_mode->mode) << ", interval " << p_cb->interval 578 ((md_res.max >= p_cb->interval) && (md_res.min <= p_cb->interval))) 744 * interval - number of baseband slots (meaning depends on 751 uint8_t mode, uint16_t interval) { 750 btm_pm_proc_mode_change(uint8_t hci_status, uint16_t hci_handle, uint8_t mode, uint16_t interval) argument [all...] |
H A D | btm_inq.cc | 134 * or interval, the default values are used. 144 uint16_t interval) { 170 /* If the window and/or interval is '0', set to default values */ 173 if (!interval) interval = BTM_DEFAULT_DISC_INTERVAL; 177 "0x%04x, interval 0x%04x", 178 inq_mode, window, interval); 180 /*** Check for valid window and interval parameters ***/ 183 /* window must be less than or equal to interval */ 186 interval < HCI_MIN_INQUIRYSCAN_INTERVA 143 BTM_SetDiscoverability(uint16_t inq_mode, uint16_t window, uint16_t interval) argument 535 BTM_SetConnectability(uint16_t page_mode, uint16_t window, uint16_t interval) argument [all...] |
/system/bt/binder/android/bluetooth/ |
H A D | IBluetoothGattCallback.aidl | 40 void onConnectionUpdated(in String address, in int interval, in int latency,
|
H A D | IBluetoothGattServerCallback.aidl | 45 void onConnectionUpdated(in String address, in int interval, in int latency,
|
/system/chre/chre_api/legacy/v1_1/chre/ |
H A D | sensor.h | 360 * Indicates that the interval and/or the latency which this sensor is 409 * interval. 425 * Special value indicating non-importance of the batch interval. 562 * The minimum sampling interval supported by this sensor, in nanoseconds. 564 * Requests to chreSensorConfigure with a lower interval than this will 565 * fail. If the sampling interval is not applicable to this sensor, this 569 * v1.1, indicating that the minimum interval is not known. 751 * The interval, in nanoseconds, at which the sensor is now sampling. 753 * If this is CHRE_SENSOR_INTERVAL_DEFAULT, then a sampling interval 758 uint64_t interval; member in struct:chreSensorSamplingStatus [all...] |
/system/chre/platform/slpi/see/ |
H A D | platform_sensor.cc | 175 newStatus.interval = update.status.interval; 182 || newStatus.interval != prevStatus.interval 586 mSamplingStatus.interval = CHRE_SENSOR_INTERVAL_DEFAULT;
|
/system/bt/include/hardware/ |
H A D | ble_scanner.h | 98 /** Sets the LE scan interval and window in units of N*0.625 msec */ 122 RawAddress address, uint8_t phy, uint16_t interval)>;
|
H A D | bt_gatt_server.h | 116 typedef void (*conn_updated_callback)(int conn_id, uint16_t interval,
|
/system/bt/stack/btu/ |
H A D | btu_hcif.cc | 1304 uint16_t interval; local 1310 STREAM_TO_UINT16(interval, p); 1314 btm_pm_proc_mode_change(status, handle, current_mode, interval); 1317 hidd_pm_proc_mode_change(status, current_mode, interval); 1671 extern void gatt_notify_conn_update(uint16_t handle, uint16_t interval, 1681 uint16_t interval; local 1687 STREAM_TO_UINT16(interval, p); 1691 l2cble_process_conn_update_evt(handle, status, interval, latency, timeout); 1693 gatt_notify_conn_update(handle & 0x0FFF, interval, latency, timeout, status);
|