This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<resources> | |
<dimen name="text_xsmall">8sp</dimen> | |
<dimen name="text_smaller">10sp</dimen> | |
<dimen name="text_small">12sp</dimen> | |
<dimen name="text_medium">14sp</dimen> | |
<dimen name="text_large">16sp</dimen> | |
<dimen name="text_larger">18sp</dimen> | |
<dimen name="text_xlarge">20sp</dimen> | |
<dimen name="text_xxlarge">22sp</dimen> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.volokh.danylo.video_player_manager; | |
import com.volokh.danylo.video_player_manager.player_messages.Message; | |
import com.volokh.danylo.video_player_manager.utils.Logger; | |
import java.util.List; | |
import java.util.Queue; | |
import java.util.concurrent.ConcurrentLinkedQueue; | |
import java.util.concurrent.Executor; | |
import java.util.concurrent.Executors; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void loadData(final IDataWorkerCallback dataWorkerCallback) { | |
String remoteListId = PrefProvider.getInstance().getGroupIdListFirebase(); | |
Query lotsIdQuery = refDb.child(BATTLERS_GROUP_ITEM).child(remoteListId); | |
lotsIdQuery.addListenerForSingleValueEvent(new ValueEventListener() { | |
@Override | |
public void onDataChange(DataSnapshot dataSnapshot) { | |
List<FighterGroupFB> fighterGroupFBs = new ArrayList<>(); | |
for (DataSnapshot singleSnapshot : dataSnapshot.getChildren())//get node with Product_ID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*INIT TCP and UDP SERVERS*/ | |
@Override | |
public void startReceiving() { | |
if (mServerState != SERVER_STARTED) { | |
mServerState = SERVER_STARTED; | |
//TCP Service | |
Intent tcpServiceIntent = new Intent(mContext.getApplicationContext(), TcpServerService.class); | |
mContext.startService(tcpServiceIntent); | |
mContext.bindService(tcpServiceIntent, mStartTcpServerConnection, Context.BIND_AUTO_CREATE); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class FighterGroupFB { | |
/** | |
* Firebase fields | |
*/ | |
@PropertyName("id") | |
Long id; | |
@PropertyName("irebaseId") | |
String firebaseId; | |
@PropertyName("mixId") | |
Long mixId; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private inner class MuAudioWorkerThread internal constructor(name: String) : HandlerThread(name) { | |
private var mHandler = Handler() | |
fun prepareHandler() { | |
mHandler = Handler(looper) | |
} | |
fun postTask(task: Runnable) { | |
mHandler.post(task) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SimpleDateFormat("dd MMM yyyy", Locale.getDefault()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void write(){ | |
fos = new FileOutputStream(file); | |
int length; | |
byte[] buf = new byte[8192]; | |
while ((length = dis.read(buf, 0, buf.length)) != -1) { | |
fos.write(buf, 0, length); | |
sumProgress = sumProgress + length; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Expose | |
@SerializedName("senderId") | |
var id: String? = PrefProvider.userId | |
@Expose | |
@SerializedName("senderName") | |
var name: String? = PrefProvider.userName | |
@Expose | |
@SerializedName("senderType") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open class TourInfoRequest : SystemContent() { | |
@Expose | |
@SerializedName("id") | |
var id: String? = "" | |
@Expose | |
@SerializedName("name") | |
var name: String? = "" |