equal
deleted
inserted
replaced
115 posOption.SetUpdateInterval(interval); |
115 posOption.SetUpdateInterval(interval); |
116 |
116 |
117 err = positioner.SetUpdateOptions(posOption); |
117 err = positioner.SetUpdateOptions(posOption); |
118 _LIT(KUpdateErr, "Error when setting update interval, %d"); |
118 _LIT(KUpdateErr, "Error when setting update interval, %d"); |
119 AssertTrueL(err == KErrNone, KUpdateErr, err); |
119 AssertTrueL(err == KErrNone, KUpdateErr, err); |
120 INFO_PRINTF2(_L("Update Interval set to %d\n"), interval); |
120 INFO_PRINTF2(_L("Update Interval set to %d\n"), interval.Int64()); |
121 |
121 |
122 TPositionInfo positionInfo; |
122 TPositionInfo positionInfo; |
123 TRequestStatus status; |
123 TRequestStatus status; |
124 positioner.NotifyPositionUpdate(positionInfo, status); |
124 positioner.NotifyPositionUpdate(positionInfo, status); |
125 INFO_PRINTF1(_L("Wait for NotifyPositionUpdate request to complete\n")); |
125 INFO_PRINTF1(_L("Wait for NotifyPositionUpdate request to complete\n")); |
127 |
127 |
128 VerifyPositionFromL(positionInfo, iUidInstallableTrackingPsy); |
128 VerifyPositionFromL(positionInfo, iUidInstallableTrackingPsy); |
129 |
129 |
130 if(status != KErrNone) |
130 if(status != KErrNone) |
131 { |
131 { |
132 INFO_PRINTF2(_L("Failing: NotifyPositionUpdate returned %d\n"), status); |
132 INFO_PRINTF2(_L("Failing: NotifyPositionUpdate returned %d\n"), status.Int()); |
133 } |
133 } |
134 //////////////////////////////////// |
134 //////////////////////////////////// |
135 |
135 |
136 INFO_PRINTF1(_L("Issue another NotifyPositionUpdate() request (target time will be in the future)\n")); |
136 INFO_PRINTF1(_L("Issue another NotifyPositionUpdate() request (target time will be in the future)\n")); |
137 positioner.NotifyPositionUpdate(positionInfo, status); |
137 positioner.NotifyPositionUpdate(positionInfo, status); |
154 #endif // not winscw |
154 #endif // not winscw |
155 |
155 |
156 INFO_PRINTF1(_L("Wait for second NotifyPositionUpdate() request to complete\n")); |
156 INFO_PRINTF1(_L("Wait for second NotifyPositionUpdate() request to complete\n")); |
157 User::WaitForRequest(status); |
157 User::WaitForRequest(status); |
158 |
158 |
159 INFO_PRINTF2(_L("NotifyPositionUpdate() request completed with %d\n"), status); |
159 INFO_PRINTF2(_L("NotifyPositionUpdate() request completed with %d\n"), status.Int()); |
160 |
160 |
161 if(status != KErrNone) |
161 if(status != KErrNone) |
162 { |
162 { |
163 INFO_PRINTF1(_L("Failing: On emulator NotifyPositionUpdate expected to completed with KErrNone\n")); |
163 INFO_PRINTF1(_L("Failing: On emulator NotifyPositionUpdate expected to completed with KErrNone\n")); |
164 SetTestStepResult(EFail); |
164 SetTestStepResult(EFail); |