PccEgressException.SensitiveCategoryInfo
public
static
final
class
PccEgressException.SensitiveCategoryInfo
extends Object
implements
Parcelable
| java.lang.Object | |
| ↳ | android.app.privatecompute.PccEgressException.SensitiveCategoryInfo |
Details about the detected sensitive content that caused an egress request to be rejected.
Summary
Constants | |
|---|---|
long |
FLAG_CATEGORY_BIOMETRICS
|
long |
FLAG_CATEGORY_FINANCE
|
long |
FLAG_CATEGORY_HEALTH
|
long |
FLAG_CATEGORY_POLITICS
|
long |
FLAG_CATEGORY_RACE
|
long |
FLAG_CATEGORY_RELIGION
|
long |
FLAG_CATEGORY_SEXUAL_ORIENTATION
|
long |
FLAG_CATEGORY_TRADE_UNIONS
|
long |
FLAG_CATEGORY_UNKNOWN
|
Inherited constants |
|---|
Fields | |
|---|---|
public
static
final
Creator<PccEgressException.SensitiveCategoryInfo> |
CREATOR
|
Public constructors | |
|---|---|
SensitiveCategoryInfo(long categoriesBitmask)
Creates a new instance with the specified bitmask of applicable sensitive categories. |
|
Public methods | |
|---|---|
int
|
describeContents()
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
long
|
getApplicableCategories()
Returns the bitmask of all applicable sensitive categories identified in the content. |
boolean
|
isCategoryDetected(long category)
Checks whether the specified sensitive category flag is present in the detected categories. |
void
|
writeToParcel(Parcel dest, int flags)
Flatten this object in to a Parcel. |
Inherited methods | |
|---|---|
Constants
FLAG_CATEGORY_BIOMETRICS
public static final long FLAG_CATEGORY_BIOMETRICS
Constant Value: 64 (0x0000000000000040)
FLAG_CATEGORY_FINANCE
public static final long FLAG_CATEGORY_FINANCE
Constant Value: 8 (0x0000000000000008)
FLAG_CATEGORY_HEALTH
public static final long FLAG_CATEGORY_HEALTH
Constant Value: 1 (0x0000000000000001)
FLAG_CATEGORY_POLITICS
public static final long FLAG_CATEGORY_POLITICS
Constant Value: 2 (0x0000000000000002)
FLAG_CATEGORY_RACE
public static final long FLAG_CATEGORY_RACE
Constant Value: 16 (0x0000000000000010)
FLAG_CATEGORY_RELIGION
public static final long FLAG_CATEGORY_RELIGION
Constant Value: 4 (0x0000000000000004)
FLAG_CATEGORY_SEXUAL_ORIENTATION
public static final long FLAG_CATEGORY_SEXUAL_ORIENTATION
Constant Value: 32 (0x0000000000000020)
FLAG_CATEGORY_TRADE_UNIONS
public static final long FLAG_CATEGORY_TRADE_UNIONS
Constant Value: 128 (0x0000000000000080)
FLAG_CATEGORY_UNKNOWN
public static final long FLAG_CATEGORY_UNKNOWN
Constant Value: 256 (0x0000000000000100)
Fields
CREATOR
public static final Creator<PccEgressException.SensitiveCategoryInfo> CREATOR
Public constructors
SensitiveCategoryInfo
public SensitiveCategoryInfo (long categoriesBitmask)
Creates a new instance with the specified bitmask of applicable sensitive categories.
| Parameters | |
|---|---|
categoriesBitmask |
long: The bitmask of detected sensitive categories.
Value is either 0 or a combination of the following:
|
Public methods
describeContents
public int describeContents ()
Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation. For example, if the object will
include a file descriptor in the output of writeToParcel(Parcel,int),
the return value of this method must include the
CONTENTS_FILE_DESCRIPTOR bit.
| Returns | |
|---|---|
int |
a bitmask indicating the set of special object types marshaled
by this Parcelable object instance.
Value is either 0 or
|
getApplicableCategories
public long getApplicableCategories ()
Returns the bitmask of all applicable sensitive categories identified in the content.
| Returns | |
|---|---|
long |
A bitmask of ERROR(SensitiveCategory/android.app.privatecompute.PccEgressException.SensitiveCategoryInfo.SensitiveCategory SensitiveCategory) constants.
Value is either 0 or a combination of the following:
|
isCategoryDetected
public boolean isCategoryDetected (long category)
Checks whether the specified sensitive category flag is present in the detected categories.
| Parameters | |
|---|---|
category |
long: The category flag to check (e.g., FLAG_CATEGORY_HEALTH).
Value is either 0 or a combination of the following:
|
| Returns | |
|---|---|
boolean |
true if the category is applicable, false otherwise. |
writeToParcel
public void writeToParcel (Parcel dest, int flags)
Flatten this object in to a Parcel.
| Parameters | |
|---|---|
dest |
Parcel: This value cannot be null. |
flags |
int: Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE.
Value is either 0 or a combination of the following:
|