1
0
Fork 0
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:
thinkhy 2017-12-16 16:50:25 +08:00 committed by GitHub
parent 3e942a8eaa
commit 2dac3d1bbd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 16 additions and 1 deletions

View file

@ -322,6 +322,7 @@ dbapi.saveDeviceIdentity = function(serial, identity) {
, display: identity.display
, phone: identity.phone
, product: identity.product
, cpuPlatform: identity.cpuPlatform
}))
}

View file

@ -42,6 +42,7 @@ module.exports = syrup.serial()
, new wire.DeviceDisplayMessage(identity.display)
, new wire.DevicePhoneMessage(identity.phone)
, identity.product
, identity.cpuPlatform
))
])
})

View file

@ -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
}
}

View file

@ -226,6 +226,7 @@ message DeviceIdentityMessage {
required DeviceDisplayMessage display = 9;
required DevicePhoneMessage phone = 11;
optional string product = 12;
optional string cpuPlatform = 13;
}
message DeviceProperty {

View file

@ -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) {

View file

@ -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