• Home
  • Raw
  • Download

Lines Matching refs:duration

63   uint16_t duration;  // 1 unit is 10ms  member
94 duration(0), in AdvertisingInstance()
154 uint16_t duration; member
231 if (restart && (p_inst->duration || p_inst->maxExtAdvEvents)) { in ConfigureRpa()
313 std::vector<uint8_t> scan_response_data, int duration, in StartAdvertising() argument
323 int duration; in StartAdvertising() member
335 c->duration = duration; in StartAdvertising()
399 … c->self->Enable(c->inst_id, true, c->cb, c->duration, 0, std::move(c->timeout_cb)); in StartAdvertising()
413 uint16_t duration, uint8_t maxExtAdvEvents, in StartAdvertisingSet() argument
425 c->duration = duration; in StartAdvertisingSet()
595 uint16_t duration = c->duration; in StartAdvertisingSetFinish() local
617 self->Enable(inst_id, true, std::move(enable_cb), duration, maxExtAdvEvents, in StartAdvertisingSetFinish()
621 void EnableWithTimerCb(uint8_t inst_id, MultiAdvCb enable_cb, int duration, in EnableWithTimerCb() argument
636 alarm_set_closure(FROM_HERE, p_inst->timeout_timer, duration * 10, in EnableWithTimerCb()
640 void Enable(uint8_t inst_id, bool enable, MultiAdvCb cb, uint16_t duration, in Enable() argument
649 VLOG(1) << __func__ << " enable: " << enable << ", duration: " << +duration; in Enable()
656 if (enable && (duration || maxExtAdvEvents)) { in Enable()
660 p_inst->duration = duration; in Enable()
677 if (enable && p_inst->duration) { in EnableFinish()
682 p_inst->duration, p_inst->timeout_cb); in EnableFinish()
695 GetHciInterface()->Enable(enable, p_inst->inst_id, p_inst->duration, in EnableFinish()
753 if (p_inst->duration) flags_val = BTM_LIMITED_DISCOVERABLE; in SetData()
908 TimeDelta duration = now - inst->enable_time; in RecomputeTimeout() local
910 if (inst->duration) { in RecomputeTimeout()
911 int durationDone = (duration.InMilliseconds() / 10); in RecomputeTimeout()
912 if (durationDone + 1 >= inst->duration) { in RecomputeTimeout()
917 inst->duration = inst->duration - durationDone; in RecomputeTimeout()
923 (duration.InMilliseconds() / (inst->advertising_interval * 5 / 8)); in RecomputeTimeout()
940 if (inst.duration || inst.maxExtAdvEvents) in Suspend()
956 .duration = inst.duration, in Resume()
1001 GetHciInterface()->Enable(true, advertising_handle, p_inst->duration, in OnAdvertisingSetTerminated()
1110 test1.duration = 12 /*120ms*/; in testRecomputeTimeout1()
1130 test1.duration = 50 /*500ms*/; in testRecomputeTimeout2()
1139 CHECK(test1.duration == 25); in testRecomputeTimeout2()