• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
2 
3 Licensed under the Apache License, Version 2.0 (the "License");
4 you may not use this file except in compliance with the License.
5 You may obtain a copy of the License at
6 
7     http://www.apache.org/licenses/LICENSE-2.0
8 
9 Unless required by applicable law or agreed to in writing, software
10 distributed under the License is distributed on an "AS IS" BASIS,
11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 See the License for the specific language governing permissions and
13 limitations under the License.
14 ==============================================================================*/
15 #ifndef TENSORFLOW_LITE_EXPERIMENTAL_ACCELERATION_COMPATIBILITY_ANDROID_INFO_H_
16 #define TENSORFLOW_LITE_EXPERIMENTAL_ACCELERATION_COMPATIBILITY_ANDROID_INFO_H_
17 
18 #include <string>
19 
20 #include "absl/status/status.h"
21 
22 namespace tflite {
23 namespace acceleration {
24 
25 // Information about and Android device, used for determining compatibility
26 // status.
27 struct AndroidInfo {
28   // Property ro.build.version.sdk
29   std::string android_sdk_version;
30   // Property ro.product.model
31   std::string model;
32   // Property ro.product.device
33   std::string device;
34   // Property ro.product.manufacturer
35   std::string manufacturer;
36 };
37 
38 absl::Status RequestAndroidInfo(AndroidInfo* info_out);
39 
40 }  // namespace acceleration
41 }  // namespace tflite
42 
43 #endif  // TENSORFLOW_LITE_EXPERIMENTAL_ACCELERATION_COMPATIBILITY_ANDROID_INFO_H_
44