diff options
| author | Jeff Sharkey <jsharkey@android.com> | 2016-01-06 16:47:42 -0700 |
|---|---|---|
| committer | Jeff Sharkey <jsharkey@android.com> | 2016-01-07 10:33:26 -0700 |
| commit | 8588bc1ef1f020bbe4a24d46874f675708149a57 (patch) | |
| tree | ac8ebdc1706f519a8f798ac4f5ca3e26e0439e99 /core/java/android/annotation/UserIdInt.java | |
| parent | aec99bf78ff2404bf5497fdcb01430150709d8b3 (diff) | |
Add flags to requests for package UID/GIDs.
This gives callers the ability to request details for missing
packages. Also add annotations for userId and appId variables and
start tagging their usage.
Change-Id: I63d5d7f870ac4b7ebae501e0ba4f40e08b14f3f6
Diffstat (limited to 'core/java/android/annotation/UserIdInt.java')
| -rw-r--r-- | core/java/android/annotation/UserIdInt.java | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/core/java/android/annotation/UserIdInt.java b/core/java/android/annotation/UserIdInt.java new file mode 100644 index 000000000000..7b9ce25e3f1a --- /dev/null +++ b/core/java/android/annotation/UserIdInt.java @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2016 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 android.annotation; + +import static java.lang.annotation.ElementType.FIELD; +import static java.lang.annotation.ElementType.METHOD; +import static java.lang.annotation.ElementType.PARAMETER; +import static java.lang.annotation.RetentionPolicy.SOURCE; + +import java.lang.annotation.Retention; +import java.lang.annotation.Target; + +/** + * Denotes that the annotated element is a multi-user user ID. This is + * <em>not</em> the same as a UID. + * + * @hide + */ +@Retention(SOURCE) +@Target({METHOD, PARAMETER, FIELD}) +public @interface UserIdInt { +} |
