Skip to content

Commit

Permalink
Merge AP3A.240515.001
Browse files Browse the repository at this point in the history
Change-Id: Ib9b9b36a44a92436e65d63dfa5f7e0e8a196eb18
  • Loading branch information
mhl-goog committed May 20, 2024
2 parents fa01e65 + a762b52 commit 7c5c2f1
Show file tree
Hide file tree
Showing 41 changed files with 930 additions and 435 deletions.
30 changes: 30 additions & 0 deletions Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,24 @@ license {
],
}

aidl_interface_defaults {
name: "audio-aidl-defaults",
unstable: true,
host_supported: true,
backend: {
cpp: {
enabled: true,
},
java: {
enabled: true,
},
rust: {
enabled: true,
},
},

}

aidl_interface {
name: "av-types-aidl",
unstable: true,
Expand Down Expand Up @@ -71,6 +89,18 @@ aidl_interface {
},
}

aidl_interface {
name: "audio-permission-aidl",
// TODO remove
vendor_available: true,
double_loadable: true,
defaults: ["audio-aidl-defaults"],
local_include_dir: "aidl",
srcs: [
"aidl/com/android/media/permission/*",
],
}

cc_library_headers {
name: "av-headers",
export_include_dirs: ["include"],
Expand Down
36 changes: 36 additions & 0 deletions aidl/com/android/media/permission/INativePermissionController.aidl
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
* Copyright (C) 2024 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 com.android.media.permission;

import com.android.media.permission.UidPackageState;

/**
* This interface is used by system_server to communicate permission information
* downwards towards native services.
* {@hide}
*/
interface INativePermissionController {
/**
* Initialize app-ids and their corresponding packages, to be used for package validation.
*/
void populatePackagesForUids(in List<UidPackageState> initialPackageStates);
/**
* Replace or populate the list of packages associated with a given uid.
* If the list is empty, the package no longer exists.
*/
void updatePackagesForUid(in UidPackageState newPackageState);
}
26 changes: 26 additions & 0 deletions aidl/com/android/media/permission/UidPackageState.aidl
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* Copyright (C) 2024 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 com.android.media.permission;

/**
* Entity representing the package names associated with a particular uid/app-id
* {@hide}
*/
parcelable UidPackageState {
int uid;
@utf8InCpp List<String> packageNames;
}
5 changes: 5 additions & 0 deletions camera/aidl/android/hardware/CameraExtensionSessionStats.aidl
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,9 @@ parcelable CameraExtensionSessionStats {
* true if advanced extensions are being used, false otherwise
*/
boolean isAdvanced = false;

/**
* Format of image capture request
*/
int captureFormat;
}
Loading

0 comments on commit 7c5c2f1

Please sign in to comment.