Home
last modified time | relevance | path

Searched refs:callback2 (Results 1 – 11 of 11) sorted by relevance

/base/sensors/sensor/interfaces/plugin/test/
DExampleJsunit.test_ambientlight.js25 function callback2(data) { function
212 sensor.on(sensor.SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback2);
229 sensor.on(sensor.SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback2);
237 sensor.off(sensor.SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback2);
252 sensor.once(sensor.SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback2);
270 … sensor.on(sensor.SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback2, {'interval': 100000000});
278 sensor.off(sensor.SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback2);
293 … sensor.on(sensor.SensorType.SENSOR_TYPE_ID_AMBIENT_LIGHT, callback2, {'interval': 100000000});
DExampleJsunit.test_rotatingvector.js28 function callback2(data) { function
218 sensor.on(sensor.SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback2);
235 sensor.on(sensor.SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback2);
243 sensor.off(sensor.SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback2);
258 sensor.once(sensor.SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback2);
276 … sensor.on(sensor.SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback2, {'interval': 100000000});
284 sensor.off(sensor.SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback2);
299 … sensor.on(sensor.SensorType.SENSOR_TYPE_ID_ROTATION_VECTOR, callback2, {'interval': 100000000});
DExampleJsunit.test_orientating.js27 function callback2(data) { function
216 sensor.on(sensor.SensorType.SENSOR_TYPE_ID_ORIENTATION, callback2);
233 sensor.on(sensor.SensorType.SENSOR_TYPE_ID_ORIENTATION, callback2);
241 sensor.off(sensor.SensorType.SENSOR_TYPE_ID_ORIENTATION, callback2);
256 sensor.once(sensor.SensorType.SENSOR_TYPE_ID_ORIENTATION, callback2);
274 sensor.on(sensor.SensorType.SENSOR_TYPE_ID_ORIENTATION, callback2, {'interval': 100000000});
282 sensor.off(sensor.SensorType.SENSOR_TYPE_ID_ORIENTATION, callback2);
297 sensor.on(sensor.SensorType.SENSOR_TYPE_ID_ORIENTATION, callback2, {'interval': 100000000});
DExampleJsunit.test_gravity.js27 function callback2(data) { function
216 sensor.on(sensor.SensorType.SENSOR_TYPE_ID_GRAVITY, callback2);
233 sensor.on(sensor.SensorType.SENSOR_TYPE_ID_GRAVITY, callback2);
241 sensor.off(sensor.SensorType.SENSOR_TYPE_ID_GRAVITY, callback2);
256 sensor.once(sensor.SensorType.SENSOR_TYPE_ID_GRAVITY, callback2);
274 sensor.on(sensor.SensorType.SENSOR_TYPE_ID_GRAVITY, callback2, {'interval': 100000000});
282 sensor.off(sensor.SensorType.SENSOR_TYPE_ID_GRAVITY, callback2);
297 sensor.on(sensor.SensorType.SENSOR_TYPE_ID_GRAVITY, callback2, {'interval': 100000000});
DExampleJsunit.test_acc.js27 function callback2(data) { function
215 sensor.on(sensor.SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback2);
232 sensor.on(sensor.SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback2);
240 sensor.off(sensor.SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback2);
255 sensor.once(sensor.SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback2);
273 … sensor.on(sensor.SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback2, {'interval': 100000000});
281 sensor.off(sensor.SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback2);
296 … sensor.on(sensor.SensorType.SENSOR_TYPE_ID_ACCELEROMETER, callback2, {'interval': 100000000});
DExampleJsunit.test_magnetic.js27 function callback2(data) { function
216 sensor.on(sensor.SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback2);
233 sensor.on(sensor.SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback2);
241 sensor.off(sensor.SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback2);
256 sensor.once(sensor.SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback2);
274 … sensor.on(sensor.SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback2, {'interval': 100000000});
282 sensor.off(sensor.SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback2);
297 … sensor.on(sensor.SensorType.SENSOR_TYPE_ID_MAGNETIC_FIELD, callback2, {'interval': 100000000});
/base/useriam/user_auth_framework/test/unittest/services/src/
Dresource_node_pool_test.cpp129 callback2; variable
140 …[&callback2](MockResourceNodePoolListener::Action action, const std::shared_ptr<ResourceNode> &res… in __anon81956fe40202()
141 callback2.Call(action, resource); in __anon81956fe40202()
152 EXPECT_CALL(callback2, Call(MockResourceNodePoolListener::INSERT, _)).Times(2);
156 EXPECT_CALL(callback2, Call(MockResourceNodePoolListener::DELETE, _)).Times(2);
Dcontext_pool_test.cpp155 …n<void(MockContextPoolListener::Action action, const std::shared_ptr<Context> &context)> callback2; variable
165 … [&callback2](MockContextPoolListener::Action action, const std::shared_ptr<Context> &context) { in __anon14ca41bc0202()
166 callback2.Call(action, context); in __anon14ca41bc0202()
177 EXPECT_CALL(callback2, Call(MockContextPoolListener::INSERT, _)).Times(2);
181 EXPECT_CALL(callback2, Call(MockContextPoolListener::DELETE, _)).Times(2);
/base/security/access_token/services/privacymanager/test/unittest/
Dpermission_record_manager_test.cpp708 …sptr<PermActiveStatusChangeCallbackTest> callback2 = new (std::nothrow) PermActiveStatusChangeCall… variable
709 ASSERT_NE(nullptr, callback2);
717 …ASSERT_EQ(RET_SUCCESS, ActiveStatusCallbackManager::GetInstance().RemoveCallback(callback2->AsObje…
/base/security/device_auth/test/unittest/deviceauth/source/
Ddeviceauth_standard_test.cpp720 DeviceAuthCallback callback2; variable
721 ret = gm->regCallback(TEST_APP_ID, &callback2);
/base/sensors/sensor/interfaces/plugin/test/unittest/
DExampleJsunit.test.js25 function callback2() { function