| OLD | NEW |
| 1 // Copyright 2016 The LUCI Authors. All rights reserved. | 1 // Copyright 2016 The LUCI Authors. All rights reserved. |
| 2 // Use of this source code is governed under the Apache License, Version 2.0 | 2 // Use of this source code is governed under the Apache License, Version 2.0 |
| 3 // that can be found in the LICENSE file. | 3 // that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // TODO(kjlubick): add tests for this code | 5 // TODO(kjlubick): add tests for this code |
| 6 | 6 |
| 7 this.swarming = this.swarming || {}; | 7 this.swarming = this.swarming || {}; |
| 8 this.swarming.alias = this.swarming.alias || (function(){ | 8 this.swarming.alias = this.swarming.alias || (function(){ |
| 9 var ANDROID_ALIASES = { | 9 var ANDROID_ALIASES = { |
| 10 "angler": "Nexus 6p", | 10 "angler": "Nexus 6p", |
| 11 "bullhead": "Nexus 5X", | 11 "bullhead": "Nexus 5X", |
| 12 "dragon": "Pixel C", | 12 "dragon": "Pixel C", |
| 13 "flo": "Nexus 7 (2013)", | 13 "flo": "Nexus 7 (2013)", |
| 14 "flounder": "Nexus 9", | 14 "flounder": "Nexus 9", |
| 15 "foster": "NVIDIA Shield", | 15 "foster": "NVIDIA Shield", |
| 16 "fugu": "Nexus Player", | 16 "fugu": "Nexus Player", |
| 17 "gce_x86": "Android on GCE", |
| 17 "grouper": "Nexus 7 (2012)", | 18 "grouper": "Nexus 7 (2012)", |
| 18 "hammerhead": "Nexus 5", | 19 "hammerhead": "Nexus 5", |
| 19 "heroqlteatt": "Galaxy S7", | 20 "heroqlteatt": "Galaxy S7", |
| 20 "m0": "Galaxy S3", | 21 "m0": "Galaxy S3", |
| 21 "mako": "Nexus 4", | 22 "mako": "Nexus 4", |
| 22 "manta": "Nexus 10", | 23 "manta": "Nexus 10", |
| 23 "marlin": "Pixel XL", | 24 "marlin": "Pixel XL", |
| 24 "sailfish": "Pixel", | 25 "sailfish": "Pixel", |
| 25 "shamu": "Nexus 6", | 26 "shamu": "Nexus 6", |
| 26 "sprout": "Android One", | 27 "sprout": "Android One", |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 | 141 |
| 141 var aliasMap = { | 142 var aliasMap = { |
| 142 "device_type": alias.android, | 143 "device_type": alias.android, |
| 143 "gpu": alias.gpu, | 144 "gpu": alias.gpu, |
| 144 "battery_health": alias.battery_health, | 145 "battery_health": alias.battery_health, |
| 145 "battery_status": alias.battery_status, | 146 "battery_status": alias.battery_status, |
| 146 } | 147 } |
| 147 | 148 |
| 148 return alias; | 149 return alias; |
| 149 })(); | 150 })(); |
| OLD | NEW |