127 TInt GetResourceStateSync(TUint aClientId, TUint aResourceId, TBool aCached, TInt& aNewState, TInt& aLevelOwnerId); |
127 TInt GetResourceStateSync(TUint aClientId, TUint aResourceId, TBool aCached, TInt& aNewState, TInt& aLevelOwnerId); |
128 void GetResourceStateAsync(TUint aClientId, TUint aResourceId, TBool aCached, TRequestStatus& aStatus, TInt& aState, TInt& aLevelOwnerId, TBool aReqCancel = EFalse); |
128 void GetResourceStateAsync(TUint aClientId, TUint aResourceId, TBool aCached, TRequestStatus& aStatus, TInt& aState, TInt& aLevelOwnerId, TBool aReqCancel = EFalse); |
129 TInt RequestNotification(TUint aClientId, TUint aResourceId); |
129 TInt RequestNotification(TUint aClientId, TUint aResourceId); |
130 TInt RequestNotification(TUint aClientId, TUint aResourceId, TInt aDirection, TInt aThreshold); |
130 TInt RequestNotification(TUint aClientId, TUint aResourceId, TInt aDirection, TInt aThreshold); |
131 TInt CancelNotification(TUint aClientId, TUint aResourceId, TBool aType); |
131 TInt CancelNotification(TUint aClientId, TUint aResourceId, TBool aType); |
132 TInt RegisterForIdleResourcesInfo(TUint aPowerControllerId, TUint aResourceNum); |
132 TInt RegisterForIdleResourcesInfo(TUint aPowerControllerId, TUint aResourceNum, TAny* anInfo); |
133 TInt GetIdleResourcesInfo(TUint aResourceNum, TAny* info); |
133 TInt GetIdleResourcesInfo(TUint aResourceNum, TAny* info); |
134 TInt DeRegisterClientLevelFromResource(TInt aClientId, TUint aResId); |
134 TInt DeRegisterClientLevelFromResource(TInt aClientId, TUint aResId); |
135 TInt CheckPostBootLevelNotifications(); |
135 TInt CheckPostBootLevelNotifications(); |
136 TInt GetResourceControllerVersion(TUint aClientId, TUint& aVersion); |
136 TInt GetResourceControllerVersion(TUint aClientId, TUint& aVersion); |
137 #ifdef PRM_ENABLE_EXTENDED_VERSION |
137 #ifdef PRM_ENABLE_EXTENDED_VERSION |
456 /** Request to register the specified number of resources to RM to keep the list updated with the |
456 /** Request to register the specified number of resources to RM to keep the list updated with the |
457 cached value of the resources and owner of the resources. This is used for testing of the API. |
457 cached value of the resources and owner of the resources. This is used for testing of the API. |
458 @Param - aResourceNum - Number of resource, whose information needs to be cached |
458 @Param - aResourceNum - Number of resource, whose information needs to be cached |
459 @return- KErrNone on Sucess or one of system wide errors. |
459 @return- KErrNone on Sucess or one of system wide errors. |
460 */ |
460 */ |
461 TInt RTestResMan::RegisterForIdleResourcesInfo(TUint aPowerControllerId, TUint aResourceNum) |
461 TInt RTestResMan::RegisterForIdleResourcesInfo(TUint aPowerControllerId, TUint aResourceNum, TAny* aPtr) |
462 { |
462 { |
463 return DoControl(ERegisterForIdleResourcesInfo, (TAny*)aPowerControllerId, (TAny*)aResourceNum); |
463 TParameterListInfo anInfo; |
|
464 anInfo.iClientId = aPowerControllerId; |
|
465 anInfo.iPtr1 = (TAny*)aResourceNum; |
|
466 anInfo.iPtr2 = (TAny*)aPtr; |
|
467 return DoControl(ERegisterForIdleResourcesInfo, (TAny*)&anInfo); |
464 } |
468 } |
465 |
469 |
466 /** Request to Deregister client level from resource. |
470 /** Request to Deregister client level from resource. |
467 @Param - aClientId - ID of the client requesting deregistration. |
471 @Param - aClientId - ID of the client requesting deregistration. |
468 @Param - aResId - ID of the resource from which to deregister the client level of requested client. |
472 @Param - aResId - ID of the resource from which to deregister the client level of requested client. |