1 /* 2 * Copyright (C) 2020 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #pragma once 18 19 #include <binder/IBinder.h> 20 21 using namespace android; 22 23 enum Transaction { 24 TEST_BOOL = IBinder::FIRST_CALL_TRANSACTION, 25 TEST_BYTE, 26 TEST_U16, 27 TEST_I32, 28 TEST_I64, 29 TEST_U64, 30 TEST_F32, 31 TEST_F64, 32 TEST_STRING, 33 TEST_FILE_DESCRIPTOR, 34 TEST_IBINDER, 35 TEST_STATUS, 36 TEST_FAIL, 37 }; 38 39 extern const int8_t TESTDATA_I8[4]; 40 extern const uint8_t TESTDATA_U8[4]; 41 extern const char16_t TESTDATA_CHARS[4]; 42 extern const int32_t TESTDATA_I32[4]; 43 extern const int64_t TESTDATA_I64[4]; 44 extern const uint64_t TESTDATA_U64[4]; 45 extern const float TESTDATA_FLOAT[4]; 46 extern const double TESTDATA_DOUBLE[4]; 47 extern const bool TESTDATA_BOOL[4]; 48 extern const char* const TESTDATA_STRS[4]; 49