程序包 
程序包 说明
ark.annotation
Provides classes that leverage Java's annotation mechanism to annotate desired variables and types, so as to eliminate circular reference and improve performance.
ark.system
Provides the Ark compiler and Runtime interfaces for application modules.
java.awt.font
Provides classes and interface relating to fonts.
java.beans
Contains classes related to developing beans -- components based on the JavaBeans™ architecture.
java.io
Provides for system input and output through data streams, serialization and the file system.
java.lang
Provides classes that are fundamental to the design of the Java programming language.
java.lang.annotation
Provides library support for the Java programming language annotation facility.
java.lang.invoke
The java.lang.invoke package contains dynamic language support provided directly by the Java core class libraries and virtual machine.
java.lang.ref
Provides reference-object classes, which support a limited degree of interaction with the garbage collector.
java.lang.reflect
Provides classes and interfaces for obtaining reflective information about classes and objects.
java.math
Provides classes for performing arbitrary-precision integer arithmetic (BigInteger) and arbitrary-precision decimal arithmetic (BigDecimal).
java.net
Provides the classes for implementing networking applications.
java.nio
Defines buffers, which are containers for data, and provides an overview of the other NIO packages.
java.nio.channels
Defines channels, which represent connections to entities that are capable of performing I/O operations, such as files and sockets; defines selectors, for multiplexed, non-blocking I/O operations.
java.nio.channels.spi
Service-provider classes for the java.nio.channels package.
java.nio.charset
Defines charsets, decoders, and encoders, for translating between bytes and Unicode characters.
java.nio.charset.spi
Service-provider classes for the java.nio.charset package.
java.nio.file
Defines interfaces and classes for the Java virtual machine to access files, file attributes, and file systems.
java.nio.file.attribute
Interfaces and classes providing access to file and file system attributes.
java.nio.file.spi
Service-provider classes for the java.nio.file package.
java.security
Provides the classes and interfaces for the security framework.
java.security.acl
The classes and interfaces in this package have been superseded by classes in the java.security package.
java.security.cert
Provides classes and interfaces for parsing and managing certificates, certificate revocation lists (CRLs), and certification paths.
java.security.interfaces
Provides interfaces for generating RSA (Rivest, Shamir and Adleman AsymmetricCipher algorithm) keys as defined in the RSA Laboratory Technical Note PKCS#1, and DSA (Digital Signature Algorithm) keys as defined in NIST's FIPS-186.
java.security.spec
Provides classes and interfaces for key specifications and algorithm parameter specifications.
java.sql
Provides the API for accessing and processing data stored in a data source (usually a relational database) using the JavaTM programming language.
java.text
Provides classes and interfaces for handling text, dates, numbers, and messages in a manner independent of natural languages.
java.time
The main API for dates, times, instants, and durations.
java.time.chrono
Generic API for calendar systems other than the default ISO.
java.time.format
Provides classes to print and parse dates and times.
java.time.temporal
Access to date and time using fields and units, and date time adjusters.
java.time.zone
Support for time-zones and their rules.
java.util
Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array).
java.util.concurrent
Utility classes commonly useful in concurrent programming.
java.util.concurrent.atomic
A small toolkit of classes that support lock-free thread-safe programming on single variables.
java.util.concurrent.locks
Interfaces and classes providing a framework for locking and waiting for conditions that is distinct from built-in synchronization and monitors.
java.util.function
Functional interfaces provide target types for lambda expressions and method references.
java.util.jar
Provides classes for reading and writing the JAR (Java ARchive) file format, which is based on the standard ZIP file format with an optional manifest file.
java.util.logging
Provides the classes and interfaces of the JavaTM 2 platform's core logging facilities.
java.util.prefs
This package allows applications to store and retrieve user and system preference and configuration data.
java.util.regex
Classes for matching character sequences against patterns specified by regular expressions.
java.util.stream
Classes to support functional-style operations on streams of elements, such as map-reduce transformations on collections.
java.util.zip
Provides classes for reading and writing the standard ZIP and GZIP file formats.
javax.annotation.processing
Facilities for declaring annotation processors and for allowing annotation processors to communicate with an annotation processing tool environment.
javax.crypto
Provides the classes and interfaces for cryptographic operations.
javax.crypto.interfaces
Provides interfaces for Diffie-Hellman keys as defined in RSA Laboratories' PKCS #3.
javax.crypto.spec
Provides classes and interfaces for key specifications and algorithm parameter specifications.
javax.lang.model
Classes and hierarchies of packages used to model the Java programming language.
javax.lang.model.element
Interfaces used to model elements of the Java programming language.
javax.lang.model.type
Interfaces used to model Java programming language types.
javax.lang.model.util
Utilities to assist in the processing of program elements and types.
javax.net
Provides classes for networking applications.
javax.net.ssl
Provides classes for the secure socket package.
javax.security.auth
This package provides a framework for authentication and authorization.
javax.security.auth.callback
This package provides the classes necessary for services to interact with applications in order to retrieve information (authentication data including usernames or passwords, for example) or to display information (error and warning messages, for example).
javax.security.auth.login
This package provides a pluggable authentication framework.
javax.security.auth.x500
This package contains the classes that should be used to store X500 Principal and X500 Private Credentials in a Subject.
javax.security.cert
Provides classes for public key certificates.
javax.sql
Provides the API for server side data source access and processing from the JavaTM programming language.
javax.tools
Provides interfaces for tools which can be invoked from a program, for example, compilers.
ohos.aafwk.ability
Provides high-level classes of the overall OHOS application development model.
ohos.aafwk.ability.assistance  
ohos.aafwk.ability.continuation
Provides interfaces and classes for interacting with the hop task management service for ability hopping.
ohos.aafwk.ability.delegation
Provides classes for you to test your OHOS applications.
ohos.aafwk.ability.fraction
Provides Fraction-related capabilities.
ohos.aafwk.ability.startsetting
Provides a class that defines custom properties for an ability, which can be passed as an input parameter in the call when you start the ability.
ohos.aafwk.abilityjet.activedata
Provides a data holder class for observing data.
ohos.aafwk.abilityjet.databinding
Provides a data binding library that allows you to bind data to UIs using a declarative format instead of in a programmatic manner.
ohos.aafwk.content
Provides classes for basic communication among OHOS applications.
ohos.accessibility
Provides a collection of classes for interacting with the accessibility system service and provides interfaces for sending accessibility events, querying the accessibility service status, and sending accessibility status change events.
ohos.accessibility.ability
Provides an accessibility service development framework for you to develop your own accessibility applications.
ohos.account
Enables your applications to use OS account-related functions provided by the OS.
ohos.account.app
Provides classes and methods for you to manage accounts of applications running the OS.
ohos.ace.ability
Provides basic classes to implement functions such as page loading, and event and life cycle management.
ohos.agp.agpanimator
Implements card flip animation.
ohos.agp.animation
Implements animation on a UI.
ohos.agp.animation.styledsolutions
Provides solutions for style-based animation effects.
ohos.agp.animation.timelinecurves
Provides time line curves for controlling the animation progress, such as Cubic Bézier curves.
ohos.agp.animation.util
Provides utils classes and methods for animation effects.
ohos.agp.colors
Defines colors and provides different color specifications.
ohos.agp.components
Provides common components for user interactions on the UI.
ohos.agp.components.element
Provides elements that can be drawn on the UI.
ohos.agp.components.events  
ohos.agp.components.flex  
ohos.agp.components.listcomponent  
ohos.agp.components.surfaceprovider
Provides a surface component.
ohos.agp.components.textureprovider
Provides a TextureProvider component.
ohos.agp.components.webengine
Provides functions related to the WebView component,
ohos.agp.database
Observes content changes of data sets.
ohos.agp.graphics
This package includes basic elements and features related to graphics.
ohos.agp.image
Processes an image to achieve the desired effect.
ohos.agp.render
This package includes basic elements and features related to rendering.
ohos.agp.render.layoutboost
Provides the LayoutBoost, which includes the related methods and utilities.
ohos.agp.render.opengl
Provides Embedded-System Graphics Library (EGL) and OpenGL for Embedded Systems (OpenGL ES) APIs.
ohos.agp.render.render3d
Provides 3D capabilities and features.
ohos.agp.render.render3d.components
Provides basic 3D components, including the camera, light, node, and scene.
ohos.agp.render.render3d.gltf
Provides the glTF data processing capability.
ohos.agp.render.render3d.impl
Provides jni interfaces.
ohos.agp.render.render3d.math
Provides utility classes about mathematics for the 3D engine.
ohos.agp.render.render3d.resources
Provides managers of 3D scene resources, including mesh descriptors, material descriptors, and animation playback resources.
ohos.agp.render.render3d.systems
Provides 3D engine systems.
ohos.agp.render.render3d.util
Provides utility classes for the 3D engine.
ohos.agp.text
Provides text tools.
ohos.agp.text.richstyles  
ohos.agp.transition
Provides transition-specific classes that include methods for creating and setting the transition effect.
ohos.agp.utils
Utility classes commonly used by controls.
ohos.agp.window.dialog
Provides common methods and attributes of dialog boxes.
ohos.agp.window.service
Provides methods for an external component to obtain window and display attributes.
ohos.ai.asr
Provides automatic speech recognition (ASR) classes, including those about the data structure, configurations, and functions specific to ASR.
ohos.ai.asr.util
Provides constant and utility classes specific to automatic speech recognition (ASR).
ohos.ai.cv.common
Defines the base class for common computer vision (CV) classes, including data structure, callback method, and configuration classes.
ohos.ai.cv.docrefine
Provides classes dedicated to computer vision (CV) document rectification, including data structure, configuration, key, and interface classes.
ohos.ai.cv.qrcode
Provides classes dedicated to computer vision (CV) qrcode detection, including data structure, configuration, key, and interface classes.
ohos.ai.cv.sr
Contains the configuration and interface classes of the computer vision (CV) single image super-resolution (SISR) and text image super-resolution functions.
ohos.ai.cv.text
Provides classes dedicated to computer vision (CV) text detection, including data structure, configuration, key, and interface classes.
ohos.ai.engine.pluginservice
Provides plug-in management functions.
ohos.ai.engine.resultcode
Defines the result codes of calling HUAWEI HiAI Engine interfaces.
ohos.ai.nlu
Provide methods for the natural language understanding (NLU) service.
ohos.ai.nlu.util
Provides constant and utility classes specific to natural language understanding (NLU).
ohos.ai.tts
Provides methods for the text-to-speech (TTS) service.
ohos.ai.tts.constants
Provides text-to-speech (TTS) constants.
ohos.app
Obtains application information during runtime.
ohos.app.dispatcher
Provides task dispatcher-related functions.
ohos.app.dispatcher.task
Provides task-related functions.
ohos.backgroundtaskmgr
Manages background tasks.
ohos.batterymanager
Provides interfaces to obtain battery information of a device, including the remaining battery power, voltage, temperature, model, and charger type.
ohos.biometrics.authentication
Provides methods to implement biometric authentication.
ohos.bluetooth
Provides basic Bluetooth capabilities.
ohos.bluetooth.ble
Provides basic Bluetooth Low Energy (BLE) capabilities.
ohos.bundle
Provides bundle-related functions.
ohos.bundleactive
Provides classes for managing bundle usage information and state data.
ohos.data
Provides basic capabilities of the local data framework and data-sharing service.
ohos.data.async
Provides functions of asynchronously adding, deleting, modifying, and querying data of the database.
ohos.data.dataability
Provides predicates to set query conditions for database or non-database such as XML file in cross-device or cross-scenario data transmission.
ohos.data.distributed.common
Provides public classes or interfaces.
ohos.data.distributed.device
Provides classes related to the DeviceKvStore database that manages data by device.
ohos.data.distributed.file
Provides interfaces of the distributed file manager.
ohos.data.distributed.user
Provides classes for managing data of the same account.
ohos.data.file
Provides basic file access capabilities.
ohos.data.objectstore
Manages Data Object.
ohos.data.objectstore.callbacks  
ohos.data.objectstore.model  
ohos.data.orm
Provides ORM interfaces to perform basic operations on databases.
ohos.data.preferences
Provides the Preferences module for storing a small number of key-value pairs.
ohos.data.rdb
Provides RdbStore interfaces to perform basic operations on databases.
ohos.data.resultset
Provides methods for operating database result sets.
ohos.data.search
Provides methods for performing indexing and search operations provided by the fusion search service.
ohos.data.search.connect
Provides callbacks that are invoked when connecting to or disconnecting from the fusion search service.
ohos.data.search.listener
Provides a callback for index changes.
ohos.data.search.model
Defines the basic data structure of the fusion search service.
ohos.data.search.schema
Provides index schemas specific to different types of data.
ohos.data.usage
Manages storage devices.
ohos.dcall
Provides a distributed call management framework.
ohos.distributedhardware.devicemanager
Provides interfaces and classes for distributed hardware management, including querying information about local and trusted devices, subscribing to device online and offline notifications, and presenting devices on the UI for the user to select.
ohos.distributedschedule.interwork
Provides interfaces and classes for registering and unregistering device state callbacks, obtaining information about all devices or a specified device on the distributed network, querying application information, and initializing the distributed execution framework.
ohos.event.commonevent
Manages common events, such as common event publishing, subscription, and unsubscription.
ohos.event.intentagent
Provides a mechanism for pending execution.
ohos.event.notification
Manages notifications, such as notification publishing, canceling, subscription, unsubscription, and notification slot management.
ohos.eventhandler
Allows you to send and process InnerEvent and Runnable objects on asynchronous threads.
ohos.global.config
Defines globalization configuration types and provides functions for processing globalization configurations.
ohos.global.configuration
Describes resource configurations, including the language and region, screen resolution, device type, and device orientation.
ohos.global.i18n
Provides classes and interfaces related to internationalization items, such as the local calendar, time, date, and phone number.
ohos.global.i18n.phonenumbers
Provides methods for processing a phone number based on the specified region code, for example, the method for obtaining the formatting result based on the input string representation of a phone number.
ohos.global.i18n.text
Provides methods for processing text used in internationalization scenarios, for example, the method for formatting date and time.
ohos.global.i18n.utils
Provide utility classes for international calendar, time, address, and region, as well as locale matching.
ohos.global.icu.lang
ICU(International Components for Unicode): enhanced character property.
ohos.global.icu.math
ICU(International Components for Unicode): enhanced character property.
ohos.global.icu.number
ICU(International Components for Unicode): enhanced character property.
ohos.global.icu.text
ICU(International Components for Unicode): enhanced character property.
ohos.global.icu.util
ICU(International Components for Unicode): enhanced character property.
ohos.global.resource
Defines resource types and provides functions for processing resources.
ohos.global.resource.solidxml
Provides functions for processing solid XML files.
ohos.global.systemres  
ohos.hiviewdfx
Provides quality attribute classes, such as reliability and testability, including HiLog, HiTrace, and Debug.
ohos.hiviewdfx.xcollie  
ohos.interwork.bundle
Provides a class for obtaining basic Ability information that can be used to uniquely identify an ability.
ohos.interwork.event.intentagent
Provides a mechanism for pending execution.
ohos.interwork.eventhandler
Allows you to send and process InnerEvent and Runnable objects on asynchronous threads.
ohos.interwork.ui
Provides extended application components for cross-platform interaction.
ohos.interwork.utils
Provides common utility classes and interfaces for implementing cross-platform interaction.
ohos.javax.xml  
ohos.javax.xml.namespace  
ohos.javax.xml.parsers  
ohos.javax.xml.stream  
ohos.javax.xml.stream.events  
ohos.javax.xml.stream.util  
ohos.javax.xml.transform  
ohos.javax.xml.validation  
ohos.light.agent
Manages lights on hardware devices.
ohos.light.bean
Defines the types and blinking effects of lights.
ohos.location
Provides a collection of classes and methods for applications to obtain device locations.
ohos.media.audio
Provides applications with interfaces to adjust the audio volume, manage the audio focus, and control audio recording and playback.
ohos.media.camera
Provides the entry for using camera functions.
ohos.media.camera.device
Provides classes related to the following camera operations: Camera feature query Camera configuration Frame capture Camera state listening
ohos.media.camera.params
Provides camera parameter classes, including definitions of camera properties, supported parameters, and parameter setting results.
ohos.media.codec
Provides interfaces for encoding and decoding audio and video data.
ohos.media.common
Defines common media objects, attributes, and fields, such as audio and video attributes.
ohos.media.common.sessioncore
Provides common classes for media sessions.
ohos.media.extractor
Provides interfaces to separates audio from video data in multimedia files and extracts audio and video data sources.
ohos.media.image
Provides APIs of image-related functions, including encoding and decoding, image processing, and image receiving.
ohos.media.image.common
Provides definitions of common classes that image-related functions may be dependent on.
ohos.media.muxer
Provides interfaces for multiplexing audio and video files to media files.
ohos.media.photokit
Provides APIs for querying media resources.
ohos.media.photokit.common
Provides common class definitions for photokit.
ohos.media.photokit.metadata
Provides interfaces for obtaining media metadata.
ohos.media.photokit.support
Provides APIs for obtaining detailed information about media resources that have been searched for.
ohos.media.player
Provides interfaces to control audio and video playback.
ohos.media.recorder
Provides interfaces for audio and video recording.
ohos.media.sessioncore
Provides interfaces to audio and video session.
ohos.media.tubecore
Provides classes for AV tube information.
ohos.miscservices.download
Provides download service-related classes and interfaces.
ohos.miscservices.inputmethod
Provides basic functions of the input method service for implementing interaction between applications and input method engines.
ohos.miscservices.inputmethodability
Provides basic classes for developing input method applications.
ohos.miscservices.pasteboard
Provides the interface for system pasteboard operations and allows user applications to read, write, and query the pasteboard content.
ohos.miscservices.screenlock
Provides classes related to the screen lock.
ohos.miscservices.screenlock.interfaces
Provides interfaces related to the screen lock.
ohos.miscservices.timeutility
Provides interfaces for reading and setting the system time and time zone as well as the interfaces for implementing system timers, such as creating and stopping a timer.
ohos.miscservices.wallpaper
Provides APIs to applications for managing wallpapers, obtaining wallpaper color information, and receiving color change notifications.
ohos.multimodalinput.common
Provides information about common multimodal input capabilities, including the error codes.
ohos.multimodalinput.device
Provides information about input devices.
ohos.multimodalinput.event
Provides classes that define input events, such as key and manipulation events.
ohos.multimodalinput.standard
Provides classes for handling standards events to which input events of different input devices are mapped.
ohos.net
Provides interfaces to manage data networks.
ohos.net.http
Provides responses, authentication, and errors for HTTP communications.
ohos.nfc
Provides a universal NFC control module.
ohos.nfc.cardemulation
Provides the NFC card emulation module.
ohos.nfc.oma
Implements management of NFC OMA channels.
ohos.nfc.tag
Reads and writes NFC tags.
ohos.org.w3c.dom  
ohos.org.w3c.dom.ls  
ohos.org.xml.sax  
ohos.org.xml.sax.helpers  
ohos.os
Provides classes related to system management.
ohos.powermanager
Manages power.
ohos.rpc
Provides the following classes for enabling communication between processes on the same device or on different devices:
ohos.security
Provides capabilities of querying OHOS system permissions and network security policies.
ohos.security.asset
Provides interfaces to securely store, delete, update, and query short sensitive data.
ohos.security.fileprotect
Provides a method for obtaining an SfpPolicyManager instance and the methods for setting and obtaining the label and flag for a file.
ohos.security.keystore
Provides classes to manage and use keys in a trusted execution environment (TEE).
ohos.security.permission
Provides permission-related interfaces and information, such as permission group information.
ohos.security.seckeychain
Provides methods for installing, selecting, and using private keys and certificates.
ohos.security.seoperator
Provides interfaces to implement pan-payment functions.
ohos.sensor.agent
Manages sensors on hardware devices.
ohos.sensor.bean
Describes basic attributes of sensors on hardware devices, provides methods for querying these attributes, and provides the sensor types included in each sensor category.
ohos.sensor.common
A utility class for sensors.
ohos.sensor.data
Describes data information of sensors and provides methods for querying the information.
ohos.sensor.listener
Provides callbacks for receiving sensor data, including the basic data and accuracy data of sensors.
ohos.smartcomm
Provides the multipath concurrency capability.
ohos.storageinfomgr
Provides methods for managing storage information of an application.
ohos.sysappcomponents.calendar
Provides methods and result sets for calendar applications.
ohos.sysappcomponents.calendar.column
Provides constants required by calendar applications.
ohos.sysappcomponents.calendar.entity
Provides definitions of attributes related to calendar applications, such as accounts, events, and notifications.
ohos.sysappcomponents.calendar.support
Provides database support for entity objects required by the application layer, for example, querying mappings between result sets and entity objects, defining data conversion rules, and providing URIs.
ohos.sysappcomponents.contact
Provides definitions of contact attributes (such as the email address, event information, group information, and more), contact-related operations, and information query methods.
ohos.sysappcomponents.contact.entity
This package provides the definition of contact attributes, such as the email address, event information, group information, instant messaging (IM) address, name, nickname, note, organization, phone number, portrait, postal address, relation, SIP address, and website.
ohos.sysappcomponents.settings
Provides classes that allow applications to insert, delete, update, query, and listen to data in system databases.
ohos.system
Provides classes with high-level APIs that access to low-level OS functionalities.
ohos.system.version
Provides a class pertaining to the system version.
ohos.systemrestore
Contains two types of interfaces: SystemRestore as a public interface used for system restore, and ISystemRestoreProgressListener as an interface used for progress callback.
ohos.telephony
Provides interfaces related to the telephony service.
ohos.thermallistener
Listens for thermal status changes of a device.
ohos.tools
Provides classes that manage tools, mainly including the classes to generate logs, such as Bytrace logs.
ohos.usb
Provides basic USB communication capabilities for other peripherals and devices running OHOS.
ohos.utils
Provides common basic system utilities.
ohos.utils.geo
Utility classes commonly used by controls.
ohos.utils.net
Provides you with some utility classes to facilitate your network access.
ohos.utils.system
Defines the hardware capabilities and software capabilities used in the system.
ohos.utils.xml
Provides a collection of classes and methods related to XML parsing.
ohos.utils.zson
Provides classes for processing JSON structured data.
ohos.utils.zson.annotation
Provides some necessary annotation classes for processing JSON structured data.
ohos.vibrator.agent
Manages vibrators on hardware devices.
ohos.vibrator.bean
Defines the types and vibration effects of vibrators.
ohos.wifi
Executes or configures Wi-Fi.
ohos.wifi.p2p
Executes or configures Wi-Fi P2P.
ohos.workscheduler
Provides a framework for deferring works that do not need to be processed immediately.
跳过导航链接