Files
Shawn Willden b1a00f59f8 Add nullability annotations to ISecureElementService et al
The Java OMAPI implementation passes and expects null pointers for
many arguments/return values, which means the Rust native
implementation must as well to be compatible.  But the Rust AIDL
backend does not allow arguments/returns to be nullable without the
appropriate annotation.  This CL provides the required annotations.

Note that the build flag is not actually used because AIDL doesn't
support flagging.

Bug: 380331467
Test: atest CtsOmapiTestCases
Flag: build.RELEASE_NATIVE_OMAPI
Change-Id: Ia8aedeb2d1cbf6f450ae9879771a304c5be5705a
2025-05-09 16:58:58 -06:00

46 lines
1.3 KiB
Plaintext

// Copyright 2020, The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
aidl_interface {
name: "android.se.omapi",
vendor_available: true,
srcs: ["android/se/omapi/*.aidl"],
stability: "vintf",
backend: {
java: {
sdk_version: "module_current",
min_sdk_version: "35", // Make it 36 once available.
apex_available: [
"//apex_available:platform",
"com.android.nfcservices",
],
},
rust: {
enabled: true,
},
},
versions_with_info: [
{
version: "1",
imports: [],
},
],
frozen: false,
}