Sequenceablepublic class ApplicationInfo extends Object implements Sequenceable
Sequenceable.Producer<T>| 限定符和类型 | 字段 | 说明 |
|---|---|---|
boolean |
debug |
Indicates whether the application is debuggable.
|
boolean |
enabled |
Indicates whether or not this application may be instantiated.
|
String |
name |
Indicates the application name, which is the same as
bundleName. |
static Sequenceable.Producer<ApplicationInfo> |
PRODUCER |
Creates a
ApplicationInfo instance from a Parcel. |
boolean |
systemApp |
Indicates whether the application is a system application.
|
| 构造器 | 说明 |
|---|---|
ApplicationInfo() |
Default constructor used to create an
ApplicationInfo instance. |
ApplicationInfo(ApplicationInfo source) |
A constructor used to create an
ApplicationInfo instance by copying parameters from
an existing one. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
dump(String prefix,
PrintWriter writer) |
Prints the process information of the application into a specified target.
|
String |
getDescription() |
Obtains the description of the application or the resource index of the application description.
|
String |
getEntryDir() |
Obtains the path where the
Entry.hap file of the application is saved. |
int |
getFlags() |
Obtains the flags of the application.
|
String |
getIcon() |
Obtains the path where the icon resource file of the application is saved.
|
int |
getIconId() |
get the value of iconId.
|
String |
getLabel() |
Obtains the name of the application visible to users or the resource index of the application name.
|
int |
getLabelId() |
get the value of labelId.
|
List<ModuleInfo> |
getModuleInfos() |
Obtains information about all modules of the application.
|
List<String> |
getModuleSourceDirs() |
Obtains the path storing the module resources of the application.
|
String |
getName() |
Obtains the name of the application.
|
List<String> |
getPermissions() |
Obtains the permissions required for accessing the application.
|
String |
getProcess() |
Obtains the name of the process in which this application should run.
|
int |
getSupportedModes() |
Checks whether the application supports the driving mode.
|
boolean |
getSystemApp() |
Checks whether the application is a system application.
|
boolean |
marshalling(Parcel out) |
Marshals this
Sequenceable object into a Parcel. |
void |
setFlags(int flags) |
Sets flags for the application.
|
boolean |
unmarshalling(Parcel in) |
Unmarshals this
Sequenceable object from a Parcel. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasFileDescriptorpublic static final Sequenceable.Producer<ApplicationInfo> PRODUCER
ApplicationInfo instance from a Parcel.public boolean debug
public boolean enabled
public String name
bundleName.public boolean systemApp
public ApplicationInfo()
ApplicationInfo instance.public ApplicationInfo(ApplicationInfo source)
ApplicationInfo instance by copying parameters from
an existing one.source - Indicates the ApplicationInfo object.public String getName()
You can use the reverse domain name notation to name an application. The prefix of the reverse domain name
must be the same as the value of the package tag.
You can also use a name starting with a period (.). The IDE will combine this name with the name defined in
the package tag to form a complete application name.
The name tag must be specified. You must have configured this tag in the configuration file.
public String getIcon()
The icon tag specifies the path where the icon resource file of an application is stored. You can
configure this tag in the configuration file. The default value is an empty string, and you can retain the
default value.
icon tag is not specified.public String getLabel()
The label tag specifies the application name displayed to users. You can configure this tag
in the configuration file. The default value is an empty string, and you can retain the default value.
label tag is not specified.public String getDescription()
The description tag provides the application description. You can configure this tag in the
configuration file. The default value is an empty string, and you can retain the default value.
description tag is not specified.public String getProcess()
public int getSupportedModes()
By default, the driving mode is not supported.
0 if the application does not support the driving mode; returns 1 otherwise.public List<String> getModuleSourceDirs()
public List<String> getPermissions()
public List<ModuleInfo> getModuleInfos()
ModuleInfo objects for the application.public boolean getSystemApp()
true if it is a system application; returns false otherwise.public int getIconId()
public int getLabelId()
public boolean marshalling(Parcel out)
SequenceableSequenceable object into a Parcel.marshalling 在接口中 Sequenceableout - Indicates the Parcel object to which the Sequenceable
object will be marshaled..true if the marshalling is successful; returns false otherwise.Sequenceable.marshalling(Parcel)public boolean unmarshalling(Parcel in)
SequenceableSequenceable object from a Parcel.unmarshalling 在接口中 Sequenceablein - Indicates the Parcel object into which the Sequenceable
object has been marshaled.true if the unmarshalling is successful; returns false otherwise.Sequenceable.unmarshalling(Parcel)public void dump(String prefix, PrintWriter writer) throws IllegalArgumentException
prefix - Indicates the prefix of the attribute names contained in the printed information.writer - Indicates the target into which the information will be printed.IllegalArgumentException - Throws this exception if an input parameter is illegal.public int getFlags()
public void setFlags(int flags)
flags - Indicates the flags to set.public String getEntryDir()
Entry.hap file of the application is saved.Entry.hap file of the application.