DPTest Class Reference

class DPTest

Nested Classes and Structures

Public Member Functions
IMPORT_C TUint32 Attributes ()
IMPORT_C TInt CacheSize ( TUint &, TUint &, TUint &)
IMPORT_C TInt EventInfo ( TDes8 &)
IMPORT_C TInt FlushCache ()
IMPORT_C TInt SetCacheSize ( TUint , TUint )
Public Member Enumerations
enum TAttributes { ERomPaging  = 1<<0, ECodePaging  = 1<<1, EDataPaging  = 1<<2 }

Member Functions Documentation

Attributes()

IMPORT_C TUint32 Attributes ( ) [static]

Return the attributes of the demand paging system. This is a bitfield consisting of values from enum TAttributes

CacheSize(TUint &, TUint &, TUint &)

IMPORT_C TInt CacheSize ( TUint & aMinSize,
TUint & aMaxSize,
TUint & aCurrentSize
) [static]

Get the current values of the RAM sizes used for the virtual memory cache.

Parameters

TUint & aMinSize Minimum size for cache in bytes.
TUint & aMaxSize Maximum size for cache in bytes.
TUint & aCurrentSize The current size for cache in bytes. This may be greater than aMaxSize.

EventInfo(TDes8 &)

IMPORT_C TInt EventInfo ( TDes8 & aInfo ) [static]

Get paging event information.

Parameters

TDes8 & aInfo A descriptor to hold the returned information. The contents of the descriptor are in the form of a TEventInfo object.

FlushCache()

IMPORT_C TInt FlushCache ( ) [static]

Evict the contents of the virtual memory cache and reduce it to its minimum size.

capability
WriteDeviceData

SetCacheSize(TUint, TUint)

IMPORT_C TInt SetCacheSize ( TUint aMinSize,
TUint aMaxSize
) [static]

Change the minimum and maximum RAM sizes used for the virtual memory cache.

These values may be silently restricted to platforn specific limits. If required, GetCacheSize can be used to verify sizes actually applied to the system.

If there is not enough memory to set the specified cache size then KErrNoMemory is returned, however the cache size may still have been modified in an attempt to service the request.

capability
WriteDeviceData

Parameters

TUint aMinSize Minimum size for cache in bytes.
TUint aMaxSize Maximum size for cache in bytes. Using zero for this value will restore cache sizes to the initial values used after boot.

Member Enumerations Documentation

Enum TAttributes

The attributes of the demand paging system.

Enumerators

ERomPaging = 1<<0

The ROM is being demand paged.

ECodePaging = 1<<1

Individual executable files can be demand paged.

EDataPaging = 1<<2

User RAM can be demand paged.