resourcemgmt/hwresourcesmgr/test/te_hwrm/hwrmtestbase.h
changeset 74 9d35fd98f273
parent 63 09d657f1ee00
equal deleted inserted replaced
69:dc67b94625c5 74:9d35fd98f273
   165 	void ExpectFmTxStatusNotificationL(TFmTxState aStatus1, TFmTxState aStatus2);
   165 	void ExpectFmTxStatusNotificationL(TFmTxState aStatus1, TFmTxState aStatus2);
   166 	void ExpectFmTxFrequencyNotificationL(TInt aFrequency);	
   166 	void ExpectFmTxFrequencyNotificationL(TInt aFrequency);	
   167 	
   167 	
   168 	void ExpectBatteryLevelNotificationL(EPSHWRMBatteryLevel aBatteryLevel);
   168 	void ExpectBatteryLevelNotificationL(EPSHWRMBatteryLevel aBatteryLevel);
   169 	void ExpectBatteryStatusNotificationL(EPSHWRMBatteryStatus aStatus);
   169 	void ExpectBatteryStatusNotificationL(EPSHWRMBatteryStatus aStatus);
       
   170 	void ExpectExtendedBatteryStatusNotificationL(EPSHWRMBatteryStatus aStatus);
   170 	void ExpectedChargingStatusNotificationsL(EPSHWRMChargingStatus aStatus);
   171 	void ExpectedChargingStatusNotificationsL(EPSHWRMChargingStatus aStatus);
   171 	
   172 	void ExpectedExtendedChargingStatusNotificationsL(EPSHWRMChargingStatus aStatus);
   172 	void ExpectBatteryPowerMeasurementsErrorL(TInt aErrorCode);
   173 	void ExpectBatteryPowerMeasurementsErrorL(TInt aErrorCode);	
   173 	
   174 	
   174 	// TO DO: temp solution, need to add counters
   175 	// TO DO: temp solution, need to add counters
   175 	void CheckPluginInsensitivity();
   176 	void CheckPluginInsensitivity();
   176 	
   177 	
   177 	void ExpectLeave(TInt aError);
   178 	void ExpectLeave(TInt aError);
   183 	void CheckForEndOfTransition();
   184 	void CheckForEndOfTransition();
   184 	
   185 	
   185 	void CleanupPropertyObservers();
   186 	void CleanupPropertyObservers();
   186 	void BatteryLevelChanged(TInt aBatteryLevel);
   187 	void BatteryLevelChanged(TInt aBatteryLevel);
   187 	void BatteryStatusChanged(TInt aBatteryStatus);
   188 	void BatteryStatusChanged(TInt aBatteryStatus);
       
   189 	void ExtendedBatteryStatusChanged(TInt aBatteryStatus);
   188 	void ChargingStatusChanged(TInt aChargingStatus);
   190 	void ChargingStatusChanged(TInt aChargingStatus);
       
   191 	void ExtendedChargingStatusChanged(TInt aChargingStatus);
   189 	
   192 	
   190 	const TDesC& MapVibraModeState(CHWRMVibra::TVibraModeState aState);
   193 	const TDesC& MapVibraModeState(CHWRMVibra::TVibraModeState aState);
   191 	const TDesC& MapVibraModeStatus(CHWRMVibra::TVibraStatus aStatus);
   194 	const TDesC& MapVibraModeStatus(CHWRMVibra::TVibraStatus aStatus);
   192 	const TDesC& MapLightStatus(CHWRMLight::TLightStatus aStatus);
   195 	const TDesC& MapLightStatus(CHWRMLight::TLightStatus aStatus);
   193 	const TDesC& MapFmTxStatus(TFmTxState aStatus);
   196 	const TDesC& MapFmTxStatus(TFmTxState aStatus);
   249 	RArray<CHWRMVibra::TVibraStatus> 	iExpectedVibraStatusNotifications;
   252 	RArray<CHWRMVibra::TVibraStatus> 	iExpectedVibraStatusNotifications;
   250 	RArray<CHWRMVibra::TVibraModeState> iExpectedVibraModeNotifications;
   253 	RArray<CHWRMVibra::TVibraModeState> iExpectedVibraModeNotifications;
   251     RArray<CHWRMVibra::TVibraFeedbackModeState>	iExpectedVibraFeedbackModeNotifications;
   254     RArray<CHWRMVibra::TVibraFeedbackModeState>	iExpectedVibraFeedbackModeNotifications;
   252 	RArray<EPSHWRMBatteryLevel> iExpectedBatteryLevelNotifications;
   255 	RArray<EPSHWRMBatteryLevel> iExpectedBatteryLevelNotifications;
   253 	RArray<EPSHWRMBatteryStatus> iExpectedBatteryStatusNotifications;
   256 	RArray<EPSHWRMBatteryStatus> iExpectedBatteryStatusNotifications;
       
   257 	RArray<EPSHWRMBatteryStatus> iExpectedExtendedBatteryStatusNotifications;
   254 	RArray<EPSHWRMChargingStatus> iExpectedChargingStatusNotifications;
   258 	RArray<EPSHWRMChargingStatus> iExpectedChargingStatusNotifications;
       
   259 	RArray<EPSHWRMChargingStatus> iExpectedExtendedChargingStatusNotifications;
   255 	RArray<TInt> iExpectedBatteryPowerMeasurementsError;
   260 	RArray<TInt> iExpectedBatteryPowerMeasurementsError;
   256 #ifdef SYMBIAN_HWRM_EXTPOWERINFO
   261 #ifdef SYMBIAN_HWRM_EXTPOWERINFO
   257 	RArray<TInt> iExpectedBatteryChargingTimeMeasurementsError;
   262 	RArray<TInt> iExpectedBatteryChargingTimeMeasurementsError;
   258 	RArray<TInt> iExpectedBatteryChargingCurrentMeasurementsError;
   263 	RArray<TInt> iExpectedBatteryChargingCurrentMeasurementsError;
   259 #endif //SYMBIAN_HWRM_EXTPOWERINFO
   264 #endif //SYMBIAN_HWRM_EXTPOWERINFO
   314 #endif // INSECURE_AUDIO_POLICY_KEYS  	
   319 #endif // INSECURE_AUDIO_POLICY_KEYS  	
   315 	
   320 	
   316 	// P&S property observers
   321 	// P&S property observers
   317 	CPsPropertyObserver* iBatteryLevelObserver;
   322 	CPsPropertyObserver* iBatteryLevelObserver;
   318 	CPsPropertyObserver* iBatteryStatusObserver;
   323 	CPsPropertyObserver* iBatteryStatusObserver;
       
   324 	CPsPropertyObserver* iExtendedBatteryStatusObserver;
   319 	CPsPropertyObserver* iChargingStatusObserver;
   325 	CPsPropertyObserver* iChargingStatusObserver;
       
   326 	CPsPropertyObserver* iExtendedChargingStatusObserver;
   320 	
   327 	
   321 	TBool iTearingDown;
   328 	TBool iTearingDown;
   322 	TBool iIgnoreStatusNotifications;
   329 	TBool iIgnoreStatusNotifications;
   323 	};
   330 	};
   324 	
   331