| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef BASE_ANDROID_BUILD_INFO_H_ | 5 #ifndef BASE_ANDROID_BUILD_INFO_H_ |
| 6 #define BASE_ANDROID_BUILD_INFO_H_ | 6 #define BASE_ANDROID_BUILD_INFO_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 } | 91 } |
| 92 | 92 |
| 93 const char* build_type() const { | 93 const char* build_type() const { |
| 94 return build_type_; | 94 return build_type_; |
| 95 } | 95 } |
| 96 | 96 |
| 97 int sdk_int() const { | 97 int sdk_int() const { |
| 98 return sdk_int_; | 98 return sdk_int_; |
| 99 } | 99 } |
| 100 | 100 |
| 101 int has_language_apk_splits() const { | |
| 102 return has_language_apk_splits_; | |
| 103 } | |
| 104 | |
| 105 const char* java_exception_info() const { | 101 const char* java_exception_info() const { |
| 106 return java_exception_info_; | 102 return java_exception_info_; |
| 107 } | 103 } |
| 108 | 104 |
| 109 void SetJavaExceptionInfo(const std::string& info); | 105 void SetJavaExceptionInfo(const std::string& info); |
| 110 | 106 |
| 111 void ClearJavaExceptionInfo(); | 107 void ClearJavaExceptionInfo(); |
| 112 | 108 |
| 113 static bool RegisterBindings(JNIEnv* env); | 109 static bool RegisterBindings(JNIEnv* env); |
| 114 | 110 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 126 const char* const model_; | 122 const char* const model_; |
| 127 const char* const brand_; | 123 const char* const brand_; |
| 128 const char* const android_build_id_; | 124 const char* const android_build_id_; |
| 129 const char* const android_build_fp_; | 125 const char* const android_build_fp_; |
| 130 const char* const package_version_code_; | 126 const char* const package_version_code_; |
| 131 const char* const package_version_name_; | 127 const char* const package_version_name_; |
| 132 const char* const package_label_; | 128 const char* const package_label_; |
| 133 const char* const package_name_; | 129 const char* const package_name_; |
| 134 const char* const build_type_; | 130 const char* const build_type_; |
| 135 const int sdk_int_; | 131 const int sdk_int_; |
| 136 const bool has_language_apk_splits_; | |
| 137 // This is set via set_java_exception_info, not at constructor time. | 132 // This is set via set_java_exception_info, not at constructor time. |
| 138 const char* java_exception_info_; | 133 const char* java_exception_info_; |
| 139 | 134 |
| 140 DISALLOW_COPY_AND_ASSIGN(BuildInfo); | 135 DISALLOW_COPY_AND_ASSIGN(BuildInfo); |
| 141 }; | 136 }; |
| 142 | 137 |
| 143 } // namespace android | 138 } // namespace android |
| 144 } // namespace base | 139 } // namespace base |
| 145 | 140 |
| 146 #endif // BASE_ANDROID_BUILD_INFO_H_ | 141 #endif // BASE_ANDROID_BUILD_INFO_H_ |
| OLD | NEW |