| Motorola Mobility Confidential Restricted. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
ToiAssetManagerService Interface Reference Description
The ToiAssetManagerService interface provides access to locally stored media assets and metadata associated with these assets. If no local media storage is available, then this service will not be available in the system.
Inheritance diagram for ToiAssetManagerService:
Member Typedef Documentation
Identifier that uniquely identifies an asset.
Sequence of asset identifiers.
List of ToiAssetManagerServiceAssetInfo structures
Identifies integrity status of an asset.
Identifies different types of asset. This asset type is provided by the application while creating the asset.
The ToiAssetManagerService::TToiConditionOperation enumerates possible operations that can be used to define a query condition.
Identifer that uniquely identifies a directory.
Sequence of directory identifiers.
Policy to be applied when importing an asset. Note that not all policies may be valid for all URIs which are imported.
Identifier for a metadata property.
Sequence of property identifiers.
Sequence of properties.
Different kind of property value types.
Sequence of property values.
Sequence of query conditions.
Query identifier.
List of sort conditions. The list is used for sorting asset results and the sort conditions are applied in order. Member Function Documentation
An example use would be: 1) a circular recording is active, 2) it is now 9:38, 3) the user wants to record the show that started at 9:30. This call is used to specify the start offset from the start of the recording to 9:30. The result of the call will be an active linear recording that started at 9:30.
. *
Creates an asset. If the type is ASSET_PVR, the identifier of the asset can be used with a media recorder to save a media stream to disk.
Creates a new directory.
Creates a new property definition. This method is needed for creating properties that can have multiple values.
Returns all metadata properties for an asset.
Used to get the query results once the applications recieve ToiOperationOperationResultEvent.
Returns the operation manager that handles asynchronous operations for this asset manager. The procedure of executing asynchronous operations is generic and looks like this:
Returns the property identifiers for all defined properties also including all properties that are currently used in the database. This lists usually more properties than only those that have been created by ToiAssetManagerService::createPropertyDefinition().
Returns all direct directory children of given directory.
Returns directory information.
Used to get the count result once the applications recieve ToiOperationOperationResultEvent.
Returns metadata property values for an asset.
Returns the property definition for a given property identifier.
Import an asset from an external source. This is an asynchronous operation and completion of the operation will not provide any result values, i.e. the result will always be ToiOperationManager::OP_RESULT_NONE.
Links some assets to a directory, i.e. makes the assets visible as a member of the directory.
Moves the directory to a new parent directory.
Removes an asset. An asset can only be erased if the asset is not locked for playback or recording. This is an asynchronous operation and completion of the operation will not provide any result values, i.e. the result will always be ToiOperationManager::OP_RESULT_NONE.
Remove a directory. The directory can only be removed if it is empty and does not contain any assets or directories. If the recursive flag is set all assets and directories will also be removed.
Unsets the properties for a directory.
Removes a value from a property that is multi-valued.
Removes metadata properties for an asset. All values are erased whether a property has a single or multiple values, i.e., the property is completely removed.
Removes a user defined property, created using ToiAssetManagerService::createPropertyDefinition().
Starts a query that finds the number of assets that match given conditions. This is an asynchronous operation. When application gets the ToiOperationOperationResultEvent with the operation result ToiAssetManagerService::OP_RESULT_LONG, then the application should get the result by calling the ToiAssetManagerService::getLongResult() function.
Starts a query that finds assets that match given conditions. This is an asynchronous operation. When the application receives a ToiOperationOperationResultEvent call with the operation result ToiAssetManagerService::OP_RESULT_ASSET_INFO, then the application should get the results by calling the ToiAssetManagerService::getAssetInfoResult() function. The resulting ToiAssetManagerServiceAssetInfo will only include property values for the requested properties.
Starts a query that finds assets in the specified directory that match given conditions. This is an asynchronous operation. When the application receives a ToiOperationOperationResultEvent call with the operation result ToiAssetManagerService::OP_RESULT_ASSET_INFO, then the application should get the results by calling the ToiAssetManagerService::getAssetInfoResult() function. The resulting ToiAssetManagerServiceAssetInfo will only include property values for the requested properties.
Sets the properties for a directory.
Sets metadata property values for an asset. For properties that supports multiple values, any values set with this method are added to existing values.
Removes the links from some assets to a directory.
Member Data DocumentationIdentifier for audio asset type, NOT YET SUPPORTED. This constant can also be accessed from toi.consts.ToiAssetManagerService.ASSET_AUDIO. Identifier for image asset type This constant can also be accessed from toi.consts.ToiAssetManagerService.ASSET_IMAGE. Identifier for recording asset type This constant can also be accessed from toi.consts.ToiAssetManagerService.ASSET_PVR. Identifier for video (non-recording) asset type, NOT YET SUPPORTED. This constant can also be accessed from toi.consts.ToiAssetManagerService.ASSET_VIDEO. Contains specified value or matching pattern This constant can also be accessed from toi.consts.ToiAssetManagerService.CONTAINS. Equal operation, == This constant can also be accessed from toi.consts.ToiAssetManagerService.EQUALS. Greater operation, > This constant can also be accessed from toi.consts.ToiAssetManagerService.GREATER. Greater than or equal operation, >= This constant can also be accessed from toi.consts.ToiAssetManagerService.GREATER_OR_EQUAL. Import asset by copying the source. The source is kept. This constant can also be accessed from toi.consts.ToiAssetManagerService.IMPORT_POLICY_COPY. Import asset by moving the source. The source is deleted. This constant can also be accessed from toi.consts.ToiAssetManagerService.IMPORT_POLICY_MOVE. Asset has been damaged and could not be repaired. The asset can not be played. This constant can also be accessed from toi.consts.ToiAssetManagerService.INTEGRITY_COULD_NOT_REPAIR. Asset seems to be of an old version but could not be upgraded. The asset can not be played. This constant can also be accessed from toi.consts.ToiAssetManagerService.INTEGRITY_COULD_NOT_UPGRADE. Integrity is ok. This constant can also be accessed from toi.consts.ToiAssetManagerService.INTEGRITY_OK. Integrity is unknown. This constant can also be accessed from toi.consts.ToiAssetManagerService.INTEGRITY_UNKNOWN. Less operation, < This constant can also be accessed from toi.consts.ToiAssetManagerService.LESS. Less than or equal operation, <= This constant can also be accessed from toi.consts.ToiAssetManagerService.LESS_OR_EQUAL. Not equal operation, != This constant can also be accessed from toi.consts.ToiAssetManagerService.NOT_EQUAL.
This is an Event identifier for ToiAssetManagerAssetStorageAddedEvent. This constant can also be accessed from toi.consts.ToiAssetManagerService.ON_ASSET_STORAGE_ADDED.
This is an Event identifier for ToiAssetManagerAssetStorageRemovedEvent. This constant can also be accessed from toi.consts.ToiAssetManagerService.ON_ASSET_STORAGE_REMOVED.
This is an Event identifier for ToiAssetManagerAssetsAddedEvent. This constant can also be accessed from toi.consts.ToiAssetManagerService.ON_ASSETS_ADDED.
This is an Event identifier for ToiAssetManagerAssetsChangedEvent. This constant can also be accessed from toi.consts.ToiAssetManagerService.ON_ASSETS_CHANGED.
This is an Event identifier for ToiAssetManagerAssetsRemovedEvent. This constant can also be accessed from toi.consts.ToiAssetManagerService.ON_ASSETS_REMOVED.
This is an Event identifier for ToiAssetManagerDirectoriesAddedEvent. This constant can also be accessed from toi.consts.ToiAssetManagerService.ON_DIRECTORIES_ADDED.
This is an Event identifier for ToiAssetManagerDirectoriesChangedEvent. This constant can also be accessed from toi.consts.ToiAssetManagerService.ON_DIRECTORIES_CHANGED.
This is an Event identifier for ToiAssetManagerDirectoriesRemovedEvent. This constant can also be accessed from toi.consts.ToiAssetManagerService.ON_DIRECTORIES_REMOVED. The asynchronous operation has asset info as result. See ToiAssetManagerService::getAssetInfoResult(). This constant can also be accessed from toi.consts.ToiAssetManagerService.OP_RESULT_ASSET_INFO. The asynchronous operation has a long value as result. See ToiAssetManagerService::getLongResult(). This constant can also be accessed from toi.consts.ToiAssetManagerService.OP_RESULT_LONG.
Property name for the channel name of a recorded asset. This constant can also be accessed from toi.consts.ToiAssetManagerService.PROPERTY_INFO_CHANNELNAME.
Property name for a list of assets which will be removed automatically when the asset is removed. Relevant for all asset types. This constant can also be accessed from toi.consts.ToiAssetManagerService.PROPERTY_INFO_CHILDREN.
Property name for the cover image associated with an asset. This constant can also be accessed from toi.consts.ToiAssetManagerService.PROPERTY_INFO_COVER.
Property name for the start time of an asset. This constant can also be accessed from toi.consts.ToiAssetManagerService.PROPERTY_INFO_DATE.
Property name for the description of an asset. This constant can also be accessed from toi.consts.ToiAssetManagerService.PROPERTY_INFO_DESCRIPTION.
Property name for an even more detailed description of an asset. This constant can also be accessed from toi.consts.ToiAssetManagerService.PROPERTY_INFO_LONGDESCRIPTION.
Property name for the lost and found flag. If this flag is set the asset has been created from a lost asset by the platform. This can happen if the asset has been updated from a legacy version or if the database has been damaged. Relevant for all asset types. This constant can also be accessed from toi.consts.ToiAssetManagerService.PROPERTY_INFO_LOST_AND_FOUND.
Property name for the maturity rating of an asset. This constant can also be accessed from toi.consts.ToiAssetManagerService.PROPERTY_INFO_MATURITYRATING.
Property name for the status of a recorded asset. Recommended values are: recording|completed|failed This constant can also be accessed from toi.consts.ToiAssetManagerService.PROPERTY_INFO_RECORDINGSTATUS.
Property name for the flag indicating that the asset or directory shall be exposed and shared with other devices in the home network if DMS support is activated. This constant can also be accessed from toi.consts.ToiAssetManagerService.PROPERTY_INFO_SHARED.
Property name for the title of an asset. This constant can also be accessed from toi.consts.ToiAssetManagerService.PROPERTY_INFO_TITLE.
Property that specifies the asset storage location to use for asset creation. See ToiAssetManagerService::createAssetFromProperties() This constant can also be accessed from toi.consts.ToiAssetManagerService.PROPERTY_SYSTEM_ASSETSTORAGE.
Property that specifies the circular buffer length in seconds to use in recording mode ToiAssetManagerService::RECORDING_MODE_CIRCULAR. See ToiAssetManagerService::TToiAssetRecordingMode and ToiAssetManagerService::createAssetFromProperties(). There is a config variable named minimum-buffer-length that will be used if this property is less than minimum-buffer-length. This constant can also be accessed from toi.consts.ToiAssetManagerService.PROPERTY_SYSTEM_BUFFERLENGTH.
Property name for the time duration of an asset in seconds. Supported by all asset types except ASSET_IMAGE. This constant can also be accessed from toi.consts.ToiAssetManagerService.PROPERTY_SYSTEM_DURATION.
Property name for the file name for imported assets (e.g. images). Supported by all asset types execpt ASSET_PVR. This constant can also be accessed from toi.consts.ToiAssetManagerService.PROPERTY_SYSTEM_FILENAME.
Property name for the file size of an asset in bytes. Supported by all asset types. This constant can also be accessed from toi.consts.ToiAssetManagerService.PROPERTY_SYSTEM_FILESIZE.
Property name for the integrity status of an asset. Supported by all asset types. See ToiAssetManagerService::TToiAssetIntegrityStatus for possible values. This constant can also be accessed from toi.consts.ToiAssetManagerService.PROPERTY_SYSTEM_INTEGRITY_STATUS.
Property name for the URI to use when starting playback of an asset. Supported by all asset types except ASSET_IMAGE. This constant can also be accessed from toi.consts.ToiAssetManagerService.PROPERTY_SYSTEM_PLAYBACKURI.
Property that specifies recording mode for assets of type ToiAssetManagerService::ASSET_PVR, default is ToiAssetManagerService::RECORDING_MODE_LINEAR. See ToiAssetManagerService::TToiAssetRecordingMode This constant can also be accessed from toi.consts.ToiAssetManagerService.PROPERTY_SYSTEM_RECORDINGMODE.
Property name for the type of an asset. Supported by all asset types. See ToiAssetManagerService::TToiAssetType for possible values. This constant can also be accessed from toi.consts.ToiAssetManagerService.PROPERTY_SYSTEM_TYPE. A circular buffer recording. This constant can also be accessed from toi.consts.ToiAssetManagerService.RECORDING_MODE_CIRCULAR. Normal linear recording. This constant can also be accessed from toi.consts.ToiAssetManagerService.RECORDING_MODE_LINEAR. Identifier for the root directory. This constant can also be accessed from toi.consts.ToiAssetManagerService.ROOT_DIRECTORY. An asset identifier. This constant can also be accessed from toi.consts.ToiAssetManagerService.TYPE_ASSETLINK. Value of true/false. This constant can also be accessed from toi.consts.ToiAssetManagerService.TYPE_BOOLEAN. A positive integer value, seconds since the epoch. This constant can also be accessed from toi.consts.ToiAssetManagerService.TYPE_DATE. A signed integer value. This constant can also be accessed from toi.consts.ToiAssetManagerService.TYPE_INTEGER. Any string value. This constant can also be accessed from toi.consts.ToiAssetManagerService.TYPE_STRING. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||