{"id":474976,"date":"2025-09-14T21:00:16","date_gmt":"2025-09-14T21:00:16","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=474976"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=474976","title":{"rendered":"<span>WEAR \u043c\u043e\u0434\u0443\u043b\u044c AndroidAPS, \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0438 \u043e\u0442\u043b\u0430\u0434\u043a\u0430 \u0441\u0432\u044f\u0437\u0438 \u043f\u0440\u0438 \u0437\u0430\u0432\u0438\u0441\u0430\u043d\u0438\u0438<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 &#8212; \u0442\u0435\u043b\u0435\u0444\u043e\u043d Samsung Galaxy S8+ (SM-G955FD), \u0447\u0430\u0441\u044b Galaxy Watch 5 Pro (P0ED)<\/p>\n<p>\u042f \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439 \u0437\u0430\u0432\u0438\u0441\u0430\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 \u0447\u0430\u0441\u0430\u0445, \u0447\u0442\u043e \u0441\u0442\u0430\u043b\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043a\u043e\u0433\u0434\u0430 \u0440\u0435\u0447\u044c \u0438\u0434\u0435\u0442 \u043e \u0437\u0430\u043d\u044f\u0442\u0438\u0438 \u0441\u043e\u043f\u0440\u0442\u043e\u043c. \u041c\u043d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434 \u0438 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0442\u0440\u0435\u043d\u0438\u0440\u043e\u0432\u043a\u0438 \u0443\u0434\u043e\u0431\u043d\u043e \u043e\u0442\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u043e\u0439 \u0440\u0443\u043a\u043e\u0439 \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u043f\u043e\u0440\u0442\u0438\u0432\u043d\u044b\u043c \u0440\u0435\u0436\u0438\u043c\u043e\u043c (\u0432 \u044d\u0442\u043e\u043c \u0444\u043e\u0440\u043a\u0435 \u043e\u043d \u043d\u0430\u043c\u0438 \u0442\u0430\u043a \u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435) \u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0447\u0430\u0441\u0430\u0445. <\/p>\n<p>\u0414\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0441\u043f\u043e\u0440\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 app, \u043d\u043e \u0438 \u0432 wear, \u0430 \u0442\u0430\u043a \u0436\u0435 \u0431\u044b\u043b\u0430 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0437\u0430\u043b\u0438\u043f\u0430\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 (\u043a\u043e\u0433\u0434\u0430 \u043d\u0430 \u0447\u0430\u0441\u044b \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u0433\u043b\u044e\u043a\u043e\u0437\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u044f\u0442 \u043d\u0435 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043d\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0435, \u0430 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043f\u043e\u0437\u0436\u0435 \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432\u0441\u0435\u0433\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437 \u0432 \u0447\u0430\u0441, \u043d\u0435 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e). \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0441\u0435\u0439\u0447\u0430\u0441 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u044f\u0442 \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0447\u0435\u043c \u0437\u0430 7 \u043c\u0438\u043d\u0443\u0442 (\u043d\u0430 \u0447\u0430\u0441\u044b). \u0415\u0441\u043b\u0438 \u0431\u044b\u0442\u044c \u0442\u043e\u0447\u043d\u044b\u043c &#8212; \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0438 \u043f\u043e\u043a\u0430\u0437 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043d\u0435 \u043f\u043e\u0437\u0436\u0435 7 \u043c\u0438\u043d\u0443\u0442.<\/p>\n<p>\u041d\u0438\u0436\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b, \u043a\u0430\u043a\u0438\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043e\u0442\u0441\u043b\u0435\u0434\u0438\u0442\u044c \u0432 \u043b\u043e\u0433\u0430\u0445 (\u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043b\u043e\u0433\u0438 \u0431\u044b\u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u043c\u043d\u043e\u0439) \u0438 \u043a\u0430\u043a \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043b \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443. <\/p>\n<h3>GitHub \u0438 \u0444\u043e\u0440\u043a<\/h3>\n<p>\u0420\u0430\u0431\u043e\u0442\u0430 \u0432\u0435\u043b\u0430\u0441\u044c \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 (\u0444\u043e\u0440\u043a\u0430) \ud83d\udcc2 OpenApsAIMI-additional-sport-options: <a href=\"https:\/\/github.com\/AlexeyDedeshko\/OpenApsAIMI-additional-sport-options\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/AlexeyDedeshko\/OpenApsAIMI-additional-sport-options<\/a>,  \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0443\u0436\u0435 \u0432 master.<\/p>\n<p>\u0414\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0430\u044f \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u0432 wear-dev.<\/p>\n<p><strong>\u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u0444\u043e\u0440\u043a\u0430:<\/strong><\/p>\n<p>\u0412 \u043d\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u043f\u043e\u0440\u0442\u0438\u0432\u043d\u044b\u043c \u0440\u0435\u0436\u0438\u043c\u043e\u043c \u0441 \u0447\u0430\u0441\u043e\u0432 (\u0434\u0430, \u0441\u043f\u043e\u0440\u0442\u0438\u0432\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u0438 \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435), \u0442\u0430\u043a \u0436\u0435 \u043f\u0435\u0440\u0435\u0440\u0430\u0431\u043e\u0442\u0430\u043d \u0441\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0438\u0437 \u0438\u043c\u0435\u044e\u0449\u0438\u0445\u0441\u044f<strong> \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442 \u0434\u043b\u044f Wear OS<\/strong> &#8212; \u043a\u0430\u043a \u0440\u0430\u0437 \u0434\u043b\u044f \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0441\u0432\u044f\u0437\u0438. \u0412\u043d\u0443\u0442\u0440\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0435\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442\u043e\u0432 \u043d\u043e \u043c\u044b \u043d\u0430\u043b\u0430\u0434\u0438\u043b\u0438 \u0441\u0432\u044f\u0437\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f CircleWatchface. \u041f\u0440\u0438 \u0432\u044b\u0431\u043e\u0440\u0435 \u043d\u0430 \u0447\u0430\u0441\u0430\u0445 \u043e\u043d \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f &#171;(\u043a\u0440\u0443\u0433\u043b\u044b\u0439)&#187;.<\/p>\n<p>\u0426\u0435\u043b\u044c \u2014 <strong>\u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f<\/strong> \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<p>\u0422\u043e \u0435\u0441\u0442\u044c \u044d\u0442\u043e <strong>\u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u044b\u0439 \u00ab\u043b\u0430\u0439\u0442\u00bb-\u0432\u0430\u0440\u0438\u0430\u043d\u0442<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043a\u0430\u043d\u0430\u043b\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 (DataLayer \u2192 RxBus \u2192 Watchface). \u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u043d\u0430 \u043d\u0435\u043c \u043f\u043e\u043a\u0430 \u043d\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0442\u0441\u044f \u043a\u043e\u0440\u0435\u0440\u043a\u0442\u043d\u043e \u0434\u0440\u0443\u0433\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043a\u0440\u043e\u043c\u0435 \u0433\u043b\u044e\u043a\u043e\u0437\u044b, \u0440\u0430\u0431\u043e\u0442\u0430 \u043d\u0430\u0434 \u044d\u0442\u0438\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0432\u0435\u0434\u0435\u0442\u0441\u044f. <\/p>\n<h3>\u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043f\u043e\u043d\u044f\u0442\u0438\u044f<\/h3>\n<h4>DataLayer<\/h4>\n<p>\u042d\u0442\u043e \u043a\u0430\u043d\u0430\u043b \u0441\u0432\u044f\u0437\u0438 \u043c\u0435\u0436\u0434\u0443 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043e\u043c \u0438 \u0447\u0430\u0441\u0430\u043c\u0438 \u043d\u0430 Wear OS. \u0422\u0435\u043b\u0435\u0444\u043e\u043d \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u044b\u0442\u0438\u044f (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u043e\u0432\u044b\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0441\u0430\u0445\u0430\u0440\u0430), \u0430 \u0447\u0430\u0441\u044b \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0442 \u0438\u0445. \u0412 \u043b\u043e\u0433\u0430\u0445 \u043c\u044b \u0432\u0438\u0434\u0438\u043c \u0440\u0430\u0431\u043e\u0442\u0443 \u044d\u0442\u043e\u0433\u043e \u043a\u0430\u043d\u0430\u043b\u0430 \u0441 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u043c: WEAR_PIPE &#8230;<\/p>\n<p><strong>onMessageReceived<\/strong><br \/>\u041c\u0435\u0442\u043e\u0434 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 DataLayerListenerServiceWear \u043d\u0430 \u0447\u0430\u0441\u0430\u0445. \u0421\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442, \u043a\u043e\u0433\u0434\u0430 \u043f\u043e <strong>DataLayer<\/strong> \u043f\u0440\u0438\u0448\u043b\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0441 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430.<\/p>\n<p>\u041a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437, \u043a\u043e\u0433\u0434\u0430 <strong>\u0442\u0435\u043b\u0435\u0444\u043e\u043d<\/strong> \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u043d\u043e\u0432\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u0447\u0430\u0441\u044b \u0447\u0435\u0440\u0435\u0437 DataLayer, \u043d\u0430 \u0447\u0430\u0441\u0430\u0445 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043c\u0435\u0442\u043e\u0434 onMessageReceived.<\/p>\n<ul>\n<li>\n<p>\u00ab\u0421\u043e\u0441\u0435\u0434\u043d\u0438\u0435\u00bb \u0437\u0430\u043f\u0438\u0441\u0438 onMessageReceived \u2014 \u044d\u0442\u043e <strong>\u0434\u0432\u0435 \u043f\u043e\u0434\u0440\u044f\u0434 \u0438\u0434\u0443\u0449\u0438\u0435 \u0442\u0430\u043a\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438<\/strong> \u0432 \u043b\u043e\u0433\u0435. \u041c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438 \u043e\u0431\u044b\u0447\u043d\u043e \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 ~1 \u043c\u0438\u043d\u0443\u0442\u0430 (\u0442.\u043a. \u043d\u043e\u0432\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0433\u043b\u044e\u043a\u043e\u0437\u044b \u043e\u0442 \u0441\u0435\u043d\u0441\u043e\u0440\u0430 \u043f\u0440\u0438\u0445\u043e\u0434\u044f\u0442 \u0440\u0430\u0437 \u0432 5 \u043c\u0438\u043d, \u043d\u043e \u043f\u043e DataLayer \u043c\u043e\u0433\u0443\u0442 \u043f\u0435\u0440\u0435\u0441\u044b\u043b\u0430\u0442\u044c\u0441\u044f \u0447\u0430\u0449\u0435). \u0415\u0441\u043b\u0438 \u0436\u0435 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u043c\u0438 \u0437\u0430\u043f\u0438\u0441\u044f\u043c\u0438 &gt;7 \u043c\u0438\u043d\u0443\u0442 \u2192 \u0437\u043d\u0430\u0447\u0438\u0442, <strong>\u0442\u0435\u043b\u0435\u0444\u043e\u043d \u043d\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u043b \u043d\u043e\u0432\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u0447\u0430\u0441\u044b<\/strong> (\u0438\u043b\u0438 \u0447\u0430\u0441\u044b \u0438\u0445 \u043d\u0435 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u043b\u0438). \u042d\u0442\u043e \u0438 \u0435\u0441\u0442\u044c \u00ab\u0437\u0430\u043b\u0438\u043f\u0430\u043d\u0438\u0435\u00bb \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u043a\u0430\u043d\u0430\u043b\u0430. \u0417\u0430\u043b\u0438\u043f\u0430\u043d\u0438\u0435 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0432\u044b\u0437\u0432\u0430\u043d\u043e \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u044d\u0442\u0438\u043c, \u043d\u043e \u044d\u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442 \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u043d.<\/p>\n<\/li>\n<\/ul>\n<ul>\n<li>\n<p>onMessageReceived \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0434\u0430\u043d\u043d\u044b\u0435 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043e\u0434\u043d\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0430\u0445\u0430\u0440\u0430). \u041d\u043e \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u0438\u0445 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435 \u043e\u043d \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u2014 \u044d\u0442\u0438\u043c \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u0434\u0440\u0443\u0433\u043e\u0439 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 (\u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442). \u0427\u0442\u043e\u0431\u044b \u00ab\u0440\u0430\u0437\u0434\u0430\u0442\u044c\u00bb \u0434\u0430\u043d\u043d\u044b\u0435 \u0432\u0441\u0435\u043c \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0447\u0430\u0441\u0442\u044f\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b, \u043e\u043d\u0438 \u043a\u043b\u0430\u0434\u0443\u0442\u0441\u044f \u043d\u0430 <strong>RxBus<\/strong> (\u0432 \u043b\u043e\u0433\u0430\u0445 WEAR_PIPE postToRxBus type=SingleBg)<\/p>\n<p>\u0422\u0443\u0442 \u043c\u044b \u0432\u0438\u0434\u0438\u043c, <strong>\u043a\u0430\u043a\u043e\u0439 \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0438\u043f \u0441\u043e\u0431\u044b\u0442\u0438\u044f<\/strong> \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d:<\/p>\n<ul>\n<li>\n<p>SingleBg \u2192 \u043e\u0434\u043d\u043e \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0435 \u0433\u043b\u044e\u043a\u043e\u0437\u044b,<\/p>\n<\/li>\n<li>\n<p>Status \u2192 \u0441\u0442\u0430\u0442\u0443\u0441 (IOB, BGI, \u043d\u0430\u0441\u043e\u0441),<\/p>\n<\/li>\n<li>\n<p>GraphData \u2192 \u043f\u0430\u0447\u043a\u0430 \u0442\u043e\u0447\u0435\u043a \u0434\u043b\u044f \u0433\u0440\u0430\u0444\u0438\u043a\u0430.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4>RxBus<\/h4>\n<p>\u042d\u0442\u043e \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044f\u044f \u00ab\u0448\u0438\u043d\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u0439\u00bb \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438. <\/p>\n<p>\u041a\u043e\u0433\u0434\u0430 DataLayer \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435, \u043e\u043d \u043d\u0435 \u0440\u0438\u0441\u0443\u0435\u0442 \u0438\u0445 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e, \u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442 \u0438\u0445 \u0447\u0435\u0440\u0435\u0437 <strong>RxBus<\/strong>.<\/p>\n<p>\u0422\u0430\u043a \u0447\u0430\u0441\u044b \u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043d\u0430 \u043e\u0434\u043d\u0438 \u0438 \u0442\u0435 \u0436\u0435 \u0434\u0430\u043d\u043d\u044b\u0435: \u0438 \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442, \u0438 \u0432\u0438\u0434\u0436\u0435\u0442\u044b, \u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u044b.<\/p>\n<p><strong>postToRxBus<\/strong><\/p>\n<p>\u041d\u0430\u0448\u0430 \u043c\u0435\u0442\u043a\u0430 \u043f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c, \u043a\u0430\u043a \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432\u043e \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044e\u044e \u0448\u0438\u043d\u0443 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 <strong>RxBus<\/strong>.<br \/>\u042d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442: \u00ab\u0414\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u0438\u0448\u043b\u0438 \u0438 \u0442\u0435\u043f\u0435\u0440\u044c \u044f \u0440\u0430\u0437\u0434\u0430\u044e \u0438\u0445 \u0432\u0441\u0435\u043c \u043f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u0430\u043c (\u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442)\u00bb.<br \/>\u279d \u041b\u043e\u0433: WEAR_PIPE postToRxBus type=SingleBg &#8230;<\/p>\n<h3>WEAR_FACE Rx SingleBg<\/h3>\n<p>\u042d\u0442\u043e \u043b\u043e\u0433 \u0432\u043d\u0443\u0442\u0440\u0438 \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442\u0430 (\u043a\u043b\u0430\u0441\u0441\u0430 CircleWatchface). \u041a\u043e\u0433\u0434\u0430 RxBus \u00ab\u0432\u044b\u043a\u0438\u043d\u0443\u043b\u00bb \u0441\u043e\u0431\u044b\u0442\u0438\u0435, \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442 \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435. \u041c\u044b \u043b\u043e\u0433\u0438\u0440\u0443\u0435\u043c \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u0440\u0438\u0445\u043e\u0434\u0430.<\/p>\n<h4>Watchface (\u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442)<\/h4>\n<p>\u042d\u0442\u043e \u043a\u043b\u0430\u0441\u0441 (\u0443 \u043d\u0430\u0441 CircleWatchface), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435 \u0447\u0430\u0441\u043e\u0432.<\/p>\n<p>\u0423 \u043d\u0435\u0433\u043e \u0435\u0441\u0442\u044c \u043c\u0435\u0442\u043e\u0434:<\/p>\n<p><strong>onDraw(Canvas)<\/strong> \u2014 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u0440\u043e\u0440\u0438\u0441\u043e\u0432\u043a\u0438. \u041a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437, \u043a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u044d\u043a\u0440\u0430\u043d, \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u044d\u0442\u043e\u0442 \u043c\u0435\u0442\u043e\u0434.<\/p>\n<p><strong>+Xms after invalidate()<\/strong><\/p>\n<p>\u041f\u0438\u0448\u0435\u0442\u0441\u044f \u0432 onDraw() \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442\u0430. \u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0438\u043b\u043b\u0438\u0441\u0435\u043a\u0443\u043d\u0434 \u043f\u0440\u043e\u0448\u043b\u043e \u043e\u0442 invalidate() (\u0437\u0430\u043f\u0440\u043e\u0441 \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u043a\u0438) \u0434\u043e \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u044b\u0437\u043e\u0432\u0430 onDraw() (\u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0438 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435).<\/p>\n<p>\u279d \u041b\u043e\u0433: WEAR_FACE: onDraw(); +5ms after invalidate()<\/p>\n<p>\u0412 \u043b\u043e\u0433\u0430\u0445 \u043e\u043d \u0444\u0438\u043a\u0441\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043a\u0430\u043a: WEAR_FACE: onDraw(); +5ms after invalidate()<\/p>\n<h4>\u0421\u043e\u0431\u044b\u0442\u0438\u044f SingleBg \/ Status \/ GraphData<\/h4>\n<ul>\n<li>\n<p><strong>SingleBg<\/strong> \u2014 \u043e\u0434\u043d\u043e \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0435 \u0443\u0440\u043e\u0432\u043d\u044f \u0441\u0430\u0445\u0430\u0440\u0430 (Single Blood Glucose).<\/p>\n<p>\u0422\u043e \u0441\u0430\u043c\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0440\u0438\u0441\u0443\u0435\u0442\u0441\u044f \u043a\u0440\u0443\u043f\u043d\u044b\u043c \u0448\u0440\u0438\u0444\u0442\u043e\u043c.<\/p>\n<p>\u0412 \u043b\u043e\u0433\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a: WEAR_FACE: Rx SingleBg at 123456789ms<\/p>\n<\/li>\n<li>\n<p><strong>Status<\/strong> \u2014 \u0441\u043e\u043f\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, IOB \u2014 \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0438\u043d\u0441\u0443\u043b\u0438\u043d, BGI, \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043d\u0430\u0441\u043e\u0441\u0430). \u0420\u0438\u0441\u0443\u044e\u0442\u0441\u044f \u043c\u0435\u043b\u043a\u0438\u043c \u0442\u0435\u043a\u0441\u0442\u043e\u043c \u0438\u043b\u0438 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u044b.<\/p>\n<\/li>\n<li>\n<p><strong>GraphData<\/strong> \u2014 \u043f\u0430\u0447\u043a\u0430 \u0442\u043e\u0447\u0435\u043a \u0434\u043b\u044f \u0433\u0440\u0430\u0444\u0438\u043a\u0430 \u0437\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0447\u0430\u0441\u044b. \u041c\u044b \u0438\u0445 \u0432 \u0443\u043f\u0440\u043e\u0449\u0451\u043d\u043d\u043e\u043c \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442\u0435 \u043d\u0435 \u0440\u0438\u0441\u0443\u0435\u043c, \u043d\u043e \u043e\u043d\u0438 \u0442\u043e\u0436\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u044f\u0442.<\/p>\n<\/li>\n<li>\n<p><strong>invalidate() \u2192 onDraw()<\/strong> \u2014 \u041a\u043e\u0433\u0434\u0430 \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u043d\u043e\u0432\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u043e\u043d \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 invalidate(). \u042d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442: \u00ab\u044d\u043a\u0440\u0430\u043d \u0443\u0441\u0442\u0430\u0440\u0435\u043b, \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c\u00bb. \u0414\u0430\u043b\u044c\u0448\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 onDraw(Canvas) \u2014 \u0438 \u043c\u044b \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u0440\u0438\u0441\u0443\u0435\u043c \u043d\u043e\u0432\u044b\u0435 \u0446\u0438\u0444\u0440\u044b.<\/p>\n<\/li>\n<\/ul>\n<h2>\ud83d\udcd6 \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u043e\u0431\u043c\u0435\u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u043c\u0438<\/h2>\n<p>\u041d\u0438\u0436\u0435 \u044f \u0441\u0432\u043e\u0438\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043e\u0431\u043c\u0435\u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u043c\u0438, \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0435 \u0442\u043e\u0447\u043d\u044b\u043c \u0438 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043e \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043b\u043e\u0436\u0438\u0442\u044c \u043e\u0441\u043d\u043e\u0432\u0443 &#171;\u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f&#187; \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u043e\u0431\u043c\u0435\u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u043c\u0438. \u042f \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 \u0435\u0441\u043b\u0438 \u0432\u044b \u0441\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u0438\u0440\u0443\u0435\u0442\u0435 \u043c\u0435\u043d\u044f \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445. <\/p>\n<p>\u0412\u0441\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441\u043e &#171;\u0448\u043f\u0438\u043e\u043d\u0430&#187; \u0432 \u043d\u0430\u0448\u0435\u043c \u0442\u0435\u043b\u0435 &#8212; \u044d\u0442\u043e \u0441\u0435\u043d\u0441\u043e\u0440 \u0433\u043b\u044e\u043a\u043e\u0437\u044b (\u0432 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 Dexcom 6 \u0441\u0435\u0440\u0438\u0438). \u041e\u043d \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0432 xDrip, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 AAPS. <br \/>AAPS \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u043e\u043f\u044b\u0442\u043d\u044b\u043c \u043f\u043e\u0447\u0442\u0430\u043b\u044c\u043e\u043d\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0431\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 (\u043a\u043b\u0430\u0434\u0435\u0442 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u043a\u0430\u043f\u0441\u0443\u043b\u0443) \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u043d\u0430 \u0447\u0430\u0441\u044b \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u043e\u0434\u0438\u0447\u043d\u043e\u0441\u0442\u044c\u044e. <\/p>\n<p>DataLayer (Layer &#8212; \u044d\u0442\u043e \u0432 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0435 \u0441\u043b\u043e\u0439, \u043f\u0440\u043e\u0441\u043b\u043e\u0439\u043a\u0430 \u0438\u043b\u0438 \u043d\u0435\u0441\u0443\u0448\u043a\u0430) \u044d\u0442\u043e \u043a\u0430\u043a \u0442\u0440\u0443\u0431\u0430 \u0432 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0438 \u043a\u043b\u0430\u0434\u0435\u0442\u0441\u044f \u043a\u0430\u043f\u0441\u0443\u043b\u0430 \u0438 \u043f\u043e \u044d\u0442\u043e\u0439 \u0442\u0440\u0443\u0431\u0435 \u043d\u0435\u0441\u0435\u0442\u0441\u044f \u043d\u0430 \u0447\u0430\u0441\u044b. \u0412 \u043b\u043e\u0433\u0430\u0445 \u044d\u0442\u043e &#171;WEAR_PIPE: onMessageReceived&#187;. <\/p>\n<p>\u041a\u0430\u043f\u0441\u0443\u043b\u0443 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u043d\u0435 \u0441\u0440\u0430\u0437\u0443 \u044d\u043a\u0440\u0430\u043d, \u0430 \u043e\u043d\u0430 \u043a\u0430\u043a \u0431\u044b \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u0432 \u0433\u0440\u043e\u043c\u043a\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u0435\u043b\u044c \u043d\u0430 \u043f\u043b\u043e\u0449\u0430\u0434\u0438, \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0439 RxBus. RxBus \u0433\u0440\u043e\u043c\u043a\u043e \u0447\u0438\u0442\u0430\u0435\u0442 \u043f\u043e\u0441\u043b\u0430\u043d\u0438\u0435 \u0438 \u0442\u043e\u0433\u0434\u0430 \u043b\u044e\u0431\u043e\u0439 \u0436\u0438\u0442\u0435\u043b\u044c (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442, \u0432\u0438\u0434\u0436\u0435\u0442 \u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0435\u0440\u0432\u0438\u0441) \u043c\u043e\u0436\u0435\u0442 \u0443\u0441\u043b\u044b\u0448\u0430\u0442\u044c \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435. \u0412 \u043b\u043e\u0433\u0430\u0445 \u044d\u0442\u043e \u0442\u0430\u043a: WEAR_FACE: Rx SingleBg at 123456789ms = \u043d\u0430 \u043f\u043b\u043e\u0449\u0430\u0434\u0438 \u043f\u0440\u043e\u0437\u0432\u0443\u0447\u0430\u043b\u043e \u043d\u043e\u0432\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0430\u0445\u0430\u0440\u0430. <\/p>\n<p>\u0426\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442 &#8212; \u044d\u0442\u043e \u0445\u0443\u0434\u043e\u0436\u043d\u0438\u043a, \u043a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u043d \u0441\u043b\u044b\u0448\u0438\u0442 \u043d\u043e\u0432\u043e\u0435 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u043e \u0433\u043b\u044e\u043a\u043e\u0437\u0435 \u043d\u0430 \u043f\u043b\u043e\u0449\u0430\u0434\u0438 &#8212; \u043e\u043d \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u0442 \u0435\u0433\u043e \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435. \u041b\u043e\u0433\u0438\u043a\u0430 \u0445\u0443\u0434\u043e\u0436\u043d\u0438\u043a\u0430 \u0442\u0430\u043a\u0430\u044f, \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0435\u043c\u0443 \u0433\u043e\u0432\u043e\u0440\u044f\u0442 &#8212; \u0442\u0432\u043e\u0439 \u0440\u0438\u0441\u043e\u043d\u043e\u043a \u0443\u0441\u0442\u0430\u0440\u0435\u043b, \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u0443\u0439 &#8212; \u044d\u0442\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0430 invalidate(). \u041f\u043e\u0442\u043e\u043c \u0445\u0443\u0434\u043e\u0436\u043d\u0438\u043a \u0431\u0435\u0440\u0435\u0442 \u043a\u0438\u0441\u0442\u043e\u0447\u043a\u0443 \u0438 \u0440\u0438\u0441\u0443\u0435\u0442 \u043d\u0430 \u0445\u043e\u043b\u0441\u0442\u0435 (onDraw(Canvas)). \u0412 \u043b\u043e\u0433\u0430\u0445 WEAR_FACE: onDraw(); +5ms after invalidate().<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043e\u0448\u043b\u0438 \u0434\u043e RxBus \u0438 \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442\u0430, \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0430 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 <strong>\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0438\u043b\u043b\u0438\u0441\u0435\u043a\u0443\u043d\u0434<\/strong>.<\/p>\n<p>\u0418\u0442\u043e\u0433: \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 <strong>\u043f\u0435\u0440\u0435\u0441\u044b\u043b\u043a\u0438 \u0441 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 \u043d\u0430 \u0447\u0430\u0441\u044b <\/strong>(\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043c\u043d\u0435 \u043f\u043e \u043d\u0430\u0447\u0430\u043b\u0443). \u041d\u043e \u0432 \u0438\u0442\u043e\u0433\u0435 \u043e\u043d\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438 \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0438 \u043a\u043e\u0433\u0434\u0430 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0432\u0432\u0438\u0434\u0443 \u0442\u043e\u0433\u043e \u0447\u0442\u043e \u0430\u043d\u0434\u0440\u043e\u0438\u0434 \u043d\u0435 \u0434\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0433\u0434\u0430 \u0447\u0430\u0441\u044b \u0441\u043f\u044f\u0442 \u0438 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0438\u0445 \u0431\u0443\u0434\u0435\u0438\u0442\u044c. \u042d\u0442\u043e \u043c\u044b \u0442\u043e\u0436\u0435 \u043f\u043e\u043b\u0435\u0447\u0438\u043b\u0438. <\/p>\n<p><strong>\u0421\u0445\u0435\u043c\u0430\u0442\u0438\u0447\u043d\u043e \u0442\u0430\u043a <\/strong><\/p>\n<p>[SENSOR]<\/p>\n<p>\u00a0 \u2514\u2500 \u0438\u0437\u043c\u0435\u0440\u044f\u0435\u0442 \u0441\u0430\u0445\u0430\u0440 (\u043a\u0430\u0436\u0434\u044b\u0435 N \u043c\u0438\u043d\u0443\u0442)<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u25bc<\/p>\n<p>[PHONE \/ \u041c\u041e\u0411. \u041f\u0420\u0418\u041b\u041e\u0416\u0415\u041d\u0418\u0415]<\/p>\n<p>\u00a0 \u2514\u2500 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u25bc<\/p>\n<p>[DataLayer]\u00a0 \u2190 \u00ab\u0442\u0440\u0443\u0431\u0430\u00bb \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u2192\u0447\u0430\u0441\u044b<\/p>\n<p>(\u0432 \u043b\u043e\u0433\u0430\u0445: WEAR_PIPE onMessageReceived)<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u25bc<\/p>\n<p>[WEAR_PIPE] postToRxBus\u00a0 \u00a0 \u00a0 \u00a0 &lt;&#8212; \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0432 &#171;\u0448\u0438\u043d\u0443&#187; RxBus<\/p>\n<p>\u00a0  \u00a0\u00a0 v<\/p>\n<p>[RxBus]\u00a0 \u2190 \u00ab\u0433\u0440\u043e\u043c\u043a\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u0435\u043b\u044c\u00bb \u0432\u043d\u0443\u0442\u0440\u0438 \u0447\u0430\u0441\u043e\u0432<\/p>\n<p>(\u0432 \u043b\u043e\u0433\u0430\u0445 \u043d\u0430 \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442\u0435: WEAR_FACE Rx SingleBg)<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u25bc<\/p>\n<p>[Watchface \/ CircleWatchface]<\/p>\n<p>\u00a0 \u251c\u2500 invalidate()\u00a0 \u2190 \u00ab\u043f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c!\u00bb<\/p>\n<p>\u00a0 \u2514\u2500 onDraw()\u00a0 \u00a0 \u00a0 \u2190 \u00ab\u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u043d\u043e\u00bb<\/p>\n<p>(\u0432 \u043b\u043e\u0433\u0430\u0445: WEAR_FACE onDraw(); +Xms after invalidate())<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u25bc<\/p>\n<p>[\u042d\u041a\u0420\u0410\u041d \u0427\u0410\u0421\u041e\u0412]\u00a0 \u2190 \u0432\u0438\u0434\u043d\u043e \u043d\u043e\u0432\u043e\u0435 BG + \u0434\u0440. \u0434\u0430\u043d\u043d\u044b\u0435.<\/p>\n<h3>\u041a\u0430\u043a\u0438\u0435 \u0444\u0430\u0439\u043b\u044b \u0431\u044b\u043b\u0438 \u043f\u0435\u0440\u0435\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u044b<\/h3>\n<p>1. \u0426\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442<\/p>\n<p>\ud83d\udcc4 wear\/src\/main\/kotlin\/app\/aaps\/wear\/watchfaces\/CircleWatchface.kt<\/p>\n<ul>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u0435 <strong>\u043b\u043e\u0433\u0438 (Log.d)<\/strong> \u0432 \u043c\u0435\u0442\u043e\u0434\u0430\u0445:<\/p>\n<ul>\n<li>\n<p>\u043f\u0440\u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u043e\u0442 RxBus (Rx SingleBg, Rx Status),<\/p>\n<\/li>\n<li>\n<p>\u043f\u0440\u0438 \u0432\u044b\u0437\u043e\u0432\u0435 invalidate(),<\/p>\n<\/li>\n<li>\n<p>\u043f\u0440\u0438 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0435 onDraw().<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u0441\u0447\u0451\u0442\u0447\u0438\u043a\u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 (SystemClock.elapsedRealtime()), \u0447\u0442\u043e\u0431\u044b \u0432\u0438\u0434\u0435\u0442\u044c \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0443 \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u044b\u0442\u0438\u044f\u043c\u0438.<\/p>\n<\/li>\n<li>\n<p>\u0423\u043f\u0440\u043e\u0449\u0435\u043d\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 (SGV, \u0394, ago, debug).<\/p>\n<\/li>\n<\/ul>\n<h4>2. \u0421\u0435\u0440\u0432\u0438\u0441 \u043f\u0440\u0438\u0451\u043c\u0430 \u0434\u0430\u043d\u043d\u044b\u0445<\/h4>\n<p>\ud83d\udcc4 wear\/src\/main\/kotlin\/app\/aaps\/wear\/watchfaces\/CircleWatchface.kt<\/p>\n<ul>\n<li>\n<p>\u041b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043e \u0432:<\/p>\n<ul>\n<li>\n<p>onMessageReceived() \u2014 \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u043c\u0435\u043d\u0442, \u043a\u043e\u0433\u0434\u0430 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u0438\u0448\u043b\u0438 \u043e\u0442 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430.<\/p>\n<\/li>\n<li>\n<p>\u043f\u0435\u0440\u0435\u0434 rxBus.send() \u2014 \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0443 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0434\u0430\u043b\u044c\u0448\u0435 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u0412\u0432\u0435\u0434\u0451\u043d \u043f\u0440\u0435\u0444\u0438\u043a\u0441 WEAR_PIPE \u0432 \u043b\u043e\u0433\u0430\u0445, \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u0434\u0435\u043b\u044f\u0442\u044c \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u00ab\u043a\u0430\u043d\u0430\u043b\u0430 \u0434\u0430\u043d\u043d\u044b\u0445\u00bb \u043e\u0442 \u0443\u0440\u043e\u0432\u043d\u044f \u00ab\u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0438\u00bb.<\/p>\n<\/li>\n<li>\n<p>\u0423\u0441\u0438\u043b\u0435\u043d <strong>keepAlive\/watchdog<\/strong>, \u0447\u0442\u043e\u0431\u044b \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u044f\u0437\u044c (\u043f\u0438\u043d\u0433 \u043a\u0430\u0436\u0434\u044b\u0435 30 \u0441\u0435\u043a\u0443\u043d\u0434, \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043e\u0431\u0440\u044b\u0432\u0430 &gt;120s).<\/p>\n<\/li>\n<\/ul>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d Partial wakeLog \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u044d\u043a\u0440\u0430\u043d \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u0438\u0445\u043e\u0434\u044f\u0442 \u043d\u043e\u0432\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u0438\u043d\u0430\u0447\u0435 \u0432\u043e \u0441\u043d\u0435 \u043e\u043d\u0438 \u043d\u0435 \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u044e\u0442\u0441\u044f (Partial WakeLock \u0434\u0435\u0440\u0436\u0438\u0442 <strong>CPU \u0431\u043e\u0434\u0440\u044b\u043c<\/strong>, \u043d\u043e \u044d\u043a\u0440\u0430\u043d <strong>\u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442<\/strong>.)<\/p>\n<h3>\u0427\u0442\u043e \u043f\u043e\u043a\u0430\u0437\u0430\u043b \u0430\u043d\u0430\u043b\u0438\u0437 \u043b\u043e\u0433\u043e\u0432<\/h3>\n<ul>\n<li>\n<p>\u0426\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e (p50 ~5 \u043c\u0441, p90 ~10 \u043c\u0441).<\/p>\n<\/li>\n<li>\n<p>\u0418\u043d\u043e\u0433\u0434\u0430 \u0435\u0441\u0442\u044c \u0440\u0435\u0434\u043a\u0438\u0435 \u0432\u0441\u043f\u043b\u0435\u0441\u043a\u0438 (\u0434\u043e \u0441\u0435\u043a\u0443\u043d\u0434), \u043d\u043e \u044d\u0442\u043e \u0435\u0434\u0438\u043d\u0438\u0447\u043d\u044b\u0435 \u0441\u043b\u0443\u0447\u0430\u0438.<\/p>\n<\/li>\n<li>\n<p>\u0418\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u044b \u043f\u0440\u0438\u0445\u043e\u0434\u0430 SingleBg \u2014 \u0432 \u0441\u0440\u0435\u0434\u043d\u0435\u043c ~54 \u0441\u0435\u043a\u0443\u043d\u0434\u044b, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0430\u0437\u0440\u044b\u0432 \u0432 \u043b\u043e\u0433\u0435 \u2014 ~4 \u043c\u0438\u043d\u0443\u0442\u044b (\u043c\u0435\u043d\u044c\u0448\u0435 \u00ab\u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445\u00bb 7 \u043c\u0438\u043d\u0443\u0442).<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0441\u0442\u043e\u044f\u0449\u0430\u044f \u043f\u0440\u0438\u0447\u0438\u043d\u0430 \u0437\u0430\u0432\u0438\u0441\u0430\u043d\u0438\u0439 \u2014 \u043d\u0435 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0430, \u0430 \u0442\u043e, \u0447\u0442\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u0435 SingleBg \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u0440\u0430\u0437\u0443 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u043e\u0442 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 \u043d\u0430 \u0447\u0430\u0441\u044b.<\/p>\n<\/li>\n<\/ul>\n<h3>\u0418\u0442\u043e\u0433<\/h3>\n<p>\u041d\u0430 \u0432\u0441\u0451\u043c \u043f\u0443\u0442\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043f\u0440\u043e\u0439\u0442\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044d\u0442\u0430\u043f\u043e\u0432 \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u043a\u0438 \u0438 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u0439:<\/p>\n<ol>\n<li>\n<p><strong>\u041d\u0430\u0447\u0430\u043b\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b<\/strong><\/p>\n<ul>\n<li>\n<p>\u041d\u0430 \u0447\u0430\u0441\u0430\u0445 Galaxy Watch 5 Pro \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u043b\u0438\u0441\u044c \u0437\u0430\u0432\u0438\u0441\u0430\u043d\u0438\u044f: \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u0430\u0445\u0430\u0440\u0430 \u043c\u043e\u0433\u043b\u0438 \u043d\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0434\u043e 30 \u043c\u0438\u043d\u0443\u0442.<\/p>\n<\/li>\n<li>\n<p>\u041f\u0435\u0440\u0432\u044b\u0435 \u043b\u043e\u0433\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0438, \u0447\u0442\u043e <strong>\u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442 CircleWatchface \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e<\/strong>, \u043d\u043e \u043d\u043e\u0432\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f (SingleBg) \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u0440\u0438\u0445\u043e\u0434\u044f\u0442 \u043d\u0430 \u0447\u0430\u0441\u044b.<\/p>\n<\/li>\n<li>\n<p>\u0412\u044b\u0432\u043e\u0434: \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043d\u0435 \u0432 \u043b\u043e\u0433\u0438\u043a\u0435 \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442\u0430, \u0430 \u0432 \u043a\u0430\u043d\u0430\u043b\u0435 \u0441\u0432\u044f\u0437\u0438 <strong>DataLayer \u2194 \u0442\u0435\u043b\u0435\u0444\u043e\u043d<\/strong>.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u0420\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0443\u0440\u043e\u0432\u043d\u0435\u0439 \u043b\u043e\u0433\u0430\u043c\u0438<\/strong><\/p>\n<ul>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u044b \u043b\u043e\u0433\u043e\u0432 WEAR_PIPE (\u043a\u0430\u043d\u0430\u043b \u0434\u0430\u043d\u043d\u044b\u0445) \u0438 WEAR_FACE (\u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0430).<\/p>\n<\/li>\n<li>\n<p>\u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b\u043e \u0442\u043e\u0447\u043d\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c, \u0433\u0434\u0435 \u043f\u0440\u043e\u043f\u0430\u0434\u0430\u044e\u0442 \u0434\u0430\u043d\u043d\u044b\u0435:<\/p>\n<ul>\n<li>\n<p>\u0435\u0441\u043b\u0438 \u043d\u0435\u0442 WEAR_PIPE onMessageReceived \u2192 \u0442\u0435\u043b\u0435\u0444\u043e\u043d \u043d\u0435 \u043f\u0440\u0438\u0441\u043b\u0430\u043b \u0434\u0430\u043d\u043d\u044b\u0435, \u0441\u0431\u043e\u0439 DataLayer;<\/p>\n<\/li>\n<li>\n<p>\u0435\u0441\u043b\u0438 Rx SingleBg \u0434\u043e\u0448\u0451\u043b \u2192 \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442 \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u0443\u0435\u0442 \u044d\u043a\u0440\u0430\u043d \u0437\u0430 \u043c\u0438\u043b\u043b\u0438\u0441\u0435\u043a\u0443\u043d\u0434\u044b.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u0420\u0435\u0434\u043a\u0438\u0435 \u043f\u0440\u043e\u0432\u0430\u043b\u044b<\/strong><\/p>\n<ul>\n<li>\n<p>\u0412 \u043b\u043e\u0433\u0430\u0445 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0440\u0430\u0437\u0440\u044b\u0432\u044b \u043f\u043e 3\u20135 \u043c\u0438\u043d\u0443\u0442.<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u0438\u0447\u0438\u043d\u0430: <strong>\u0442\u0435\u043b\u0435\u0444\u043e\u043d \u2192 \u0447\u0430\u0441\u044b<\/strong> \u0438\u043d\u043e\u0433\u0434\u0430 \u043d\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u043b\u0438 \u043f\u0430\u043a\u0435\u0442 \u0432\u043e\u0432\u0440\u0435\u043c\u044f (\u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u043a\u0430\u043d\u0430\u043b\u0430 DataLayer).<\/p>\n<\/li>\n<li>\n<p>\u041d\u043e \u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0430 \u0432\u0441\u0435\u0433\u0434\u0430 \u0448\u043b\u0430 \u0431\u044b\u0441\u0442\u0440\u043e (onDraw() &lt; 10 \u043c\u0441).<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u043d\u0430\u0445\u043e\u0434\u043a\u0430<\/strong><\/p>\n<ul>\n<li>\n<p>\u0412\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u043e, \u0447\u0442\u043e \u043f\u0440\u0438 \u043f\u0440\u0438\u0433\u043b\u0443\u0448\u0451\u043d\u043d\u043e\u043c \u0438\u043b\u0438 \u0441\u043f\u044f\u0449\u0435\u043c \u044d\u043a\u0440\u0430\u043d\u0435 <strong>\u0441\u0430\u043c\u0438 \u0447\u0430\u0441\u044b \u043d\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u044e\u0442 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0443<\/strong>.<\/p>\n<\/li>\n<li>\n<p>\u0412 \u043b\u043e\u0433\u0430\u0445 \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b\u043e \u043a\u0430\u043a \u043f\u0430\u0447\u043a\u0430 onDraw() \u0432\u044b\u0437\u043e\u0432\u043e\u0432 \u0440\u0430\u0437\u043e\u043c, \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u00ab\u0431\u0443\u0434\u0438\u043b\u00bb \u044d\u043a\u0440\u0430\u043d.<\/p>\n<\/li>\n<li>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0430 \u0447\u0430\u0441\u0442\u043e \u0431\u044b\u043b\u0430 \u043d\u0435 \u0432 DataLayer, \u0430 \u0432 <strong>\u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043f\u0440\u0438 ambient-\u0440\u0435\u0436\u0438\u043c\u0435<\/strong>.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u041f\u0440\u0438\u043d\u044f\u0442\u044b\u0435 \u043c\u0435\u0440\u044b<\/strong><\/p>\n<ul>\n<li>\n<p>\u0412 CircleWatchface \u0432\u043d\u0435\u0434\u0440\u0451\u043d <strong>wakeLock \u043d\u0430 \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0441\u043e\u0431\u044b\u0442\u0438\u044f\u0445<\/strong> \u2014 \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 \u0447\u0430\u0441\u043e\u0432 \u043a\u0440\u0430\u0442\u043a\u043e \u00ab\u0431\u0443\u0434\u0438\u0442\u0441\u044f\u00bb, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u044d\u043a\u0440\u0430\u043d \u0441\u043f\u0438\u0442.<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u043b\u043e\u0433\u0438 \u0441 \u043c\u0435\u0442\u043a\u0430\u043c\u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0447\u0442\u043e\u0431\u044b \u0432\u0438\u0434\u0435\u0442\u044c \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0443 \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u044b\u0442\u0438\u0435\u043c \u0438 invalidate\/onDraw.<\/p>\n<\/li>\n<li>\n<p>\u0423\u0441\u0438\u043b\u0435\u043d watchdog \u0432 DataLayerListenerServiceWear (ping \u043a\u0430\u0436\u0434\u044b\u0435 30 \u0441\u0435\u043a, \u0440\u0435\u0430\u043a\u0446\u0438\u044f \u043d\u0430 \u043e\u0431\u0440\u044b\u0432\u044b).<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h4>\u0424\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/h4>\n<ul>\n<li>\n<p><strong>\u0426\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442 CircleWatchface \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u0438 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e<\/strong>.<\/p>\n<\/li>\n<li>\n<p><strong>\u0420\u0435\u0434\u043a\u0438\u0435 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0431\u044b\u043b\u0438 \u0432\u044b\u0437\u0432\u0430\u043d\u044b \u043a\u0430\u043d\u0430\u043b\u043e\u043c DataLayer \u2194 \u0442\u0435\u043b\u0435\u0444\u043e\u043d<\/strong>, \u043d\u043e \u043f\u043e\u0437\u0436\u0435 \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0440\u043e\u043b\u044c \u0438\u0433\u0440\u0430\u0435\u0442 <strong>\u0441\u043e\u043d\/ambient \u0447\u0430\u0441\u043e\u0432<\/strong>, \u0433\u0434\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043e\u0442\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u0442 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0443.<\/p>\n<\/li>\n<li>\n<p>\u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f wakeLock \u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u043b\u043e\u0433\u0430\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0442\u0435\u043f\u0435\u0440\u044c \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0442\u0441\u044f \u043d\u0430 \u0447\u0430\u0441\u0430\u0445 <strong>\u0441 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0430\u043c\u0438 \u0434\u0430\u0436\u0435 \u0432 \u0441\u043f\u044f\u0449\u0435\u043c \u0440\u0435\u0436\u0438\u043c\u0435<\/strong>.<\/p>\n<\/li>\n<\/ul>\n<p>\u0413\u0440\u0443\u043f\u043f\u0430 \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0441\u0432\u044f\u0437\u0438 \u0438 \u043e\u043f\u044b\u0442\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0437\u0434\u0435\u0441\u044c <a href=\"https:\/\/t.me\/+e1X1IQa9LFkzMmE6\" rel=\"noopener noreferrer nofollow\">https:\/\/t.me\/+e1X1IQa9LFkzMmE6<\/a><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/946832\/\"> https:\/\/habr.com\/ru\/articles\/946832\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 &#8212; \u0442\u0435\u043b\u0435\u0444\u043e\u043d Samsung Galaxy S8+ (SM-G955FD), \u0447\u0430\u0441\u044b Galaxy Watch 5 Pro (P0ED)<\/p>\n<p>\u042f \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439 \u0437\u0430\u0432\u0438\u0441\u0430\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 \u0447\u0430\u0441\u0430\u0445, \u0447\u0442\u043e \u0441\u0442\u0430\u043b\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043a\u043e\u0433\u0434\u0430 \u0440\u0435\u0447\u044c \u0438\u0434\u0435\u0442 \u043e \u0437\u0430\u043d\u044f\u0442\u0438\u0438 \u0441\u043e\u043f\u0440\u0442\u043e\u043c. \u041c\u043d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434 \u0438 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0442\u0440\u0435\u043d\u0438\u0440\u043e\u0432\u043a\u0438 \u0443\u0434\u043e\u0431\u043d\u043e \u043e\u0442\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u043e\u0439 \u0440\u0443\u043a\u043e\u0439 \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u043f\u043e\u0440\u0442\u0438\u0432\u043d\u044b\u043c \u0440\u0435\u0436\u0438\u043c\u043e\u043c (\u0432 \u044d\u0442\u043e\u043c \u0444\u043e\u0440\u043a\u0435 \u043e\u043d \u043d\u0430\u043c\u0438 \u0442\u0430\u043a \u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435) \u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0447\u0430\u0441\u0430\u0445. <\/p>\n<p>\u0414\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0441\u043f\u043e\u0440\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 app, \u043d\u043e \u0438 \u0432 wear, \u0430 \u0442\u0430\u043a \u0436\u0435 \u0431\u044b\u043b\u0430 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0437\u0430\u043b\u0438\u043f\u0430\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 (\u043a\u043e\u0433\u0434\u0430 \u043d\u0430 \u0447\u0430\u0441\u044b \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u0433\u043b\u044e\u043a\u043e\u0437\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u044f\u0442 \u043d\u0435 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043d\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0435, \u0430 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043f\u043e\u0437\u0436\u0435 \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432\u0441\u0435\u0433\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437 \u0432 \u0447\u0430\u0441, \u043d\u0435 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e). \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0441\u0435\u0439\u0447\u0430\u0441 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u044f\u0442 \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0447\u0435\u043c \u0437\u0430 7 \u043c\u0438\u043d\u0443\u0442 (\u043d\u0430 \u0447\u0430\u0441\u044b). \u0415\u0441\u043b\u0438 \u0431\u044b\u0442\u044c \u0442\u043e\u0447\u043d\u044b\u043c &#8212; \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0438 \u043f\u043e\u043a\u0430\u0437 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043d\u0435 \u043f\u043e\u0437\u0436\u0435 7 \u043c\u0438\u043d\u0443\u0442.<\/p>\n<p>\u041d\u0438\u0436\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b, \u043a\u0430\u043a\u0438\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043e\u0442\u0441\u043b\u0435\u0434\u0438\u0442\u044c \u0432 \u043b\u043e\u0433\u0430\u0445 (\u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043b\u043e\u0433\u0438 \u0431\u044b\u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u043c\u043d\u043e\u0439) \u0438 \u043a\u0430\u043a \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043b \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443. <\/p>\n<h3>GitHub \u0438 \u0444\u043e\u0440\u043a<\/h3>\n<p>\u0420\u0430\u0431\u043e\u0442\u0430 \u0432\u0435\u043b\u0430\u0441\u044c \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 (\u0444\u043e\u0440\u043a\u0430) \ud83d\udcc2 OpenApsAIMI-additional-sport-options: <a href=\"https:\/\/github.com\/AlexeyDedeshko\/OpenApsAIMI-additional-sport-options\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/AlexeyDedeshko\/OpenApsAIMI-additional-sport-options<\/a>,  \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0443\u0436\u0435 \u0432 master.<\/p>\n<p>\u0414\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0430\u044f \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u0432 wear-dev.<\/p>\n<p><strong>\u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u0444\u043e\u0440\u043a\u0430:<\/strong><\/p>\n<p>\u0412 \u043d\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u043f\u043e\u0440\u0442\u0438\u0432\u043d\u044b\u043c \u0440\u0435\u0436\u0438\u043c\u043e\u043c \u0441 \u0447\u0430\u0441\u043e\u0432 (\u0434\u0430, \u0441\u043f\u043e\u0440\u0442\u0438\u0432\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u0438 \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435), \u0442\u0430\u043a \u0436\u0435 \u043f\u0435\u0440\u0435\u0440\u0430\u0431\u043e\u0442\u0430\u043d \u0441\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0438\u0437 \u0438\u043c\u0435\u044e\u0449\u0438\u0445\u0441\u044f<strong> \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442 \u0434\u043b\u044f Wear OS<\/strong> &#8212; \u043a\u0430\u043a \u0440\u0430\u0437 \u0434\u043b\u044f \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0441\u0432\u044f\u0437\u0438. \u0412\u043d\u0443\u0442\u0440\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0435\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442\u043e\u0432 \u043d\u043e \u043c\u044b \u043d\u0430\u043b\u0430\u0434\u0438\u043b\u0438 \u0441\u0432\u044f\u0437\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f CircleWatchface. \u041f\u0440\u0438 \u0432\u044b\u0431\u043e\u0440\u0435 \u043d\u0430 \u0447\u0430\u0441\u0430\u0445 \u043e\u043d \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f &#171;(\u043a\u0440\u0443\u0433\u043b\u044b\u0439)&#187;.<\/p>\n<p>\u0426\u0435\u043b\u044c \u2014 <strong>\u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f<\/strong> \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<p>\u0422\u043e \u0435\u0441\u0442\u044c \u044d\u0442\u043e <strong>\u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u044b\u0439 \u00ab\u043b\u0430\u0439\u0442\u00bb-\u0432\u0430\u0440\u0438\u0430\u043d\u0442<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043a\u0430\u043d\u0430\u043b\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 (DataLayer \u2192 RxBus \u2192 Watchface). \u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u043d\u0430 \u043d\u0435\u043c \u043f\u043e\u043a\u0430 \u043d\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0442\u0441\u044f \u043a\u043e\u0440\u0435\u0440\u043a\u0442\u043d\u043e \u0434\u0440\u0443\u0433\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043a\u0440\u043e\u043c\u0435 \u0433\u043b\u044e\u043a\u043e\u0437\u044b, \u0440\u0430\u0431\u043e\u0442\u0430 \u043d\u0430\u0434 \u044d\u0442\u0438\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0432\u0435\u0434\u0435\u0442\u0441\u044f. <\/p>\n<h3>\u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043f\u043e\u043d\u044f\u0442\u0438\u044f<\/h3>\n<h4>DataLayer<\/h4>\n<p>\u042d\u0442\u043e \u043a\u0430\u043d\u0430\u043b \u0441\u0432\u044f\u0437\u0438 \u043c\u0435\u0436\u0434\u0443 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043e\u043c \u0438 \u0447\u0430\u0441\u0430\u043c\u0438 \u043d\u0430 Wear OS. \u0422\u0435\u043b\u0435\u0444\u043e\u043d \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u044b\u0442\u0438\u044f (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u043e\u0432\u044b\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0441\u0430\u0445\u0430\u0440\u0430), \u0430 \u0447\u0430\u0441\u044b \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0442 \u0438\u0445. \u0412 \u043b\u043e\u0433\u0430\u0445 \u043c\u044b \u0432\u0438\u0434\u0438\u043c \u0440\u0430\u0431\u043e\u0442\u0443 \u044d\u0442\u043e\u0433\u043e \u043a\u0430\u043d\u0430\u043b\u0430 \u0441 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u043c: WEAR_PIPE &#8230;<\/p>\n<p><strong>onMessageReceived<\/strong><br \/>\u041c\u0435\u0442\u043e\u0434 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 DataLayerListenerServiceWear \u043d\u0430 \u0447\u0430\u0441\u0430\u0445. \u0421\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442, \u043a\u043e\u0433\u0434\u0430 \u043f\u043e <strong>DataLayer<\/strong> \u043f\u0440\u0438\u0448\u043b\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0441 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430.<\/p>\n<p>\u041a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437, \u043a\u043e\u0433\u0434\u0430 <strong>\u0442\u0435\u043b\u0435\u0444\u043e\u043d<\/strong> \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u043d\u043e\u0432\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u0447\u0430\u0441\u044b \u0447\u0435\u0440\u0435\u0437 DataLayer, \u043d\u0430 \u0447\u0430\u0441\u0430\u0445 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043c\u0435\u0442\u043e\u0434 onMessageReceived.<\/p>\n<ul>\n<li>\n<p>\u00ab\u0421\u043e\u0441\u0435\u0434\u043d\u0438\u0435\u00bb \u0437\u0430\u043f\u0438\u0441\u0438 onMessageReceived \u2014 \u044d\u0442\u043e <strong>\u0434\u0432\u0435 \u043f\u043e\u0434\u0440\u044f\u0434 \u0438\u0434\u0443\u0449\u0438\u0435 \u0442\u0430\u043a\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438<\/strong> \u0432 \u043b\u043e\u0433\u0435. \u041c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438 \u043e\u0431\u044b\u0447\u043d\u043e \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 ~1 \u043c\u0438\u043d\u0443\u0442\u0430 (\u0442.\u043a. \u043d\u043e\u0432\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0433\u043b\u044e\u043a\u043e\u0437\u044b \u043e\u0442 \u0441\u0435\u043d\u0441\u043e\u0440\u0430 \u043f\u0440\u0438\u0445\u043e\u0434\u044f\u0442 \u0440\u0430\u0437 \u0432 5 \u043c\u0438\u043d, \u043d\u043e \u043f\u043e DataLayer \u043c\u043e\u0433\u0443\u0442 \u043f\u0435\u0440\u0435\u0441\u044b\u043b\u0430\u0442\u044c\u0441\u044f \u0447\u0430\u0449\u0435). \u0415\u0441\u043b\u0438 \u0436\u0435 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u043c\u0438 \u0437\u0430\u043f\u0438\u0441\u044f\u043c\u0438 &gt;7 \u043c\u0438\u043d\u0443\u0442 \u2192 \u0437\u043d\u0430\u0447\u0438\u0442, <strong>\u0442\u0435\u043b\u0435\u0444\u043e\u043d \u043d\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u043b \u043d\u043e\u0432\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u0447\u0430\u0441\u044b<\/strong> (\u0438\u043b\u0438 \u0447\u0430\u0441\u044b \u0438\u0445 \u043d\u0435 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u043b\u0438). \u042d\u0442\u043e \u0438 \u0435\u0441\u0442\u044c \u00ab\u0437\u0430\u043b\u0438\u043f\u0430\u043d\u0438\u0435\u00bb \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u043a\u0430\u043d\u0430\u043b\u0430. \u0417\u0430\u043b\u0438\u043f\u0430\u043d\u0438\u0435 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0432\u044b\u0437\u0432\u0430\u043d\u043e \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u044d\u0442\u0438\u043c, \u043d\u043e \u044d\u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442 \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u043d.<\/p>\n<\/li>\n<\/ul>\n<ul>\n<li>\n<p>onMessageReceived \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0434\u0430\u043d\u043d\u044b\u0435 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043e\u0434\u043d\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0430\u0445\u0430\u0440\u0430). \u041d\u043e \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u0438\u0445 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435 \u043e\u043d \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u2014 \u044d\u0442\u0438\u043c \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u0434\u0440\u0443\u0433\u043e\u0439 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 (\u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442). \u0427\u0442\u043e\u0431\u044b \u00ab\u0440\u0430\u0437\u0434\u0430\u0442\u044c\u00bb \u0434\u0430\u043d\u043d\u044b\u0435 \u0432\u0441\u0435\u043c \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0447\u0430\u0441\u0442\u044f\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b, \u043e\u043d\u0438 \u043a\u043b\u0430\u0434\u0443\u0442\u0441\u044f \u043d\u0430 <strong>RxBus<\/strong> (\u0432 \u043b\u043e\u0433\u0430\u0445 WEAR_PIPE postToRxBus type=SingleBg)<\/p>\n<p>\u0422\u0443\u0442 \u043c\u044b \u0432\u0438\u0434\u0438\u043c, <strong>\u043a\u0430\u043a\u043e\u0439 \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0438\u043f \u0441\u043e\u0431\u044b\u0442\u0438\u044f<\/strong> \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d:<\/p>\n<ul>\n<li>\n<p>SingleBg \u2192 \u043e\u0434\u043d\u043e \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0435 \u0433\u043b\u044e\u043a\u043e\u0437\u044b,<\/p>\n<\/li>\n<li>\n<p>Status \u2192 \u0441\u0442\u0430\u0442\u0443\u0441 (IOB, BGI, \u043d\u0430\u0441\u043e\u0441),<\/p>\n<\/li>\n<li>\n<p>GraphData \u2192 \u043f\u0430\u0447\u043a\u0430 \u0442\u043e\u0447\u0435\u043a \u0434\u043b\u044f \u0433\u0440\u0430\u0444\u0438\u043a\u0430.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4>RxBus<\/h4>\n<p>\u042d\u0442\u043e \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044f\u044f \u00ab\u0448\u0438\u043d\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u0439\u00bb \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438. <\/p>\n<p>\u041a\u043e\u0433\u0434\u0430 DataLayer \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435, \u043e\u043d \u043d\u0435 \u0440\u0438\u0441\u0443\u0435\u0442 \u0438\u0445 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e, \u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442 \u0438\u0445 \u0447\u0435\u0440\u0435\u0437 <strong>RxBus<\/strong>.<\/p>\n<p>\u0422\u0430\u043a \u0447\u0430\u0441\u044b \u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043d\u0430 \u043e\u0434\u043d\u0438 \u0438 \u0442\u0435 \u0436\u0435 \u0434\u0430\u043d\u043d\u044b\u0435: \u0438 \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442, \u0438 \u0432\u0438\u0434\u0436\u0435\u0442\u044b, \u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u044b.<\/p>\n<p><strong>postToRxBus<\/strong><\/p>\n<p>\u041d\u0430\u0448\u0430 \u043c\u0435\u0442\u043a\u0430 \u043f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c, \u043a\u0430\u043a \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432\u043e \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044e\u044e \u0448\u0438\u043d\u0443 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 <strong>RxBus<\/strong>.<br \/>\u042d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442: \u00ab\u0414\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u0438\u0448\u043b\u0438 \u0438 \u0442\u0435\u043f\u0435\u0440\u044c \u044f \u0440\u0430\u0437\u0434\u0430\u044e \u0438\u0445 \u0432\u0441\u0435\u043c \u043f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u0430\u043c (\u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442)\u00bb.<br \/>\u279d \u041b\u043e\u0433: WEAR_PIPE postToRxBus type=SingleBg &#8230;<\/p>\n<h3>WEAR_FACE Rx SingleBg<\/h3>\n<p>\u042d\u0442\u043e \u043b\u043e\u0433 \u0432\u043d\u0443\u0442\u0440\u0438 \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442\u0430 (\u043a\u043b\u0430\u0441\u0441\u0430 CircleWatchface). \u041a\u043e\u0433\u0434\u0430 RxBus \u00ab\u0432\u044b\u043a\u0438\u043d\u0443\u043b\u00bb \u0441\u043e\u0431\u044b\u0442\u0438\u0435, \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442 \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435. \u041c\u044b \u043b\u043e\u0433\u0438\u0440\u0443\u0435\u043c \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u0440\u0438\u0445\u043e\u0434\u0430.<\/p>\n<h4>Watchface (\u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442)<\/h4>\n<p>\u042d\u0442\u043e \u043a\u043b\u0430\u0441\u0441 (\u0443 \u043d\u0430\u0441 CircleWatchface), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435 \u0447\u0430\u0441\u043e\u0432.<\/p>\n<p>\u0423 \u043d\u0435\u0433\u043e \u0435\u0441\u0442\u044c \u043c\u0435\u0442\u043e\u0434:<\/p>\n<p><strong>onDraw(Canvas)<\/strong> \u2014 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u0440\u043e\u0440\u0438\u0441\u043e\u0432\u043a\u0438. \u041a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437, \u043a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u044d\u043a\u0440\u0430\u043d, \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u044d\u0442\u043e\u0442 \u043c\u0435\u0442\u043e\u0434.<\/p>\n<p><strong>+Xms after invalidate()<\/strong><\/p>\n<p>\u041f\u0438\u0448\u0435\u0442\u0441\u044f \u0432 onDraw() \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442\u0430. \u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0438\u043b\u043b\u0438\u0441\u0435\u043a\u0443\u043d\u0434 \u043f\u0440\u043e\u0448\u043b\u043e \u043e\u0442 invalidate() (\u0437\u0430\u043f\u0440\u043e\u0441 \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u043a\u0438) \u0434\u043e \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u044b\u0437\u043e\u0432\u0430 onDraw() (\u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0438 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435).<\/p>\n<p>\u279d \u041b\u043e\u0433: WEAR_FACE: onDraw(); +5ms after invalidate()<\/p>\n<p>\u0412 \u043b\u043e\u0433\u0430\u0445 \u043e\u043d \u0444\u0438\u043a\u0441\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043a\u0430\u043a: WEAR_FACE: onDraw(); +5ms after invalidate()<\/p>\n<h4>\u0421\u043e\u0431\u044b\u0442\u0438\u044f SingleBg \/ Status \/ GraphData<\/h4>\n<ul>\n<li>\n<p><strong>SingleBg<\/strong> \u2014 \u043e\u0434\u043d\u043e \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0435 \u0443\u0440\u043e\u0432\u043d\u044f \u0441\u0430\u0445\u0430\u0440\u0430 (Single Blood Glucose).<\/p>\n<p>\u0422\u043e \u0441\u0430\u043c\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0440\u0438\u0441\u0443\u0435\u0442\u0441\u044f \u043a\u0440\u0443\u043f\u043d\u044b\u043c \u0448\u0440\u0438\u0444\u0442\u043e\u043c.<\/p>\n<p>\u0412 \u043b\u043e\u0433\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a: WEAR_FACE: Rx SingleBg at 123456789ms<\/p>\n<\/li>\n<li>\n<p><strong>Status<\/strong> \u2014 \u0441\u043e\u043f\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, IOB \u2014 \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0438\u043d\u0441\u0443\u043b\u0438\u043d, BGI, \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043d\u0430\u0441\u043e\u0441\u0430). \u0420\u0438\u0441\u0443\u044e\u0442\u0441\u044f \u043c\u0435\u043b\u043a\u0438\u043c \u0442\u0435\u043a\u0441\u0442\u043e\u043c \u0438\u043b\u0438 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u044b.<\/p>\n<\/li>\n<li>\n<p><strong>GraphData<\/strong> \u2014 \u043f\u0430\u0447\u043a\u0430 \u0442\u043e\u0447\u0435\u043a \u0434\u043b\u044f \u0433\u0440\u0430\u0444\u0438\u043a\u0430 \u0437\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0447\u0430\u0441\u044b. \u041c\u044b \u0438\u0445 \u0432 \u0443\u043f\u0440\u043e\u0449\u0451\u043d\u043d\u043e\u043c \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442\u0435 \u043d\u0435 \u0440\u0438\u0441\u0443\u0435\u043c, \u043d\u043e \u043e\u043d\u0438 \u0442\u043e\u0436\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u044f\u0442.<\/p>\n<\/li>\n<li>\n<p><strong>invalidate() \u2192 onDraw()<\/strong> \u2014 \u041a\u043e\u0433\u0434\u0430 \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u043d\u043e\u0432\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u043e\u043d \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 invalidate(). \u042d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442: \u00ab\u044d\u043a\u0440\u0430\u043d \u0443\u0441\u0442\u0430\u0440\u0435\u043b, \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c\u00bb. \u0414\u0430\u043b\u044c\u0448\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 onDraw(Canvas) \u2014 \u0438 \u043c\u044b \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u0440\u0438\u0441\u0443\u0435\u043c \u043d\u043e\u0432\u044b\u0435 \u0446\u0438\u0444\u0440\u044b.<\/p>\n<\/li>\n<\/ul>\n<h2>\ud83d\udcd6 \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u043e\u0431\u043c\u0435\u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u043c\u0438<\/h2>\n<p>\u041d\u0438\u0436\u0435 \u044f \u0441\u0432\u043e\u0438\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043e\u0431\u043c\u0435\u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u043c\u0438, \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0435 \u0442\u043e\u0447\u043d\u044b\u043c \u0438 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043e \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043b\u043e\u0436\u0438\u0442\u044c \u043e\u0441\u043d\u043e\u0432\u0443 &#171;\u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f&#187; \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u043e\u0431\u043c\u0435\u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u043c\u0438. \u042f \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 \u0435\u0441\u043b\u0438 \u0432\u044b \u0441\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u0438\u0440\u0443\u0435\u0442\u0435 \u043c\u0435\u043d\u044f \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445. <\/p>\n<p>\u0412\u0441\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441\u043e &#171;\u0448\u043f\u0438\u043e\u043d\u0430&#187; \u0432 \u043d\u0430\u0448\u0435\u043c \u0442\u0435\u043b\u0435 &#8212; \u044d\u0442\u043e \u0441\u0435\u043d\u0441\u043e\u0440 \u0433\u043b\u044e\u043a\u043e\u0437\u044b (\u0432 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 Dexcom 6 \u0441\u0435\u0440\u0438\u0438). \u041e\u043d \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0432 xDrip, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 AAPS. <br \/>AAPS \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u043e\u043f\u044b\u0442\u043d\u044b\u043c \u043f\u043e\u0447\u0442\u0430\u043b\u044c\u043e\u043d\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0431\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 (\u043a\u043b\u0430\u0434\u0435\u0442 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u043a\u0430\u043f\u0441\u0443\u043b\u0443) \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u043d\u0430 \u0447\u0430\u0441\u044b \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u043e\u0434\u0438\u0447\u043d\u043e\u0441\u0442\u044c\u044e. <\/p>\n<p>DataLayer (Layer &#8212; \u044d\u0442\u043e \u0432 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0435 \u0441\u043b\u043e\u0439, \u043f\u0440\u043e\u0441\u043b\u043e\u0439\u043a\u0430 \u0438\u043b\u0438 \u043d\u0435\u0441\u0443\u0448\u043a\u0430) \u044d\u0442\u043e \u043a\u0430\u043a \u0442\u0440\u0443\u0431\u0430 \u0432 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0438 \u043a\u043b\u0430\u0434\u0435\u0442\u0441\u044f \u043a\u0430\u043f\u0441\u0443\u043b\u0430 \u0438 \u043f\u043e \u044d\u0442\u043e\u0439 \u0442\u0440\u0443\u0431\u0435 \u043d\u0435\u0441\u0435\u0442\u0441\u044f \u043d\u0430 \u0447\u0430\u0441\u044b. \u0412 \u043b\u043e\u0433\u0430\u0445 \u044d\u0442\u043e &#171;WEAR_PIPE: onMessageReceived&#187;. <\/p>\n<p>\u041a\u0430\u043f\u0441\u0443\u043b\u0443 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u043d\u0435 \u0441\u0440\u0430\u0437\u0443 \u044d\u043a\u0440\u0430\u043d, \u0430 \u043e\u043d\u0430 \u043a\u0430\u043a \u0431\u044b \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u0432 \u0433\u0440\u043e\u043c\u043a\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u0435\u043b\u044c \u043d\u0430 \u043f\u043b\u043e\u0449\u0430\u0434\u0438, \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0439 RxBus. RxBus \u0433\u0440\u043e\u043c\u043a\u043e \u0447\u0438\u0442\u0430\u0435\u0442 \u043f\u043e\u0441\u043b\u0430\u043d\u0438\u0435 \u0438 \u0442\u043e\u0433\u0434\u0430 \u043b\u044e\u0431\u043e\u0439 \u0436\u0438\u0442\u0435\u043b\u044c (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442, \u0432\u0438\u0434\u0436\u0435\u0442 \u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0435\u0440\u0432\u0438\u0441) \u043c\u043e\u0436\u0435\u0442 \u0443\u0441\u043b\u044b\u0448\u0430\u0442\u044c \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435. \u0412 \u043b\u043e\u0433\u0430\u0445 \u044d\u0442\u043e \u0442\u0430\u043a: WEAR_FACE: Rx SingleBg at 123456789ms = \u043d\u0430 \u043f\u043b\u043e\u0449\u0430\u0434\u0438 \u043f\u0440\u043e\u0437\u0432\u0443\u0447\u0430\u043b\u043e \u043d\u043e\u0432\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0430\u0445\u0430\u0440\u0430. <\/p>\n<p>\u0426\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442 &#8212; \u044d\u0442\u043e \u0445\u0443\u0434\u043e\u0436\u043d\u0438\u043a, \u043a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u043d \u0441\u043b\u044b\u0448\u0438\u0442 \u043d\u043e\u0432\u043e\u0435 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u043e \u0433\u043b\u044e\u043a\u043e\u0437\u0435 \u043d\u0430 \u043f\u043b\u043e\u0449\u0430\u0434\u0438 &#8212; \u043e\u043d \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u0442 \u0435\u0433\u043e \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435. \u041b\u043e\u0433\u0438\u043a\u0430 \u0445\u0443\u0434\u043e\u0436\u043d\u0438\u043a\u0430 \u0442\u0430\u043a\u0430\u044f, \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0435\u043c\u0443 \u0433\u043e\u0432\u043e\u0440\u044f\u0442 &#8212; \u0442\u0432\u043e\u0439 \u0440\u0438\u0441\u043e\u043d\u043e\u043a \u0443\u0441\u0442\u0430\u0440\u0435\u043b, \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u0443\u0439 &#8212; \u044d\u0442\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0430 invalidate(). \u041f\u043e\u0442\u043e\u043c \u0445\u0443\u0434\u043e\u0436\u043d\u0438\u043a \u0431\u0435\u0440\u0435\u0442 \u043a\u0438\u0441\u0442\u043e\u0447\u043a\u0443 \u0438 \u0440\u0438\u0441\u0443\u0435\u0442 \u043d\u0430 \u0445\u043e\u043b\u0441\u0442\u0435 (onDraw(Canvas)). \u0412 \u043b\u043e\u0433\u0430\u0445 WEAR_FACE: onDraw(); +5ms after invalidate().<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043e\u0448\u043b\u0438 \u0434\u043e RxBus \u0438 \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442\u0430, \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0430 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 <strong>\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0438\u043b\u043b\u0438\u0441\u0435\u043a\u0443\u043d\u0434<\/strong>.<\/p>\n<p>\u0418\u0442\u043e\u0433: \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 <strong>\u043f\u0435\u0440\u0435\u0441\u044b\u043b\u043a\u0438 \u0441 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 \u043d\u0430 \u0447\u0430\u0441\u044b <\/strong>(\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043c\u043d\u0435 \u043f\u043e \u043d\u0430\u0447\u0430\u043b\u0443). \u041d\u043e \u0432 \u0438\u0442\u043e\u0433\u0435 \u043e\u043d\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438 \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0438 \u043a\u043e\u0433\u0434\u0430 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0432\u0432\u0438\u0434\u0443 \u0442\u043e\u0433\u043e \u0447\u0442\u043e \u0430\u043d\u0434\u0440\u043e\u0438\u0434 \u043d\u0435 \u0434\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0433\u0434\u0430 \u0447\u0430\u0441\u044b \u0441\u043f\u044f\u0442 \u0438 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0438\u0445 \u0431\u0443\u0434\u0435\u0438\u0442\u044c. \u042d\u0442\u043e \u043c\u044b \u0442\u043e\u0436\u0435 \u043f\u043e\u043b\u0435\u0447\u0438\u043b\u0438. <\/p>\n<p><strong>\u0421\u0445\u0435\u043c\u0430\u0442\u0438\u0447\u043d\u043e \u0442\u0430\u043a <\/strong><\/p>\n<p>[SENSOR]<\/p>\n<p>\u00a0 \u2514\u2500 \u0438\u0437\u043c\u0435\u0440\u044f\u0435\u0442 \u0441\u0430\u0445\u0430\u0440 (\u043a\u0430\u0436\u0434\u044b\u0435 N \u043c\u0438\u043d\u0443\u0442)<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u25bc<\/p>\n<p>[PHONE \/ \u041c\u041e\u0411. \u041f\u0420\u0418\u041b\u041e\u0416\u0415\u041d\u0418\u0415]<\/p>\n<p>\u00a0 \u2514\u2500 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u25bc<\/p>\n<p>[DataLayer]\u00a0 \u2190 \u00ab\u0442\u0440\u0443\u0431\u0430\u00bb \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u2192\u0447\u0430\u0441\u044b<\/p>\n<p>(\u0432 \u043b\u043e\u0433\u0430\u0445: WEAR_PIPE onMessageReceived)<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u25bc<\/p>\n<p>[WEAR_PIPE] postToRxBus\u00a0 \u00a0 \u00a0 \u00a0 &lt;&#8212; \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0432 &#171;\u0448\u0438\u043d\u0443&#187; RxBus<\/p>\n<p>\u00a0  \u00a0\u00a0 v<\/p>\n<p>[RxBus]\u00a0 \u2190 \u00ab\u0433\u0440\u043e\u043c\u043a\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u0435\u043b\u044c\u00bb \u0432\u043d\u0443\u0442\u0440\u0438 \u0447\u0430\u0441\u043e\u0432<\/p>\n<p>(\u0432 \u043b\u043e\u0433\u0430\u0445 \u043d\u0430 \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442\u0435: WEAR_FACE Rx SingleBg)<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u25bc<\/p>\n<p>[Watchface \/ CircleWatchface]<\/p>\n<p>\u00a0 \u251c\u2500 invalidate()\u00a0 \u2190 \u00ab\u043f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c!\u00bb<\/p>\n<p>\u00a0 \u2514\u2500 onDraw()\u00a0 \u00a0 \u00a0 \u2190 \u00ab\u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u043d\u043e\u00bb<\/p>\n<p>(\u0432 \u043b\u043e\u0433\u0430\u0445: WEAR_FACE onDraw(); +Xms after invalidate())<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u25bc<\/p>\n<p>[\u042d\u041a\u0420\u0410\u041d \u0427\u0410\u0421\u041e\u0412]\u00a0 \u2190 \u0432\u0438\u0434\u043d\u043e \u043d\u043e\u0432\u043e\u0435 BG + \u0434\u0440. \u0434\u0430\u043d\u043d\u044b\u0435.<\/p>\n<h3>\u041a\u0430\u043a\u0438\u0435 \u0444\u0430\u0439\u043b\u044b \u0431\u044b\u043b\u0438 \u043f\u0435\u0440\u0435\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u044b<\/h3>\n<p>1. \u0426\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442<\/p>\n<p>\ud83d\udcc4 wear\/src\/main\/kotlin\/app\/aaps\/wear\/watchfaces\/CircleWatchface.kt<\/p>\n<ul>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u0435 <strong>\u043b\u043e\u0433\u0438 (Log.d)<\/strong> \u0432 \u043c\u0435\u0442\u043e\u0434\u0430\u0445:<\/p>\n<ul>\n<li>\n<p>\u043f\u0440\u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u043e\u0442 RxBus (Rx SingleBg, Rx Status),<\/p>\n<\/li>\n<li>\n<p>\u043f\u0440\u0438 \u0432\u044b\u0437\u043e\u0432\u0435 invalidate(),<\/p>\n<\/li>\n<li>\n<p>\u043f\u0440\u0438 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0435 onDraw().<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u0441\u0447\u0451\u0442\u0447\u0438\u043a\u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 (SystemClock.elapsedRealtime()), \u0447\u0442\u043e\u0431\u044b \u0432\u0438\u0434\u0435\u0442\u044c \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0443 \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u044b\u0442\u0438\u044f\u043c\u0438.<\/p>\n<\/li>\n<li>\n<p>\u0423\u043f\u0440\u043e\u0449\u0435\u043d\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 (SGV, \u0394, ago, debug).<\/p>\n<\/li>\n<\/ul>\n<h4>2. \u0421\u0435\u0440\u0432\u0438\u0441 \u043f\u0440\u0438\u0451\u043c\u0430 \u0434\u0430\u043d\u043d\u044b\u0445<\/h4>\n<p>\ud83d\udcc4 wear\/src\/main\/kotlin\/app\/aaps\/wear\/watchfaces\/CircleWatchface.kt<\/p>\n<ul>\n<li>\n<p>\u041b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043e \u0432:<\/p>\n<ul>\n<li>\n<p>onMessageReceived() \u2014 \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u043c\u0435\u043d\u0442, \u043a\u043e\u0433\u0434\u0430 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u0438\u0448\u043b\u0438 \u043e\u0442 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430.<\/p>\n<\/li>\n<li>\n<p>\u043f\u0435\u0440\u0435\u0434 rxBus.send() \u2014 \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0443 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0434\u0430\u043b\u044c\u0448\u0435 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u0412\u0432\u0435\u0434\u0451\u043d \u043f\u0440\u0435\u0444\u0438\u043a\u0441 WEAR_PIPE \u0432 \u043b\u043e\u0433\u0430\u0445, \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u0434\u0435\u043b\u044f\u0442\u044c \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u00ab\u043a\u0430\u043d\u0430\u043b\u0430 \u0434\u0430\u043d\u043d\u044b\u0445\u00bb \u043e\u0442 \u0443\u0440\u043e\u0432\u043d\u044f \u00ab\u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0438\u00bb.<\/p>\n<\/li>\n<li>\n<p>\u0423\u0441\u0438\u043b\u0435\u043d <strong>keepAlive\/watchdog<\/strong>, \u0447\u0442\u043e\u0431\u044b \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u044f\u0437\u044c (\u043f\u0438\u043d\u0433 \u043a\u0430\u0436\u0434\u044b\u0435 30 \u0441\u0435\u043a\u0443\u043d\u0434, \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043e\u0431\u0440\u044b\u0432\u0430 &gt;120s).<\/p>\n<\/li>\n<\/ul>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d Partial wakeLog \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u044d\u043a\u0440\u0430\u043d \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u0438\u0445\u043e\u0434\u044f\u0442 \u043d\u043e\u0432\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u0438\u043d\u0430\u0447\u0435 \u0432\u043e \u0441\u043d\u0435 \u043e\u043d\u0438 \u043d\u0435 \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u044e\u0442\u0441\u044f (Partial WakeLock \u0434\u0435\u0440\u0436\u0438\u0442 <strong>CPU \u0431\u043e\u0434\u0440\u044b\u043c<\/strong>, \u043d\u043e \u044d\u043a\u0440\u0430\u043d <strong>\u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442<\/strong>.)<\/p>\n<h3>\u0427\u0442\u043e \u043f\u043e\u043a\u0430\u0437\u0430\u043b \u0430\u043d\u0430\u043b\u0438\u0437 \u043b\u043e\u0433\u043e\u0432<\/h3>\n<ul>\n<li>\n<p>\u0426\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e (p50 ~5 \u043c\u0441, p90 ~10 \u043c\u0441).<\/p>\n<\/li>\n<li>\n<p>\u0418\u043d\u043e\u0433\u0434\u0430 \u0435\u0441\u0442\u044c \u0440\u0435\u0434\u043a\u0438\u0435 \u0432\u0441\u043f\u043b\u0435\u0441\u043a\u0438 (\u0434\u043e \u0441\u0435\u043a\u0443\u043d\u0434), \u043d\u043e \u044d\u0442\u043e \u0435\u0434\u0438\u043d\u0438\u0447\u043d\u044b\u0435 \u0441\u043b\u0443\u0447\u0430\u0438.<\/p>\n<\/li>\n<li>\n<p>\u0418\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u044b \u043f\u0440\u0438\u0445\u043e\u0434\u0430 SingleBg \u2014 \u0432 \u0441\u0440\u0435\u0434\u043d\u0435\u043c ~54 \u0441\u0435\u043a\u0443\u043d\u0434\u044b, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0430\u0437\u0440\u044b\u0432 \u0432 \u043b\u043e\u0433\u0435 \u2014 ~4 \u043c\u0438\u043d\u0443\u0442\u044b (\u043c\u0435\u043d\u044c\u0448\u0435 \u00ab\u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445\u00bb 7 \u043c\u0438\u043d\u0443\u0442).<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0441\u0442\u043e\u044f\u0449\u0430\u044f \u043f\u0440\u0438\u0447\u0438\u043d\u0430 \u0437\u0430\u0432\u0438\u0441\u0430\u043d\u0438\u0439 \u2014 \u043d\u0435 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0430, \u0430 \u0442\u043e, \u0447\u0442\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u0435 SingleBg \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u0440\u0430\u0437\u0443 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u043e\u0442 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 \u043d\u0430 \u0447\u0430\u0441\u044b.<\/p>\n<\/li>\n<\/ul>\n<h3>\u0418\u0442\u043e\u0433<\/h3>\n<p>\u041d\u0430 \u0432\u0441\u0451\u043c \u043f\u0443\u0442\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043f\u0440\u043e\u0439\u0442\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044d\u0442\u0430\u043f\u043e\u0432 \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u043a\u0438 \u0438 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u0439:<\/p>\n<ol>\n<li>\n<p><strong>\u041d\u0430\u0447\u0430\u043b\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b<\/strong><\/p>\n<ul>\n<li>\n<p>\u041d\u0430 \u0447\u0430\u0441\u0430\u0445 Galaxy Watch 5 Pro \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u043b\u0438\u0441\u044c \u0437\u0430\u0432\u0438\u0441\u0430\u043d\u0438\u044f: \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u0430\u0445\u0430\u0440\u0430 \u043c\u043e\u0433\u043b\u0438 \u043d\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0434\u043e 30 \u043c\u0438\u043d\u0443\u0442.<\/p>\n<\/li>\n<li>\n<p>\u041f\u0435\u0440\u0432\u044b\u0435 \u043b\u043e\u0433\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0438, \u0447\u0442\u043e <strong>\u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442 CircleWatchface \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e<\/strong>, \u043d\u043e \u043d\u043e\u0432\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f (SingleBg) \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u0440\u0438\u0445\u043e\u0434\u044f\u0442 \u043d\u0430 \u0447\u0430\u0441\u044b.<\/p>\n<\/li>\n<li>\n<p>\u0412\u044b\u0432\u043e\u0434: \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043d\u0435 \u0432 \u043b\u043e\u0433\u0438\u043a\u0435 \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442\u0430, \u0430 \u0432 \u043a\u0430\u043d\u0430\u043b\u0435 \u0441\u0432\u044f\u0437\u0438 <strong>DataLayer \u2194 \u0442\u0435\u043b\u0435\u0444\u043e\u043d<\/strong>.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u0420\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0443\u0440\u043e\u0432\u043d\u0435\u0439 \u043b\u043e\u0433\u0430\u043c\u0438<\/strong><\/p>\n<ul>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u044b \u043b\u043e\u0433\u043e\u0432 WEAR_PIPE (\u043a\u0430\u043d\u0430\u043b \u0434\u0430\u043d\u043d\u044b\u0445) \u0438 WEAR_FACE (\u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0430).<\/p>\n<\/li>\n<li>\n<p>\u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b\u043e \u0442\u043e\u0447\u043d\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c, \u0433\u0434\u0435 \u043f\u0440\u043e\u043f\u0430\u0434\u0430\u044e\u0442 \u0434\u0430\u043d\u043d\u044b\u0435:<\/p>\n<ul>\n<li>\n<p>\u0435\u0441\u043b\u0438 \u043d\u0435\u0442 WEAR_PIPE onMessageReceived \u2192 \u0442\u0435\u043b\u0435\u0444\u043e\u043d \u043d\u0435 \u043f\u0440\u0438\u0441\u043b\u0430\u043b \u0434\u0430\u043d\u043d\u044b\u0435, \u0441\u0431\u043e\u0439 DataLayer;<\/p>\n<\/li>\n<li>\n<p>\u0435\u0441\u043b\u0438 Rx SingleBg \u0434\u043e\u0448\u0451\u043b \u2192 \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442 \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u0443\u0435\u0442 \u044d\u043a\u0440\u0430\u043d \u0437\u0430 \u043c\u0438\u043b\u043b\u0438\u0441\u0435\u043a\u0443\u043d\u0434\u044b.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u0420\u0435\u0434\u043a\u0438\u0435 \u043f\u0440\u043e\u0432\u0430\u043b\u044b<\/strong><\/p>\n<ul>\n<li>\n<p>\u0412 \u043b\u043e\u0433\u0430\u0445 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0440\u0430\u0437\u0440\u044b\u0432\u044b \u043f\u043e 3\u20135 \u043c\u0438\u043d\u0443\u0442.<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u0438\u0447\u0438\u043d\u0430: <strong>\u0442\u0435\u043b\u0435\u0444\u043e\u043d \u2192 \u0447\u0430\u0441\u044b<\/strong> \u0438\u043d\u043e\u0433\u0434\u0430 \u043d\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u043b\u0438 \u043f\u0430\u043a\u0435\u0442 \u0432\u043e\u0432\u0440\u0435\u043c\u044f (\u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u043a\u0430\u043d\u0430\u043b\u0430 DataLayer).<\/p>\n<\/li>\n<li>\n<p>\u041d\u043e \u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0430 \u0432\u0441\u0435\u0433\u0434\u0430 \u0448\u043b\u0430 \u0431\u044b\u0441\u0442\u0440\u043e (onDraw() &lt; 10 \u043c\u0441).<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u043d\u0430\u0445\u043e\u0434\u043a\u0430<\/strong><\/p>\n<ul>\n<li>\n<p>\u0412\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u043e, \u0447\u0442\u043e \u043f\u0440\u0438 \u043f\u0440\u0438\u0433\u043b\u0443\u0448\u0451\u043d\u043d\u043e\u043c \u0438\u043b\u0438 \u0441\u043f\u044f\u0449\u0435\u043c \u044d\u043a\u0440\u0430\u043d\u0435 <strong>\u0441\u0430\u043c\u0438 \u0447\u0430\u0441\u044b <\/strong><\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-474976","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/474976","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=474976"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/474976\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=474976"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=474976"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=474976"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}