Home
last modified time | relevance | path

Searched refs:player (Results 1 – 25 of 78) sorted by relevance

1234

/external/chromium-trace/catapult/third_party/polymer/components/web-animations-js/test/js/
Dgroup-player.js163 function checkTimes(player, playerState, innerPlayerStates, description) { argument
165 _checkTimes(player, playerState, 0, description + 'top player');
166 _checkTimes(player, innerPlayerStates, 0, description + 'inner player');
169 function _checkTimes(player, timingList, index, trace) { argument
170 assert.isDefined(player, trace + ' exists');
172 assert.equal(player._childPlayers.length, index, trace + ' no remaining players');
176 assert.equal(player.startTime, timingList[0], trace + ' startTime');
177 assert.equal(player.currentTime, timingList[1], trace + ' currentTime');
179 _checkTimes(player._childPlayers[index], timingList[0], 0, trace + ' ' + index);
180 _checkTimes(player, timingList.slice(1), index + 1, trace);
[all …]
Dplayer-finish-event.js5 this.player = this.element.animate([], 1000);
15 var player = this.player;
16 player.onfinish = function(event) {
18 assert.equal(this, player);
19 assert.equal(event.target, player);
34 this.player.onfinish = function(event) { method
41 this.player.reverse();
47 this.player.onfinish = function(event) { method
53 this.player.cancel();
66 this.player.addEventListener('finish', createHandler(1));
[all …]
Dgroup-player-finish-event.js13 this.player = document.timeline.play(animation, 1000);
23 var player = this.player;
24 player.onfinish = function(event) {
26 assert.equal(this, player);
27 assert.equal(event.target, player);
42 this.player.onfinish = function(event) { method
49 this.player.reverse();
55 this.player.onfinish = function(event) { method
61 this.player.cancel();
74 this.player.addEventListener('finish', createHandler(1));
[all …]
Dtiming.js7 var player = document.body.animate([], { duration: 1000 });
8 player.pause();
10 player.currentTime = 500;
11 assert.equal(player.currentTime, 500);
18 var player = target.animate([
23 player.pause();
25 player.currentTime = 200;
28 assert.equal(player.currentTime, 200);
29 player.play();
33 assert.equal(player.currentTime, 300);
[all …]
Deffect-callback.js10 var player = document.body.animate(function(fraction) { fractions.push(fraction); }, 1000);
11 player.startTime = 1000;
21 var player = document.body.animate(function(t) {
30 var player;
34 player = document.body.animate(function() {
39 assert.isTrue(player.startTime >= 0);
45 var player = document.body.animate(function(fraction) { fractions.push(fraction); }, 1000);
48 player.cancel();
55 var player = document.body.animate(function(t, target, a) {
70 var player = document.timeline.play(anim);
[all …]
Dgroup-constructors.js19 assert.equal(p.source.player, p);
20 assert.equal(p._childPlayers[0].source.player, p);
21 assert.equal(p._childPlayers[1].source.player, p);
23 assert.equal(p._childPlayers[1]._childPlayers[0].source.player, p);
24 assert.equal(p._childPlayers[1]._childPlayers[1].source.player, p);
Danimation-constructor.js3 document.timeline.getAnimationPlayers().forEach(function(player) { argument
4 player.cancel();
12 var player = document.timeline.play(animation);
74 var player = document.timeline.play(animation);
75 assert.isNotNull(player);
78 assert.equal(player.currentTime, 100);
Dtimeline.js14 var player = document.body.animate([], {duration: 500, iterations: 1});
21 assert.equal(player.finished, true);
30 var player = document.body.animate([], {duration: 500, iterations: 1});
33 player.cancel();
/external/libgdx/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/
DAndroidMusic.java28 private MediaPlayer player; field in AndroidMusic
34 AndroidMusic (AndroidAudio audio, MediaPlayer player) { in AndroidMusic() argument
36 this.player = player; in AndroidMusic()
38 this.player.setOnCompletionListener(this); in AndroidMusic()
43 if (player == null) return; in dispose()
45 player.release(); in dispose()
49 player = null; in dispose()
59 if (player == null) return false; in isLooping()
61 return player.isLooping(); in isLooping()
71 if (player == null) return false; in isPlaying()
[all …]
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/media/
DMediaPlayerFacade.java101 private void putMp(String tag, MediaPlayer player, String url) { in putMp() argument
103 mPlayers.put(tag, player); in putMp()
109 MediaPlayer player = mPlayers.get(tag); in removeMp() local
110 if (player != null) { in removeMp()
111 player.stop(); in removeMp()
112 player.release(); in removeMp()
127 MediaPlayer player = getPlayer(tag); in mediaPlayOpen() local
128 player = MediaPlayer.create(mService, Uri.parse(url)); in mediaPlayOpen()
129 if (player != null) { in mediaPlayOpen()
130 putMp(tag, player, url); in mediaPlayOpen()
[all …]
/external/chromium-trace/catapult/third_party/polymer/components/web-animations-js/src/
Dtick.js60 var player = new scope.Player(source);
61 player._idle = false;
62 player._timeline = this;
63 this._players.push(player);
66 return player;
115 updatingPlayers = updatingPlayers.filter(function(player) { argument
116 player._inTimeline = player._tick(t);
118 if (!player._inEffect)
119 newPendingClears.push(player._source);
121 newPendingEffects.push(player._source);
[all …]
Dgroup-constructors.js57 var player = underlyingPlayer._wrapper;
58 if (player.playState == 'pending') return;
60 if (!player.source)
63 player._removePlayers();
67 player._updateChildren();
74 scope.bindPlayerForGroup = function(player) { argument
75 player._player._wrapper = player;
76 player._isGroup = true;
77 scope.awaitStartTime(player);
78 player._updateChildren();
Dtimeline.js32 this._players = this._players.filter(function(player) { argument
33 return player.playState != 'finished' && player.playState != 'idle';
37 var player = new scope.Player(source);
38 this._players.push(player);
40 player.play();
41 return player;
Danimation-constructor.js64 scope.bindPlayerForAnimation = function(player) { argument
65 if (player.source && typeof player.source.effect == 'function') {
66 scope.bindPlayerForCustomEffect(player);
118 child.player = this.source.player;
122 childPlayer.currentTime = this.source.player.currentTime - offset;
141 return document.timeline.getAnimationPlayers().filter(function(player) { argument
142 return player.source !== null && player.source.target == this;
Deffect-callback.js19 scope.bindPlayerForCustomEffect = function(player) { argument
20 var target = player.source.target;
21 var effect = player.source.effect;
22 var timing = player.source.timing;
35 effect(t, target, player.source);
39 callback._player = player;
42 player._callback = callback;
/external/replicaisland/src/com/replica/replicaisland/
DHitPlayerComponent.java50 GameObject player = manager.getPlayer(); in update() local
51 if (player != null && player.life > 0) { in update()
52 mPlayerPosition.set(player.getCenteredPositionX(), player.getCenteredPositionY()); in update()
56 HitReactionComponent playerHitReact = player.findByClass(HitReactionComponent.class); in update()
60 boolean accepted = mHitReact.receivedHit(parentObject, player, mHitType); in update()
61 playerHitReact.hitVictim(player, parentObject, mHitType, accepted); in update()
64 boolean accepted = playerHitReact.receivedHit(player, parentObject, mHitType); in update()
65 mHitReact.hitVictim(parentObject, player, mHitType, accepted); in update()
DPatrolComponent.java79 GameObject player = null; in update() local
81 player = manager.getPlayer(); in update()
85 updateAttack(player, parentObject); in update()
109 if (mTurnToFacePlayer && player != null && player.life > 0) { in update()
110 final float horizontalDelta = player.getCenteredPositionX() in update()
113 final float closestDistance = player.width / 2.0f; in update()
201 private void updateAttack(GameObject player, GameObject parentObject) { in updateAttack() argument
218 if (mAttackAtDistance > 0 && player != null && player.life > 0 in updateAttack()
221 if (Utils.sign(player.getPosition().x - parentObject.getPosition().x) in updateAttack()
225 mWorkingVector2.set(player.getPosition()); in updateAttack()
[all …]
DAttackAtDistanceComponent.java50 GameObject player = manager.getPlayer(); in update() local
51 if (player != null) { in update()
52 mDistance.set(player.getPosition()); in update()
58 (Utils.sign(player.getPosition().x - parentObject.getPosition().x) in update()
/external/autotest/client/cros/
Dtouch_playback_test_base.py26 return self.player.has('touchpad')
32 return self.player.has('touchscreen')
38 return self.player.has('mouse')
53 self.player = input_playback.InputPlayback()
55 self.player.emulate(input_type='mouse', property_file=mouse_props)
56 self.player.find_connected_inputs()
77 hw_id = self.player.devices[input_type].hw_id
123 self.player.emulate(input_type='mouse', property_file=property_file)
124 self.player.find_connected_inputs()
131 self.player.playback(filepath, touch_type)
[all …]
/external/autotest/client/cros/video/
Dvideo_screenshot_collector.py16 def __init__(self, player, screenshot_namer, screenshot_capturer): argument
17 self.player = player
37 self.player.seek_to(timestamp)
38 self.player.wait_for_video_to_seek()
51 self.player.load_video()
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/
DBox2DCharacterControllerTest.java49 Body player; field in Box2DCharacterControllerTest
95 player = createPlayer(); in createWorld()
96 player.setTransform(-40.0f, 4.0f, 0); in createWorld()
97 player.setFixedRotation(true); in createWorld()
187 cam.position.set(player.getPosition().x, player.getPosition().y, 0); in render()
191 Vector2 vel = player.getLinearVelocity(); in render()
192 Vector2 pos = player.getPosition(); in render()
205 player.setLinearVelocity(vel.x, vel.y); in render()
211 player.setLinearVelocity(vel.x * 0.9f, vel.y); in render()
233 player.applyLinearImpulse(0, -24, pos.x, pos.y, true); in render()
[all …]
DSelectTest.java39 player = createDummies(n); in create()
81 …String msg = String.format("[%d runs with %dx%d dummy game units] - ", runs, player.size, enemy.si… in correctnessTest()
90 …String msg = String.format("[%d runs with %dx%d dummy game units] - ", runs, player.size, enemy.si… in performanceTest()
98 Dummy test = player.get(0); in consistencyTest()
120 player.shuffle(); in testValueMatchesIndex()
122 originDummy = player.random(); in testValueMatchesIndex()
141 player.shuffle(); in test()
148 for (Dummy d : player) { in allRandom()
162 for (Dummy d : player) { in getKthNearestEnemy()
223 if (player.contains(this, true)) { in setRandomPos()
[all …]
/external/autotest/client/site_tests/video_ChromeVidResChangeHWDecode/
Dvideo_ChromeVidResChangeHWDecode.py35 player = native_html5_player.NativeHtml5Player(tab1,
40 player.load_video()
41 player.play()
50 if (player.paused() or player.ended()):
56 lambda: player.ended(),
/external/autotest/client/site_tests/ui_AppLauncher/
Dui_AppLauncher.py59 player = input_playback.InputPlayback()
60 player.emulate('keyboard', property_file)
61 player.find_connected_inputs()
62 player.blocking_playback(playback_file, 'keyboard')
63 player.close()
/external/autotest/client/cros/chameleon/
Dchameleon_video_capturer.py40 def capture(self, player, max_frame_count, box=None): argument
53 self.capture_only(player, max_frame_count, box)
59 def capture_only(self, player, max_frame_count, box=None): argument
78 player.play()
82 utils.poll_for_condition(lambda : player.currentTime() > 1,

1234