mirror of
https://github.com/openstf/stf
synced 2025-10-04 18:29:17 +02:00
add the column of CPU Platform in device list (#777)
* add the column of CPU Platform in device list * Update api.js * Update solo.js * Update devutil.js * Update device-column-service.js * Update device-list-controller.js
This commit is contained in:
parent
3e942a8eaa
commit
2dac3d1bbd
7 changed files with 16 additions and 1 deletions
|
@ -322,6 +322,7 @@ dbapi.saveDeviceIdentity = function(serial, identity) {
|
|||
, display: identity.display
|
||||
, phone: identity.phone
|
||||
, product: identity.product
|
||||
, cpuPlatform: identity.cpuPlatform
|
||||
}))
|
||||
}
|
||||
|
||||
|
|
|
@ -42,6 +42,7 @@ module.exports = syrup.serial()
|
|||
, new wire.DeviceDisplayMessage(identity.display)
|
||||
, new wire.DevicePhoneMessage(identity.phone)
|
||||
, identity.product
|
||||
, identity.cpuPlatform
|
||||
))
|
||||
])
|
||||
})
|
||||
|
|
|
@ -107,6 +107,7 @@ devutil.makeIdentity = function(serial, properties) {
|
|||
var sdk = properties['ro.build.version.sdk']
|
||||
var abi = properties['ro.product.cpu.abi']
|
||||
var product = properties['ro.product.name']
|
||||
var cpuPlatform = properties['ro.board.platform']
|
||||
|
||||
// Remove brand prefix for consistency
|
||||
if (model.substr(0, brand.length) === brand) {
|
||||
|
@ -130,5 +131,6 @@ devutil.makeIdentity = function(serial, properties) {
|
|||
, abi: abi
|
||||
, sdk: sdk
|
||||
, product: product
|
||||
, cpuPlatform: cpuPlatform
|
||||
}
|
||||
}
|
||||
|
|
|
@ -226,6 +226,7 @@ message DeviceIdentityMessage {
|
|||
required DeviceDisplayMessage display = 9;
|
||||
required DevicePhoneMessage phone = 11;
|
||||
optional string product = 12;
|
||||
optional string cpuPlatform = 13;
|
||||
}
|
||||
|
||||
message DeviceProperty {
|
||||
|
|
|
@ -195,6 +195,12 @@ module.exports = function DeviceColumnService($filter, gettext) {
|
|||
return device.abi || ''
|
||||
}
|
||||
})
|
||||
, cpuPlatform: TextCell({
|
||||
title: gettext('CPU Platform')
|
||||
, value: function(device) {
|
||||
return device.cpuPlatform || ''
|
||||
}
|
||||
})
|
||||
, phone: TextCell({
|
||||
title: gettext('Phone')
|
||||
, value: function(device) {
|
||||
|
|
|
@ -63,6 +63,10 @@ module.exports = function DeviceListCtrl(
|
|||
name: 'abi'
|
||||
, selected: false
|
||||
}
|
||||
, {
|
||||
name: 'cpuPlatform'
|
||||
, selected: false
|
||||
}
|
||||
, {
|
||||
name: 'browser'
|
||||
, selected: false
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue