Upgrade to Pro — share decks privately, control downloads, hide ads and more …

2021/02/03 発覚の COCOA Android版 不具合について

takuaraki
February 28, 2021

2021/02/03 発覚の COCOA Android版 不具合について

takuaraki

February 28, 2021
Tweet

More Decks by takuaraki

Other Decks in Programming

Transcript

  1. COCOAͰͷ௨஌൑ఆ • Transmission: [7, 7, 7, 7, 7, 7, 7,

    7] • Attenuation: [1, 2, 3, 4, 5, 6, 7, 8] • Duration: [0, 0, 0, 0, 1, 1, 1, 1] • DaysSinceLastExposure: [1, 1, 1, 1, 1, 1, 1, 1] • 4ͭͷείΞͷֻ͚ࢉ͕ 21 Λ௒͑ͨΒ௨஌͢Δ = AttenuationϨϕϧ͕2Ҏ্ɺDurationϨϕϧ͕4Ҏ্
  2. configuration = new Configuration { MinimumRiskScore = 21, AttenuationWeight =

    50, TransmissionWeight = 50, DurationWeight = 50, DaysSinceLastExposureWeight = 50, TransmissionRiskScores = new int[] { 7, 7, 7, 7, 7, 7, 7, 7 }, AttenuationScores = new[] { 1, 2, 3, 4, 5, 6, 7, 8 }, DurationScores = new[] { 0, 0, 0, 0, 1, 1, 1, 1 }, DaysSinceLastExposureScores = new[] { 1, 1, 1, 1, 1, 1, 1, 1 }, DurationAtAttenuationThresholds = new[] { 50, 70 } }; COCOAͷίʔυ (C#)
  3. Googleͷ Exposure Notification API int transmissionRiskScore = diagnosisKey.getTransmissionRiskLevel() == RiskLevel.RISK_LEVEL_INVALID

    ? 1 : configuration.getTransmissionRiskScores() [bucketRiskLevel(diagnosisKey)]; είΞ഑ྻΛ࢖Θͣʹ 1 Λฦͯ͠͠·͏ʂ
  4. COCOAͰͷ௨஌൑ఆ ԾʹAttenuationϨϕϧ2ɺDurationϨϕϧ4ͱ͢Δͱ • Transmission: [7, 7, 7, 7, 7, 7,

    7, 7] → 1 ʹͳͬͯ͠·͏ʂ • Attenuation: [1, 2, 3, 4, 5, 6, 7, 8] → 3 • Duration: [0, 0, 0, 0, 1, 1, 1, 1] → 1 • DaysSinceLastExposure: [1, 1, 1, 1, 1, 1, 1, 1] → 1 • 4ͭͷείΞͷֻ͚ࢉ 1 * 3 * 1 * 1 = 3 < 21 → ௨஌͞Εͳ͍ʂ