mirror of
https://github.com/openstf/stf
synced 2025-10-05 02:29:26 +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
|
, display: identity.display
|
||||||
, phone: identity.phone
|
, phone: identity.phone
|
||||||
, product: identity.product
|
, product: identity.product
|
||||||
|
, cpuPlatform: identity.cpuPlatform
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -42,6 +42,7 @@ module.exports = syrup.serial()
|
||||||
, new wire.DeviceDisplayMessage(identity.display)
|
, new wire.DeviceDisplayMessage(identity.display)
|
||||||
, new wire.DevicePhoneMessage(identity.phone)
|
, new wire.DevicePhoneMessage(identity.phone)
|
||||||
, identity.product
|
, identity.product
|
||||||
|
, identity.cpuPlatform
|
||||||
))
|
))
|
||||||
])
|
])
|
||||||
})
|
})
|
||||||
|
|
|
@ -107,6 +107,7 @@ devutil.makeIdentity = function(serial, properties) {
|
||||||
var sdk = properties['ro.build.version.sdk']
|
var sdk = properties['ro.build.version.sdk']
|
||||||
var abi = properties['ro.product.cpu.abi']
|
var abi = properties['ro.product.cpu.abi']
|
||||||
var product = properties['ro.product.name']
|
var product = properties['ro.product.name']
|
||||||
|
var cpuPlatform = properties['ro.board.platform']
|
||||||
|
|
||||||
// Remove brand prefix for consistency
|
// Remove brand prefix for consistency
|
||||||
if (model.substr(0, brand.length) === brand) {
|
if (model.substr(0, brand.length) === brand) {
|
||||||
|
@ -130,5 +131,6 @@ devutil.makeIdentity = function(serial, properties) {
|
||||||
, abi: abi
|
, abi: abi
|
||||||
, sdk: sdk
|
, sdk: sdk
|
||||||
, product: product
|
, product: product
|
||||||
|
, cpuPlatform: cpuPlatform
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -226,6 +226,7 @@ message DeviceIdentityMessage {
|
||||||
required DeviceDisplayMessage display = 9;
|
required DeviceDisplayMessage display = 9;
|
||||||
required DevicePhoneMessage phone = 11;
|
required DevicePhoneMessage phone = 11;
|
||||||
optional string product = 12;
|
optional string product = 12;
|
||||||
|
optional string cpuPlatform = 13;
|
||||||
}
|
}
|
||||||
|
|
||||||
message DeviceProperty {
|
message DeviceProperty {
|
||||||
|
|
|
@ -195,6 +195,12 @@ module.exports = function DeviceColumnService($filter, gettext) {
|
||||||
return device.abi || ''
|
return device.abi || ''
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
, cpuPlatform: TextCell({
|
||||||
|
title: gettext('CPU Platform')
|
||||||
|
, value: function(device) {
|
||||||
|
return device.cpuPlatform || ''
|
||||||
|
}
|
||||||
|
})
|
||||||
, phone: TextCell({
|
, phone: TextCell({
|
||||||
title: gettext('Phone')
|
title: gettext('Phone')
|
||||||
, value: function(device) {
|
, value: function(device) {
|
||||||
|
|
|
@ -63,6 +63,10 @@ module.exports = function DeviceListCtrl(
|
||||||
name: 'abi'
|
name: 'abi'
|
||||||
, selected: false
|
, selected: false
|
||||||
}
|
}
|
||||||
|
, {
|
||||||
|
name: 'cpuPlatform'
|
||||||
|
, selected: false
|
||||||
|
}
|
||||||
, {
|
, {
|
||||||
name: 'browser'
|
name: 'browser'
|
||||||
, selected: false
|
, selected: false
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue