| 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 "bullhead": "Nexus 5X", | 11 "bullhead": "Nexus 5X", |
| 11 "flo": "Nexus 7 (2013)", | 12 "flo": "Nexus 7 (2013)", |
| 12 "flounder": "Nexus 9", | 13 "flounder": "Nexus 9", |
| 13 "foster": "NVIDIA Shield", | 14 "foster": "NVIDIA Shield", |
| 14 "fugu": "Nexus Player", | 15 "fugu": "Nexus Player", |
| 15 "grouper": "Nexus 7 (2012)", | 16 "grouper": "Nexus 7 (2012)", |
| 16 "hammerhead": "Nexus 5", | 17 "hammerhead": "Nexus 5", |
| 18 "heroqlteatt": "Galaxy S7", |
| 17 "m0": "Galaxy S3", | 19 "m0": "Galaxy S3", |
| 18 "mako": "Nexus 4", | 20 "mako": "Nexus 4", |
| 19 "manta": "Nexus 10", | 21 "manta": "Nexus 10", |
| 20 "shamu": "Nexus 6", | 22 "shamu": "Nexus 6", |
| 21 "sprout": "Android One", | 23 "sprout": "Android One", |
| 22 }; | 24 }; |
| 23 | 25 |
| 24 var UNKNOWN = "unknown"; | 26 var UNKNOWN = "unknown"; |
| 25 | 27 |
| 26 var GPU_ALIASES = { | 28 var GPU_ALIASES = { |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 return str; | 96 return str; |
| 95 }; | 97 }; |
| 96 | 98 |
| 97 var aliasMap = { | 99 var aliasMap = { |
| 98 "device_type": alias.android, | 100 "device_type": alias.android, |
| 99 "gpu": alias.gpu, | 101 "gpu": alias.gpu, |
| 100 } | 102 } |
| 101 | 103 |
| 102 return alias; | 104 return alias; |
| 103 })(); | 105 })(); |
| OLD | NEW |