-
公开(公告)号:US12159154B2
公开(公告)日:2024-12-03
申请号:US17483953
申请日:2021-09-24
Applicant: HUAWEI TECHNOLOGIES CO., LTD.
Inventor: Hui Shi , Yang Ding , Kui Zhang , Chengyuan Wang , Chao Wang
Abstract: The technology of this application relates to a memory management method and apparatus. When garbage collection is performed by using the method, stored information about a first reference cycle is first obtained, where the first reference cycle is a cyclic reference formed by a plurality of objects, and the information about the first reference cycle includes the plurality of objects in the first reference cycle and a reference relationship between the plurality of objects. The method further includes determining that a second reference cycle exists, where information about the second reference cycle matches the information about the first reference cycle, and the information about the second reference cycle includes a plurality of objects in the second reference cycle and a reference relationship between the plurality of objects. The method further includes reclaiming memory occupied by the plurality of objects in the second reference cycle.
-
公开(公告)号:US10729359B2
公开(公告)日:2020-08-04
申请号:US15776315
申请日:2016-09-12
Applicant: Huawei Technologies Co., Ltd.
Inventor: Huaiyong Wang , Tao Yi , Xiangyang Wang , Guangze Zhu , Kui Zhang
Abstract: A heart rate detection method and an apparatus, where the method is applied to an electronic device, and the electronic device includes a heart rate sensor. The method includes detecting, by the electronic device, a current motion status of a user carrying the electronic device, determining, based on a prestored correspondence between a motion status, a startup period, and a sampling rate, a startup period and a sampling rate corresponding to the current motion status, where the startup period is a period in which the heart rate sensor is started to detect a heart rate of the user carrying the electronic device, and the sampling rate is a sampling rate of collecting heart rate data by the heart rate sensor, and starting the heart rate sensor at regular intervals based on the startup period to collect heart rate data at the sampling rate.
-
公开(公告)号:US20200281507A1
公开(公告)日:2020-09-10
申请号:US16881838
申请日:2020-05-22
Applicant: Huawei Technologies Co., Ltd.
Inventor: Huaiyong Wang , Tao Yi , Xiangyang Wang , Guangze Zhu , Kui Zhang
Abstract: A heart rate detection method and an apparatus, where the method is applied to an electronic device, and the electronic device includes a heart rate sensor. The method includes detecting, by the electronic device, a current motion status of a user carrying the electronic device, determining, based on a prestored correspondence between a motion status, a startup period, and a sampling rate, a startup period and a sampling rate corresponding to the current motion status, where the startup period is a period in which the heart rate sensor is started to detect a heart rate of the user carrying the electronic device, and the sampling rate is a sampling rate of collecting heart rate data by the heart rate sensor, and starting the heart rate sensor at regular intervals based on the startup period to collect heart rate data at the sampling rate.
-
公开(公告)号:US11571145B2
公开(公告)日:2023-02-07
申请号:US16881838
申请日:2020-05-22
Applicant: Huawei Technologies Co., Ltd.
Inventor: Huaiyong Wang , Tao Yi , Xiangyang Wang , Guangze Zhu , Kui Zhang
Abstract: A heart rate detection method and an apparatus, where the method is applied to an electronic device, and the electronic device includes a heart rate sensor. The method includes detecting, by the electronic device, a current motion status of a user carrying the electronic device, determining, based on a prestored correspondence between a motion status, a startup period, and a sampling rate, a startup period and a sampling rate corresponding to the current motion status, where the startup period is a period in which the heart rate sensor is started to detect a heart rate of the user carrying the electronic device, and the sampling rate is a sampling rate of collecting heart rate data by the heart rate sensor, and starting the heart rate sensor at regular intervals based on the startup period to collect heart rate data at the sampling rate.
-
公开(公告)号:US20180317812A1
公开(公告)日:2018-11-08
申请号:US15776315
申请日:2016-09-12
Applicant: Huawei Technologies Co., Ltd.
Inventor: Huaiyong Wang , Tao Yi , Xiangyang Wang , Guangze Zhu , Kui Zhang
Abstract: A heart rate detection method and an apparatus, where the method is applied to an electronic device, and the electronic device includes a heart rate sensor. The method includes detecting, by the electronic device, a current motion status of a user carrying the electronic device, determining, based on a prestored correspondence between a motion status, a startup period, and a sampling rate, a startup period and a sampling rate corresponding to the current motion status, where the startup period is a period in which the heart rate sensor is started to detect a heart rate of the user carrying the electronic device, and the sampling rate is a sampling rate of collecting heart rate data by the heart rate sensor, and starting the heart rate sensor at regular intervals based on the startup period to collect heart rate data at the sampling rate.
-
-
-
-