1891553a8751be4bee3ed98bf1984c5d42a879e99Michael Schwartz/* 2891553a8751be4bee3ed98bf1984c5d42a879e99Michael Schwartz * Copyright (C) 2017 The Android Open Source Project 3891553a8751be4bee3ed98bf1984c5d42a879e99Michael Schwartz * 4891553a8751be4bee3ed98bf1984c5d42a879e99Michael Schwartz * Licensed under the Apache License, Version 2.0 (the "License"); 5891553a8751be4bee3ed98bf1984c5d42a879e99Michael Schwartz * you may not use this file except in compliance with the License. 6891553a8751be4bee3ed98bf1984c5d42a879e99Michael Schwartz * You may obtain a copy of the License at 7891553a8751be4bee3ed98bf1984c5d42a879e99Michael Schwartz * 8891553a8751be4bee3ed98bf1984c5d42a879e99Michael Schwartz * http://www.apache.org/licenses/LICENSE-2.0 9891553a8751be4bee3ed98bf1984c5d42a879e99Michael Schwartz * 10891553a8751be4bee3ed98bf1984c5d42a879e99Michael Schwartz * Unless required by applicable law or agreed to in writing, software 11891553a8751be4bee3ed98bf1984c5d42a879e99Michael Schwartz * distributed under the License is distributed on an "AS IS" BASIS, 12891553a8751be4bee3ed98bf1984c5d42a879e99Michael Schwartz * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13891553a8751be4bee3ed98bf1984c5d42a879e99Michael Schwartz * See the License for the specific language governing permissions and 14891553a8751be4bee3ed98bf1984c5d42a879e99Michael Schwartz * limitations under the License. 15891553a8751be4bee3ed98bf1984c5d42a879e99Michael Schwartz */ 16891553a8751be4bee3ed98bf1984c5d42a879e99Michael Schwartz 174641979fe9d6a0ce095362877ea8e99a969087c9Yifan Hong#include "utils-fake.h" 18891553a8751be4bee3ed98bf1984c5d42a879e99Michael Schwartz 19891553a8751be4bee3ed98bf1984c5d42a879e99Michael Schwartznamespace android { 20891553a8751be4bee3ed98bf1984c5d42a879e99Michael Schwartznamespace vintf { 214641979fe9d6a0ce095362877ea8e99a969087c9Yifan Hongnamespace details { 224641979fe9d6a0ce095362877ea8e99a969087c9Yifan Hongstatus_t MockRuntimeInfo::doFetch(RuntimeInfo::FetchFlags) { 234641979fe9d6a0ce095362877ea8e99a969087c9Yifan Hong if (failNextFetch_) { 244641979fe9d6a0ce095362877ea8e99a969087c9Yifan Hong failNextFetch_ = false; 254641979fe9d6a0ce095362877ea8e99a969087c9Yifan Hong return android::UNKNOWN_ERROR; 264641979fe9d6a0ce095362877ea8e99a969087c9Yifan Hong } 27891553a8751be4bee3ed98bf1984c5d42a879e99Michael Schwartz mOsName = "Linux"; 28891553a8751be4bee3ed98bf1984c5d42a879e99Michael Schwartz mNodeName = "localhost"; 29891553a8751be4bee3ed98bf1984c5d42a879e99Michael Schwartz mOsRelease = "3.18.31-g936f9a479d0f"; 30891553a8751be4bee3ed98bf1984c5d42a879e99Michael Schwartz mKernelVersion = {3, 18, 31}; 31891553a8751be4bee3ed98bf1984c5d42a879e99Michael Schwartz mOsVersion = "#4 SMP PREEMPT Wed Feb 1 18:10:52 PST 2017"; 32891553a8751be4bee3ed98bf1984c5d42a879e99Michael Schwartz mHardwareId = "aarch64"; 33891553a8751be4bee3ed98bf1984c5d42a879e99Michael Schwartz mKernelSepolicyVersion = 30; 34891553a8751be4bee3ed98bf1984c5d42a879e99Michael Schwartz mKernelConfigs = {{"CONFIG_64BIT", "y"}, 35891553a8751be4bee3ed98bf1984c5d42a879e99Michael Schwartz {"CONFIG_ANDROID_BINDER_DEVICES", "\"binder,hwbinder\""}, 36891553a8751be4bee3ed98bf1984c5d42a879e99Michael Schwartz {"CONFIG_ARCH_MMAP_RND_BITS", "24"}, 37891553a8751be4bee3ed98bf1984c5d42a879e99Michael Schwartz {"CONFIG_BUILD_ARM64_APPENDED_DTB_IMAGE_NAMES", "\"\""}, 38891553a8751be4bee3ed98bf1984c5d42a879e99Michael Schwartz {"CONFIG_ILLEGAL_POINTER_VALUE", "0xdead000000000000"}}; 39891553a8751be4bee3ed98bf1984c5d42a879e99Michael Schwartz 40891553a8751be4bee3ed98bf1984c5d42a879e99Michael Schwartz return OK; 41891553a8751be4bee3ed98bf1984c5d42a879e99Michael Schwartz} 42891553a8751be4bee3ed98bf1984c5d42a879e99Michael Schwartz 434641979fe9d6a0ce095362877ea8e99a969087c9Yifan Hong} // namespace details 44891553a8751be4bee3ed98bf1984c5d42a879e99Michael Schwartz} // namespace vintf 45891553a8751be4bee3ed98bf1984c5d42a879e99Michael Schwartz} // namespace android 46