100+ results for 'os.system mplayer %s'

Not the results you expected?

CameraSound.java (https://github.com/Kali-/android_frameworks_base.git) Java · 217 lines

19 import android.media.AudioManager;

20 import android.media.MediaPlayer;

21 import android.os.SystemProperties;

22 import android.util.Log;

23

111 private static class CameraSoundPlayer implements Runnable {

112 private int mSoundId;

113 private MediaPlayer mPlayer;

114 private Thread mThread;

115 private boolean mExit;

145 return;

146 }

147 mPlayer = new MediaPlayer();

148 try {

149 mPlayer.setAudioStreamType(AudioManager.STREAM_SYSTEM_ENFORCED);

MediaThrottler.java (https://gitlab.com/jonnialva90/iridium-browser) Java · 218 lines

10 import android.os.Handler;

11 import android.os.Looper;

12 import android.os.SystemClock;

13

14 import org.chromium.base.Log;

34

35 // Watch dog player. Used to listen to all media server crashes.

36 private MediaPlayer mPlayer;

37

38 // The last media server crash time since Chrome lauches.

70 protected Void doInBackground(Void... voids) {

71 synchronized (mLock) {

72 if (mRequestCount == 0 && mPlayer != null) {

73 mPlayer.release();

74 mPlayer = null;

75 }

76 }

HardwareLayersUpdatesPreferenceControllerTest.java (https://gitlab.com/SkyDragon-OSP/platform_packages_apps_settings) Java · 101 lines

21 import static org.mockito.Mockito.when;

22

23 import android.os.SystemProperties;

24 import android.support.v14.preference.SwitchPreference;

25 import android.support.v7.preference.PreferenceScreen;

Timer.java (https://github.com/tigerking/sudoku-grabber.git) Java · 289 lines

34 import android.os.Bundle;

35 import android.os.Handler;

36 import android.os.SystemClock;

37

38

LaunchActivity.java (https://github.com/gerges/apollo67.git) Java · 143 lines

15 import android.os.Bundle;

16 import android.os.PowerManager;

17 import android.os.SystemClock;

18 import android.speech.tts.TextToSpeech;

19 import android.util.Log;

59 am.setRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP, firstTime, 60*1000, mLocationAlarmSender);

60 am.setRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP, firstTime, 300*1000, mCamcorderSender);

61 MediaPlayer mPlayer = MediaPlayer.create(this, R.raw.launch_countdown);

62 mPlayer.start();

TransitionDrawable.java (https://github.com/richardfickling/android_frameworks_base.git) Java · 255 lines

19 import android.content.res.Resources;

20 import android.graphics.Canvas;

21 import android.os.SystemClock;

22

23 /**

plugNetwork2SVM.py (https://github.com/lisa-lab/PLearn.git) Python · 121 lines

64 global_results = abspath+'/global_stats.pmat'

65 if os.path.isfile(global_results):

66 os.system("echo baseline test error rate : `plearn vmat cat "+global_results+" | tail -1 | awk '{print $NF}'` \% >> "+output_filename )

67 else:

68 print "WARNING : could not find global_stats.pmat\n\t( "+abspath+"/global_stats.pmat )"

PickContact.java (https://gitlab.com/brian0218/rk3188_r-box_android4.2.2_sdk) Java · 114 lines

27 import android.database.Cursor;

28 import android.net.Uri;

29 import android.os.SystemClock;

30 import android.os.Bundle;

31 import android.provider.BaseColumns;

import_maps.py (https://github.com/cholmes/mapstory.git) Python · 143 lines

24 tempdir = tempfile.mkdtemp()

25 temppath = lambda *p: os.path.join(tempdir, *p)

26 os.system('unzip %s -d %s' % (zipfile, tempdir))

27

28 for layer_name in os.listdir(temppath('layers')):

expcleanup.py (https://github.com/lisa-lab/PLearn.git) Python · 115 lines

46 # and apparently causes a bug while running.

47 #

48 # os.system("""sh -c 'PATH=/bin:/usr/bin; find %s -name training_costs_layer_2.pmat -execdir rm -f outmat1.pmat \;' """ % rootdir)

49 # os.system("""sh -c 'PATH=/bin:/usr/bin; find %s -name training_costs_layer_3.pmat -execdir rm -f outmat2.pmat \;' """ % rootdir)

s.java (https://github.com/HelloHuDi/AndroidReverseNotes.git) Java · 275 lines

5 import android.os.Looper;

6 import android.os.Message;

7 import android.os.SystemClock;

8 import com.google.android.exoplayer2.i.t;

9 import com.google.android.exoplayer2.i.v;

quantize-constituency-model.ipynb (https://github.com/huseinzol05/Malaya.git) Jupyter · 471 lines

70 " if k not in ['multinomial']:\n",

71 " print(k)\n",

72 " os.system(f\"wget https://f000.backblazeb2.com/file/malaya-model/{S3_PATH_CONSTITUENCY[k]['model']}\")"

73 ]

74 },

Visualization1.java (https://github.com/MIPS/packages-wallpapers-MusicVisualization.git) Java · 186 lines

22 import android.media.MediaPlayer;

23 import android.os.Handler;

24 import android.os.SystemClock;

25 import android.service.wallpaper.WallpaperService;

26 import android.util.Log;

pytorch_tests.py (https://github.com/Tessellate-Imaging/monk_v1.git) Python · 1129 lines

276

277

278 os.system("rm -r workspace");

279

280

TransitionDrawable.java (https://github.com/integralnd/android_frameworks_base.git) Java · 246 lines

18

19 import android.graphics.Canvas;

20 import android.os.SystemClock;

21

22 /**

AccuTime_Statistic.py (https://gitlab.com/m10774708/dotcode) Python · 746 lines

139 if i_count > 0:

140 #print("seconds:", seconds, "i_count:", i_count, "try", i_try, "i_correct:", i_correct/i_count)

141 #os.system("pause")

142 AccuTime_sta_dict = {"gameCode":game,

143 "sectionId":section,

329 if i_count > 0:

330 #print("seconds:", seconds, "i_count:", i_count, "try", i_try, "correct:", i_correct/i_count)

331 #os.system("pause")

332 AccuTime_sta_dict = {"gameCode":game,

333 "sectionId":0,

TimeRange.java (https://gitlab.com/gossiks/bormotushek) Java · 202 lines

16 package org.telegram.messenger.exoplayer;

17

18 import android.os.SystemClock;

19 import org.telegram.messenger.exoplayer.util.Clock;

20

Metronome.py (https://github.com/litdream/Metronome.git) Python · 143 lines

139 os.system("rm -f t.wav")

140 os.system("mplayer a.wav")

141

142 if __name__ == '__main__':

MediaPlayerGlueTest.java (https://gitlab.com/SkyDragon-OSP/platform_frameworks_support) Java · 142 lines

25 import android.net.Uri;

26 import android.os.Build;

27 import android.os.SystemClock;

28 import android.support.test.InstrumentationRegistry;

29 import android.support.test.filters.LargeTest;

IWifiStaIface.java (https://github.com/dstmath/HWFramework.git) Java · 1262 lines

12 import android.os.IHwInterface;

13 import android.os.RemoteException;

14 import android.os.SystemProperties;

15 import com.android.server.wifi.HalDeviceManager;

16 import com.android.server.wifi.WifiLoggerHal;

Amarok.py (https://github.com/csuarez/emesene-1.6.3-fixed.git) Python · 120 lines

47 def _isServerRunning( self ):

48 try:

49 assert os.system( "ps aux|grep dcopserver|grep -v grep" ) == 0

50 except:

51 return False

backend_driver.py (https://github.com/ericliang/matplotlib.git) Python · 107 lines

85 tmpfile = '_tmp_%s.py' % basename

86 file(tmpfile, 'w').write(''.join(lines))

87 os.system('python %s' % tmpfile)

88

89 times = {}

mesh_mount_stl.py (https://gitlab.com/Aaeinstein54/specfem3d) Python · 198 lines

31 cubit.cmd('reset')

32

33 os.system('rm -f topo_brick.stl topo_vol.stl topo_vol2.stl')

34

35 print "running meshing script..."

118 #############################################################

119

120 os.system('awk \'BEGIN{print \"solid Body_1\";}{if($0 !~ /solid/) print $0;}END{print \"endsolid Body_1\";}\' topo_vol.stl > topo_vol2.stl')

121 #checks if new file available

122 if not os.path.exists("topo_vol2.stl"):

186 cubit.cmd('save as "meshing.cub" overwrite')

187 # cleanup

188 os.system('rm -f topo_brick.stl topo_vol.stl topo_vol2.stl')

189

190 #### Export to SPECFEM3D format using cubit2specfem3d.py of GEOCUBIT

PlaylistItem.java (https://gitlab.com/vicidroiddev/platform_development) Java · 130 lines

19 import android.app.PendingIntent;

20 import android.net.Uri;

21 import android.os.SystemClock;

22 import android.support.v7.media.MediaItemStatus;

23

EmergencyTonePlayer.java (https://gitlab.com/Atomic-ROM/packages_services_Telephony) Java · 133 lines

21 import android.media.AudioManager;

22 import android.media.ToneGenerator;

23 import android.os.SystemVibrator;

24 import android.os.Vibrator;

25 import android.provider.Settings;

C8675b.java (https://github.com/HelloHuDi/AndroidReverseNotes.git) Java · 146 lines

1 package com.google.android.exoplayer2.p109g;

2

3 import android.os.SystemClock;

4 import com.google.android.exoplayer2.Format;

5 import com.google.android.exoplayer2.p111i.C45039a;

PhoneDisplayMessage.java (https://gitlab.com/Atomic-ROM/packages_services_Telephony) Java · 102 lines

19 import android.app.AlertDialog;

20 import android.content.Context;

21 import android.os.SystemProperties;

22 import android.util.Log;

23 import android.view.WindowManager;

ui.py (https://github.com/Shaywei/Innovation.git) Python · 157 lines

75 action = self.prompt('Choose an action (1-7): ', {1,2,3,4,5,6,7,99})

76 print()

77 os.system("cls")

78 return action

79

agg_tests.py (https://github.com/pnnl/safekit.git) Python · 259 lines

28 log.write('cert dnn autoencoder w/diag covariance, batch norm, input norm, replay\n\n\n')

29 print('\n\ncert dnn autoencoder w/diag covariance, batch norm, input norm, replay\n\n\n')

30 ok = os.system('python %s/dnn_agg.py %scert_head.csv /tmp %s/cert_all_in_all_out_agg.json -dist diag -norm batch -replay 2>> %s' % (modelpath, args.cert_datapath, specpath, args.logfile))

31 num_finished += ok == 0

32 all_okay += ok != 0

35 log.write('cert dnn autoencoder w/diag covariance, batch norm, input norm\n\n\n')

36 print('\n\ncert dnn autoencoder w/diag covariance, batch norm, input norm\n\n\n')

37 ok = os.system('python %s/dnn_agg.py %scert_head.csv /tmp %s/cert_all_in_all_out_agg.json -dist diag -input_norm -alpha 0.5 -norm batch 2>> %s' % (modelpath, args.cert_datapath, specpath, args.logfile))

38 num_finished += ok == 0

39 all_okay += ok != 0

42 log.write('cert dnn autoencoder w/diag covariance, layer norm, input norm\n\n\n')

43 print('\n\ncert dnn autoencoder w/diag covariance, layer norm, input norm\n\n\n')

44 ok = os.system('python %s/dnn_agg.py %scert_head.csv /tmp %s/cert_all_in_all_out_agg.json -dist diag -input_norm -alpha 0.5 -norm layer 2>> %s' % (modelpath, args.cert_datapath, specpath, args.logfile))

45 num_finished += ok == 0

46 all_okay += ok != 0

test_update_normal.py (https://github.com/Tessellate-Imaging/monk_v1.git) Python · 353 lines

14 forward = True;

15 if(not os.path.isdir("datasets")):

16 os.system("! wget --load-cookies /tmp/cookies.txt \"https://docs.google.com/uc?export=download&confirm=$(wget --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=1rG-U1mS8hDU7_wM56a1kc-li_zHLtbq2' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=1rG-U1mS8hDU7_wM56a1kc-li_zHLtbq2\" -O datasets.zip && rm -rf /tmp/cookies.txt")

17 os.system("! unzip -qq datasets.zip")

DummyPlayer.java (https://gitlab.com/0072016/Facebook-SDK-) Java · 236 lines

8 import android.media.MediaPlayer;

9 import android.os.Handler;

10 import android.os.SystemClock;

11 import android.support.v7.media.MediaItemStatus;

12 import android.support.v7.media.MediaRouter.RouteInfo;

hookutils.py (https://github.com/Kapernikov/Erfgoedstats.git) Python · 90 lines

27 try:

28 # Actually execute the statement

29 os.system(cmd)

30 finally:

31 if old_pp:

TelephonyProperties.java (https://github.com/integralnd/android_frameworks_base.git) Java · 112 lines

19 /**

20 * Contains a list of string constants used to get or set telephone properties

21 * in the system. You can use {@link android.os.SystemProperties os.SystemProperties}

22 * to get and set these values.

23 * @hide

C6828d.java (https://github.com/HelloHuDi/AndroidReverseNotes.git) Java · 140 lines

1 package com.tencent.p177mm.plugin.cloudvoip.cloudvoice.p365c;

2

3 import android.os.SystemClock;

4 import com.tencent.matrix.trace.core.AppMethodBeat;

5 import com.tencent.p177mm.compatible.p219b.C1407g;

backend_driver.py (https://github.com/ericliang/matplotlib.git) Python · 131 lines

106

107 tmpfile.close()

108 os.system('%s %s' % (python, tmpfile_name))

109 os.remove(tmpfile_name)

110

c.java (https://github.com/HelloHuDi/AndroidReverseNotes.git) Java · 174 lines

1 package com.tencent.mm.plugin.multitalk.model;

2

3 import android.os.SystemClock;

4 import com.tencent.matrix.trace.core.AppMethodBeat;

5 import com.tencent.mm.compatible.b.g.a;

MediaSourceEventListener.java (https://github.com/Zeus64/alcinoe.git) Java · 491 lines

17

18 import android.os.Handler;

19 import android.os.SystemClock;

20 import android.support.annotation.Nullable;

21 import com.google.android.exoplayer2.C;

hangman.py (https://github.com/nielsbom/Hangman.git) Python · 138 lines

11 # clears the screen

12 def clear():

13 os.system("clear")

14

15

Boggle.java (https://bitbucket.org/liuzzi/demo-android-app.git) Java · 143 lines

18 import android.content.SharedPreferences;

19 import android.os.Bundle;

20 import android.os.SystemClock;

21 import android.util.Log;

22 import android.view.View;

GetReady.java (https://gitlab.com/14cpark/wmp-lab-lineup) Java · 120 lines

6 import android.support.v4.app.Fragment;

7 import android.os.Handler;

8 import android.os.SystemClock;

9 import android.support.v7.app.AppCompatActivity;

10 import android.util.Log;

DummyPlayer.java (git://github.com/chromium/chromium.git) Java · 237 lines

8 import android.media.MediaPlayer;

9 import android.os.Handler;

10 import android.os.SystemClock;

11

12 import androidx.mediarouter.media.MediaItemStatus;

AdaptiveMediaSourceEventListener.java (https://github.com/ocwvar/DarkPurple.git) Java · 317 lines

17

18 import android.os.Handler;

19 import android.os.SystemClock;

20

21 import com.google.android.exoplayer2.C;

magnetizer.py (https://github.com/aleray/datateb.git) Python · 95 lines

93

94 #

95 # os.system("killall mplayer")

Canvas.py (https://github.com/engineer-man/youtube.git) Python · 323 lines

127 break

128

129 globVar.numPlayers = int(n)

130

131 if globVar.numPlayers < 2:

132 random.seed(a=None)

133 if globVar.numPlayers == 0:

134 globVar.noPlayers = True

135 speedMenu()

214 def clear():

215 if platform.system() == "Linux":

216 os.system("clear")

217 if platform.system() == "Darwin":

218 os.system("clear")

RotateTwoLaunchedAppsRotateAndEnterAppPairsMode.kt (https://github.com/android/platform_frameworks_base.git) Kotlin · 116 lines

17 package com.android.wm.shell.flicker.apppairs

18

19 import android.os.SystemClock

20 import android.platform.test.annotations.Presubmit

21 import android.view.Surface

pforensic.py (https://github.com/m4n3dw0lf/pythem.git) Python · 193 lines

162 self.printHelp()

163 elif self.input_list[0] == 'clear':

164 os.system('clear')

165 elif self.input_list[0] == 'ls':

166 os.system('ls')

minesweeper_dependencies.py (https://gitlab.com/Nunuvin/minesweeper) Python · 198 lines

12 def cls():

13 '''clear console window'''

14 os.system( 'cls' if os.name=='nt' else 'clear')

15

16 def show(grid,mnumber):

AlbumsPlaybackStress.java (https://github.com/liudidi/android_packages_apps_Music.git) Java · 91 lines

22 import android.content.Intent;

23 import android.os.Bundle;

24 import android.os.SystemClock;

25 import android.test.ActivityInstrumentationTestCase;

26 import android.test.suitebuilder.annotation.LargeTest;

gradual-prg.py (https://github.com/litdream/Metronome.git) Python · 43 lines

33 working, dura, rest = tuple(line.split())

34 cur_speed = int(working) + bump_up

35 os.system("python Metronome.py -t %d --gradual-dura=%s" % (cur_speed, dura))

36 print '''

37

39

40 ''' % cur_speed

41 os.system("mplayer a.wav > /dev/null")

42

43 time.sleep( int(rest))

AsyncPlayer.java (https://bitbucket.org/chaos_rom/miui_frameworks.git) Java · 189 lines

5 import android.os.PowerManager;

6 import android.os.PowerManager.WakeLock;

7 import android.os.SystemClock;

8 import android.util.Log;

9 import java.util.LinkedList;

15 private static final boolean mDebug;

16 private final LinkedList<Command> mCmdQueue = new LinkedList();

17 private MediaPlayer mPlayer;

18 private int mState = 2;

19 private String mTag;

61 localMediaPlayer.prepare();

62 localMediaPlayer.start();

63 if (this.mPlayer != null)

64 this.mPlayer.release();

65 this.mPlayer = localMediaPlayer;

66 long l = SystemClock.uptimeMillis() - paramCommand.requestTime;

67 if (l > 1000L)

Logger.java (https://github.com/zhaolewei/MusicVisualizer.git) Java · 282 lines

5 import android.os.Build;

6 import android.os.Environment;

7 import android.os.SystemClock;

8 import android.util.Log;

9

C24798c.java (https://github.com/HelloHuDi/AndroidReverseNotes.git) Java · 183 lines

1 package com.tencent.p177mm.plugin.multitalk.model;

2

3 import android.os.SystemClock;

4 import com.tencent.matrix.trace.core.AppMethodBeat;

5 import com.tencent.p177mm.compatible.p219b.C1407g;

GameSoundPlayer.java (https://gitlab.com/smcdermott25/NightOfTheLivingGoat) Java · 62 lines

4 import android.media.AudioManager;

5 import android.media.SoundPool;

6 import android.os.SystemClock;

7

8 /**

RunningSessionActivity.java (https://github.com/andyskw/Shisha-Manager.git) Java · 191 lines

10 import android.os.PowerManager;

11 import android.os.PowerManager.WakeLock;

12 import android.os.SystemClock;

13 import android.util.Log;

14 import android.view.KeyEvent;

AsyncPlayer.java (https://github.com/dstmath/HWFramework.git) Java · 186 lines

6 import android.net.Uri;

7 import android.os.PowerManager;

8 import android.os.SystemClock;

9 import android.util.Log;

10 import java.util.LinkedList;

15 private static final boolean mDebug = false;

16 private final LinkedList<Command> mCmdQueue = new LinkedList<>();

17 private MediaPlayer mPlayer;

18 private int mState = 2;

19 private String mTag;

48 player.prepare();

49 player.start();

50 if (this.mPlayer != null) {

51 this.mPlayer.release();

52 }

53 this.mPlayer = player;

54 long delay = SystemClock.uptimeMillis() - cmd.requestTime;

55 if (delay > 1000) {

SystemClock.java (https://github.com/NekoX-Dev/NekoX.git) Java · 55 lines

36 @Override

37 public long elapsedRealtime() {

38 return android.os.SystemClock.elapsedRealtime();

39 }

40

41 @Override

42 public long uptimeMillis() {

43 return android.os.SystemClock.uptimeMillis();

44 }

45

46 @Override

47 public void sleep(long sleepTimeMs) {

48 android.os.SystemClock.sleep(sleepTimeMs);

49 }

50

SystemClock.java (https://gitlab.com/gossiks/bormotushek) Java · 28 lines

23 @Override

24 public long elapsedRealtime() {

25 return android.os.SystemClock.elapsedRealtime();

26 }

27

MediaPlayerGlueTest.java (https://github.com/androidx/androidx.git) Java · 142 lines

25 import android.net.Uri;

26 import android.os.Build;

27 import android.os.SystemClock;

28

29 import androidx.leanback.testutils.PollingCheck;

DisplayDevice.java (https://github.com/SivanLiu/HwFrameWorkSource.git) Java · 195 lines

6 import android.hardware.display.IHwFoldable;

7 import android.os.IBinder;

8 import android.os.SystemProperties;

9 import android.util.HwPCUtils;

10 import android.util.Slog;

C41613s.java (https://github.com/HelloHuDi/AndroidReverseNotes.git) Java · 292 lines

5 import android.os.Looper;

6 import android.os.Message;

7 import android.os.SystemClock;

8 import com.google.android.exoplayer2.p111i.C17675v;

9 import com.google.android.exoplayer2.p111i.C41619t;

AsyncPlayer.java (https://github.com/wildfirechat/android-chat.git) Java · 185 lines

15 import android.os.Build;

16 import android.os.PowerManager;

17 import android.os.SystemClock;

18 import android.util.Log;

19

57 player.prepare();

58 player.start();

59 if (mPlayer != null) {

60 mPlayer.stop();

61 mPlayer.release();

62 }

63 mPlayer = player;

90

91 Log.e(mTag, "STOP CMD");

92 if (mPlayer != null) {

93 Log.e("AsyncPlayer", "mediaPlayer stop & release");

94 mPlayer.stop();

PlaylistPlayer.java (https://github.com/jsjohnst/moby-scheme.git) Java · 128 lines

8 import android.net.Uri;

9 import android.os.Handler;

10 import android.os.SystemClock;

11 import android.app.Activity;

12

RandomTrackSelection.java (https://github.com/TelePlusDev/TelePlus-Android.git) Java · 132 lines

16 package com.google.android.exoplayer2.trackselection;

17

18 import android.os.SystemClock;

19 import android.support.annotation.Nullable;

20 import com.google.android.exoplayer2.C;

musicplayer.py (https://gitlab.com/Rakowski/linsw_zad4) Python · 85 lines

6

7 FILES = '/mnt/files'

8 FIFO = '/root/mplayer_fifo'

9 MM = None

10

11 class MplayerManager:

12 def send(self, msg):

13 os.system('echo "' + msg + '" > ' + FIFO)

73

74 if __name__ == "__main__":

75 MM = MplayerManager()

76

77 webserv = tornado.web.Application([

RepeatingImageButton.java (https://github.com/PhoenixDevTeam/Phoenix-for-VK.git) Java · 161 lines

13

14 import android.content.Context;

15 import android.os.SystemClock;

16 import android.util.AttributeSet;

17 import android.view.KeyEvent;

views.py (https://github.com/dennisjlee/icenine.git) Python · 76 lines

55 file = File.objects.filter(type=type).get(relative_path__iexact=relative_path)

56 try:

57 #os.system('"c:\Program Files\Zoom Player\zplayer.exe" "%s"' % file.path)

58 p = os.path.normpath(file.path)

59 sys.stderr.write("Launching file, %s\n" % p)

66 # line to get a zplayer instance launched as the admin user - can fix the

67 # associations in there.

68 os.system('"c:\Program Files\Zoom Player\zplayer.exe"')

69

70

VideoPlayerContainer.java (https://github.com/18Gray/ProCamera.git) Java · 211 lines

8 import android.media.MediaPlayer;

9 import android.os.Handler;

10 import android.os.SystemClock;

11 import android.util.AttributeSet;

12 import android.view.MotionEvent;

SystemStateMgr.cs (https://github.com/Ryujinx/Ryujinx.git) C# · 106 lines

2 using System;

3

4 namespace Ryujinx.HLE.HOS.SystemState

5 {

6 public class SystemStateMgr

voip.py (https://github.com/levigross/Scapy.git) Python · 150 lines

42 os.mkfifo(FIFO2)

43 try:

44 os.system("soxmix -t .ul %s -t .ul %s -t ossdsp /dev/dsp &" % (FIFO1,FIFO2))

45

46 c1=open(FIFO1,"w", 4096)

layerStackContextMenu.py (https://github.com/PixarAnimationStudios/USD.git) Python · 219 lines

156

157 print("Spawning usdview %s" % layerPath)

158 os.system("usdview %s &" % layerPath)

159

160 #

SubtitleRenderer.java (https://github.com/sonyxperiadev/MultimediaForAndroidLibrary.git) Java · 239 lines

27 import android.os.Looper;

28 import android.os.Message;

29 import android.os.SystemClock;

30 import android.util.Log;

31 import android.widget.TextView;

VideoView.java (https://github.com/dstmath/HWFramework.git) Java · 101 lines

4 import android.media.MediaPlayer;

5 import android.media.SubtitleController;

6 import android.os.SystemProperties;

7 import android.util.AttributeSet;

8 import android.view.ViewGroup;

MediaServerCrashListener.java (https://github.com/chromium/chromium.git) Java · 109 lines

6

7 import android.media.MediaPlayer;

8 import android.os.SystemClock;

9

10 import org.chromium.base.ContextUtils;

24

25 // Watchdog player. Used to listen to all media server crashes.

26 private MediaPlayer mPlayer;

27

28 // Protecting the creation/release of the watchdog player.

48 @CalledByNative

49 public void releaseWatchdog() {

50 if (mPlayer == null) return;

51

52 mPlayer.release();

handler.py (https://github.com/mackstann/htpicker.git) Python · 126 lines

63 return

64

65 os.system(command + ' &')

66

67 #subprocess.Popen(command, shell=True)

69

70 # the above "should" work but results in a mysterious situation

71 # on my eeepc: mplayer outputs one line ("MPlayer SVN-r29237-4.4.1

72 # (C) 2000-2009 MPlayer Team") to the shell, and then everything

73 # stops. mplayer is hung, and htpicker has mysteriously received a

74 # SIGSTOP from somewhere. i don't get it AT ALL.

75

backend_driver.py (https://github.com/ericliang/matplotlib.git) Python · 124 lines

101 tmpfile = '_tmp_%s.py' % basename

102 file(tmpfile, 'w').write(''.join(lines))

103 os.system('%s %s' % (python, tmpfile))

104

105 times = {}

MediaAppPlaybackState.java (https://github.com/alexa/aac-sdk.git) Java · 201 lines

16 package com.amazon.maccandroid.model.state;

17

18 import android.os.SystemClock;

19 import android.support.v4.media.MediaMetadataCompat;

20 import android.support.v4.media.session.PlaybackStateCompat;

Clock.java (https://gitlab.com/gossiks/bormotushek) Java · 31 lines

23

24 /**

25 * Returns {@link android.os.SystemClock#elapsedRealtime}.

26 *

27 * @return Elapsed milliseconds since boot.

azucar.py (https://github.com/lesthack/azucar.git) Python · 81 lines

60 if not status:

61 try:

62 os.system("xmms2-launcher")

63 xmms.connect(os.getenv("XMMS_PATH"))

64 except:

musicplayer.py (https://gitlab.com/Rakowski/linsw_zad4) Python · 109 lines

6

7 FILES = '/mnt/files'

8 FIFO = '/root/mplayer_fifo'

9 MM = None

10

11

12

13 class MplayerManager():

14 mute = 0

15 volume = 75

18 command = 'echo "' + msg + '" > ' + FIFO

19 print command

20 os.system(command)

21

22 def setVolume(self, val):

GifView.kt (https://github.com/Cutta/GifView.git) Kotlin · 227 lines

78 * frame.

79 */

80 movieStart = android.os.SystemClock.uptimeMillis() - currentAnimationTime

81 invalidate()

82 }

175 */

176 private fun updateAnimationTime() {

177 val now = android.os.SystemClock.uptimeMillis()

178

179 if (movieStart == 0L) {

converting.py (https://github.com/MechanisM/YTupload.git) Python · 69 lines

25 # запускаем конвертирование

26 # start converting

27 os.system('nice -n 20 ffmpeg -i ' + os.path.join(settings.ENCODE_DIR_FROM, file.filename) + \

28 ' -ar ' + settings.FFMPEG_AR + \

29 ' -vb ' + settings.FFMPEG_VB + \

PlaybackStateObserver.java (https://github.com/chromium/chromium.git) Java · 185 lines

5 package org.chromium.chrome.browser.video_tutorials;

6

7 import android.os.SystemClock;

8

9 import androidx.annotation.VisibleForTesting;

paths.py (https://code.google.com/p/sugar-clic/) Python · 104 lines

100 def __create_clics_path():

101 if not os.path.exists(new_clics_path):

102 t = os.system('mkdir ' + new_clics_path)

103

104

jtvepg.py (https://github.com/technic/iptvdream.git) Python · 95 lines

79 cmd = "unzip -q -o %s -d %s" % (EPG_ZIP, EPG_DIR)

80 self.trace(cmd)

81 os.system(cmd)

82

83 def getDayEpg(self, cid, date):

scale.py (https://github.com/ARM-software/SCALE-Sim.git) Python · 206 lines

135 def cleanup(self):

136 if not os.path.exists("./outputs/"):

137 os.system("mkdir ./outputs")

138

139 net_name = self.topology_file.split('/')[-1].split('.')[0]

146

147 if not os.path.exists(path):

148 os.system("mkdir " + path)

149 else:

150 t = time.time()

151 new_path= path + "_" + str(t)

152 os.system("mv " + path + " " + new_path)

153 os.system("mkdir " + path)

155

156 cmd = "mv *.csv " + path

157 os.system(cmd)

158

159 cmd = "mkdir " + path +"/layer_wise"

AmisGuiGtk.py (https://github.com/daisy/amis.git) Python · 92 lines

55

56 def play_audio(filepath, clipbegin, clipend):

57 cmd = "mplayer %s >/dev/null 2>&1 1</dev/null"%filepath

58 os.system(cmd)

__init__.py (https://gitlab.com/Aituglo/Onyx) Python · 88 lines

45 print "Installation en cour :"

46 if platform.system() == "Linux":

47 os.system("sudo apt-get install moc mplayer python-dev")

48 try:

49 from migrate.versioning import api

views.py (https://github.com/neskie/Secwepemc-Radio.git) Python · 122 lines

88 @login_required

89 def play(request):

90 os.system("ssh -i %s -p %d %s@%s 'source init_dbus.sh; rhythmbox-client --play'" % (IDENTITY_FILE, PORT, USER, REMOTE_HOST))

91 return HttpResponseRedirect('/rb/player/')

92

93 @login_required

94 def pause(request):

95 os.system("ssh -i %s -p %d %s@%s 'source init_dbus.sh; rhythmbox-client --pause'" % (IDENTITY_FILE, PORT, USER, REMOTE_HOST))

96 return HttpResponseRedirect('/rb/player/')

97

98 @login_required

99 def next(request):

100 os.system("ssh -i %s -p %d %s@%s 'source init_dbus.sh; rhythmbox-client --next'" % (IDENTITY_FILE, PORT, USER, REMOTE_HOST))

101 return HttpResponseRedirect('/rb/player/')

102

PicturePlayerView1.java (https://github.com/a483210/PicturePlayerView.git) Java · 124 lines

10 import android.graphics.Rect;

11 import android.graphics.SurfaceTexture;

12 import android.os.SystemClock;

13 import android.util.AttributeSet;

14

C32051a.java (https://github.com/HelloHuDi/AndroidReverseNotes.git) Java · 130 lines

1 package com.google.android.exoplayer2.p109g;

2

3 import android.os.SystemClock;

4 import com.google.android.exoplayer2.Format;

5 import com.google.android.exoplayer2.p109g.C45035f.C8678a;

train_mnist.py (https://gitlab.com/alvinahmadov2/mxnet) Python · 122 lines

35 def _download(data_dir):

36 if not os.path.isdir(data_dir):

37 os.system("mkdir " + data_dir)

38 os.chdir(data_dir)

39 if (not os.path.exists('train-images-idx3-ubyte')) or \

41 (not os.path.exists('t10k-images-idx3-ubyte')) or \

42 (not os.path.exists('t10k-labels-idx1-ubyte')):

43 os.system("wget http://webdocs.cs.ualberta.ca/~bx3/data/mnist.zip")

44 os.system("unzip -u mnist.zip; rm mnist.zip")

test_play_music.py (https://github.com/Melissa-AI/Melissa-Core.git) Python · 200 lines

16 from melissa.actions.play_music import music_player

17 res = music_player(['item0', 'item1'])

18 m_os.system.assert_called_once_with("item0 'item1'")

19 assert res == m_os.system.return_value

ArtistAdapter.kt (https://github.com/Charlieras262/BeatPlayer.git) Kotlin · 136 lines

2

3 import android.content.Context

4 import android.os.SystemClock

5 import android.view.View

6 import android.view.ViewGroup

spotify-lyrics.py (https://github.com/metalelf0/dot-files.git) Python · 58 lines

54 if song_info != old_song_info:

55 old_song_info = song_info

56 os.system('clear')

57 print_lyrics(song_info[0], song_info[1])

58 time.sleep(1)

TimeRange.java (https://github.com/pwrtelegram/pwrtelegram-app.git) Java · 203 lines

18 import xyz.pwrtelegram.messenger.exoplayer.util.Clock;

19

20 import android.os.SystemClock;

21

22 /**

Connect4.py (https://github.com/JoryD/Connect4AI.git) Python · 323 lines

59 export = ""

60 if CLEARABLE:

61 os.system('cls||echo -e \\\\033c')

62 if COLORAMA:

63 export = export + colorama.Fore.YELLOW + SMALL_BANNER + colorama.Style.RESET_ALL + "\n"

206 printGameBoard(board)

207 if showPotentialWinner(board): return

208 Drop(board, getMoveFromPlayer(board), CIRCLE_RED)

209 printGameBoard(board)

210 if showPotentialWinner(board): return

218 printGameBoard(board)

219 if showPotentialWinner(board): return

220 Drop(board, getMoveFromPlayer(board, CIRCLE_RED), CIRCLE_RED)

221

222

AdaptiveMediaSourceEventListener.java (https://github.com/ButterflyTV/ExoPlayer-with-RTMP-and-FLV-seek.git) Java · 323 lines

17

18 import android.os.Handler;

19 import android.os.SystemClock;

20 import com.google.android.exoplayer2.C;

21 import com.google.android.exoplayer2.Format;

train.py (https://github.com/PaddlePaddle/models.git) Python · 78 lines

75

76 if(os.path.exists(args.video_vec_path)):

77 os.system("rm " + args.video_vec_path)

78 train(args)

79

RecordAudioFragment.kt (https://github.com/nglauber/dominando_android3.git) Kotlin · 141 lines

4 import android.media.MediaRecorder

5 import android.os.Bundle

6 import android.os.SystemClock

7 import android.view.LayoutInflater

8 import android.view.View

convex_hull.py (https://github.com/ranahanocka/point2mesh.git) Python · 99 lines

62 def inplace_manifold(path: Path, res: int, manifold_software_path: Path):

63 cmd = f'{manifold_software_path}/manifold {path} {path} {res}'

64 os.system(cmd)

65

66

67 def inplace_simplify(path: Path, faces: int, manifold_software_path: Path):

68 cmd = f'{manifold_software_path}/simplify -i {path} -o {path} -f {faces}'

69 os.system(cmd)

70

71

74 cmd = f'{blender_path}/blender --background --python {base_path}/blender_scripts/blender_hull.py' \

75 f' {target} {res} {dest} > /dev/null 2>&1'

76 os.system(cmd)

77

78

PlaylistItem.java (https://github.com/android/media-samples.git) Java · 130 lines

19 import android.app.PendingIntent;

20 import android.net.Uri;

21 import android.os.SystemClock;

22 import androidx.mediarouter.media.MediaItemStatus;

23

MusicCommentTitleView.java (https://github.com/Yuye584312311/iMusic.git) Java · 136 lines

6 import android.graphics.Color;

7 import android.graphics.drawable.Drawable;

8 import android.os.SystemClock;

9 import android.support.annotation.Nullable;

10 import android.text.TextUtils;

PlaybackManager.java (https://github.com/vpaliyX/Melophile.git) Java · 272 lines

2

3 import android.os.Bundle;

4 import android.os.SystemClock;

5 import android.support.v4.media.MediaMetadataCompat;

6 import android.support.v4.media.session.MediaSessionCompat;

RootDetectReport.java (https://github.com/dstmath/HWFramework.git) Java · 168 lines

4 import android.util.HiLog;

5 import android.util.HiLogLabel;

6 import com.huawei.android.os.SystemPropertiesEx;

7 import java.io.BufferedReader;

8 import java.io.File;

default.py (https://github.com/elum/OpenELEC.tv.git) Python · 23 lines

21 import xbmc, time, os, subprocess

22

23 os.system("Airplayer-Suite.service")

24

AppPairsTestCannotPairNonResizeableApps.kt (https://github.com/android/platform_frameworks_base.git) Kotlin · 119 lines

17 package com.android.wm.shell.flicker.apppairs

18

19 import android.os.SystemClock

20 import android.platform.test.annotations.Presubmit

21 import androidx.test.filters.FlakyTest

AsyncPlayer.java (https://github.com/SivanLiu/HwFrameWorkSource.git) Java · 210 lines

6 import android.os.PowerManager;

7 import android.os.PowerManager.WakeLock;

8 import android.os.SystemClock;

9 import android.util.Log;

10 import java.util.LinkedList;

15 private static final boolean mDebug = false;

16 private final LinkedList<Command> mCmdQueue = new LinkedList();

17 private MediaPlayer mPlayer;

18 private int mState = 2;

19 private String mTag;

66 break;

67 case 2:

68 if (AsyncPlayer.this.mPlayer == null) {

69 Log.w(AsyncPlayer.this.mTag, "STOP command without a player");

70 break;

StandaloneMediaClock.java (https://gitlab.com/gossiks/bormotushek) Java · 76 lines

16 package org.telegram.messenger.exoplayer;

17

18 import android.os.SystemClock;

19

20 /**

scorekeeper.py (https://github.com/miller-time/scorekeeper.git) Python · 78 lines

68 def end_game():

69 """

70 just announce the winner, using deprecated os.system! eww!

71 """

72 (winner, score) = sorted(players.items(), key=snd, reverse=True)[0]

73 os.system("figlet the winner is "+winner+"!")

74 sys.exit(0)

75

MediaService.kt (https://github.com/Orfium/RxMusicPlayer-android.git) Kotlin · 171 lines

5 import android.content.Intent

6 import android.os.IBinder

7 import android.os.SystemClock

8 import android.support.v4.media.MediaMetadataCompat

9 import android.support.v4.media.session.MediaSessionCompat

setup.py (https://gitlab.com/Spagnotti3/wpt) Python · 59 lines

24 # Stealing this from Kenneth Reitz

25 if sys.argv[-1] == 'publish':

26 os.system('python setup.py sdist upload')

27 sys.exit()

28

StandaloneMediaClock.java (https://github.com/pwrtelegram/pwrtelegram-app.git) Java · 76 lines

16 package xyz.pwrtelegram.messenger.exoplayer;

17

18 import android.os.SystemClock;

19

20 /**

record.py (http://sd-xbmc.googlecode.com/svn/trunk/) Python · 104 lines

69 if os.path.isfile(rtmp) and os.access(rtmp, os.X_OK) and os.path.isdir(dstpath):

70 file = os.path.join(str(dstpath), name + ".flv")

71 os.system(str(rtmp) + " -B " + str(rectime) + " -r " + str(opts['rtmp']) + " -s " + str(opts['ticket']) + " -p token -v live -o " + file)

72 os.remove(sys.argv[1])

73