DPTest Class Reference

class DPTest

Nested Classes and Structures

Public Member Functions
IMPORT_C TUint32Attributes()
IMPORT_C TIntCacheSize(TUint &, TUint &, TUint &)
IMPORT_C TIntEventInfo(TDes8 &)
IMPORT_C TIntFlushCache()
IMPORT_C TIntSetCacheSize(TUint, TUint)
Public Member Enumerations
enumTAttributes { ERomPaging = 1<<0, ECodePaging = 1<<1, EDataPaging = 1<<2 }

Member Functions Documentation

Attributes()

IMPORT_C TUint32Attributes()[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 TIntCacheSize(TUint &aMinSize,
TUint &aMaxSize,
TUint &aCurrentSize
)[static]

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

Parameters

TUint & aMinSizeMinimum size for cache in bytes.
TUint & aMaxSizeMaximum size for cache in bytes.
TUint & aCurrentSizeThe current size for cache in bytes. This may be greater than aMaxSize.

EventInfo(TDes8 &)

IMPORT_C TIntEventInfo(TDes8 &aInfo)[static]

Get paging event information.

Parameters

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

FlushCache()

IMPORT_C TIntFlushCache()[static]

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

capability
WriteDeviceData

SetCacheSize(TUint, TUint)

IMPORT_C TIntSetCacheSize(TUintaMinSize,
TUintaMaxSize
)[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 aMinSizeMinimum size for cache in bytes.
TUint aMaxSizeMaximum 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.