-
public final class AppOpsApis.HistoricalOpsRequest.Builder
-
-
Constructor Summary
Constructors Constructor Description AppOpsApis.HistoricalOpsRequest.Builder(long beginTimeMillis, long endTimeMillis)Creates a new builder.
-
Method Summary
Modifier and Type Method Description AppOpsApis.HistoricalOpsRequest.BuildersetUid(int uid)Sets the UID to query for. AppOpsApis.HistoricalOpsRequest.BuildersetPackageName(@Nullable() String packageName)Sets the package to query for. AppOpsApis.HistoricalOpsRequest.BuildersetAttributionTag(@Nullable() String attributionTag)Sets the attribution tag to query for. AppOpsApis.HistoricalOpsRequest.BuildersetOpNames(@Nullable() List<String> opNames)Sets the op names to query for. AppOpsApis.HistoricalOpsRequest.BuildersetFlags(int flags)Sets the op flags to query for. AppOpsApis.HistoricalOpsRequest.BuildersetHistoryFlags(int flags)Specifies what type of historical information to query. AppOpsApis.HistoricalOpsRequestbuild()-
-
Constructor Detail
-
AppOpsApis.HistoricalOpsRequest.Builder
AppOpsApis.HistoricalOpsRequest.Builder(long beginTimeMillis, long endTimeMillis)
Creates a new builder.- Parameters:
beginTimeMillis- The beginning of the interval in milliseconds sinceepoch start (January 1, 1970 00:00:00.000 GMT - Gregorian).endTimeMillis- The end of the interval in milliseconds sinceepoch start (January 1, 1970 00:00:00.000 GMT - Gregorian).
-
-
Method Detail
-
setUid
@NonNull() AppOpsApis.HistoricalOpsRequest.Builder setUid(int uid)
Sets the UID to query for.
- Parameters:
uid- The uid.
-
setPackageName
@NonNull() AppOpsApis.HistoricalOpsRequest.Builder setPackageName(@Nullable() String packageName)
Sets the package to query for.
- Parameters:
packageName- The package name.
-
setAttributionTag
@NonNull() AppOpsApis.HistoricalOpsRequest.Builder setAttributionTag(@Nullable() String attributionTag)
Sets the attribution tag to query for.
- Parameters:
attributionTag- attribution tag
-
setOpNames
@NonNull() AppOpsApis.HistoricalOpsRequest.Builder setOpNames(@Nullable() List<String> opNames)
Sets the op names to query for.
- Parameters:
opNames- The op names.
-
setFlags
@NonNull() AppOpsApis.HistoricalOpsRequest.Builder setFlags(int flags)
Sets the op flags to query for. The flags specify the type ofop data being queried.
- Parameters:
flags- The flags which are any combination ofOP_FLAG_SELF, OP_FLAG_TRUSTED_PROXY,OP_FLAG_UNTRUSTED_PROXY, OP_FLAG_TRUSTED_PROXIED,OP_FLAG_UNTRUSTED_PROXIED.
-
setHistoryFlags
@NonNull() AppOpsApis.HistoricalOpsRequest.Builder setHistoryFlags(int flags)
Specifies what type of historical information to query.
- Parameters:
flags- Flags for the historical types to fetch which are anycombination of HISTORY_FLAG_AGGREGATE, HISTORY_FLAG_DISCRETE,HISTORY_FLAGS_ALL.
-
build
@NonNull() AppOpsApis.HistoricalOpsRequest build()
-
-
-
-