text stringlengths 14 100k | source stringclasses 1
value | repo stringclasses 810
values | language stringclasses 13
values |
|---|---|---|---|
<|fim_suffix|>re unique id
FileHelpers.delete(new File(destination, HiddenPrefs.SHARED_PREFERENCES_NAME + ".xml"));
}
if (mFilesDir.isDirectory() && !FileHelpers.isEmpty(mFilesDir)) {
File destination = new File(target, mFilesDir.getName());
FileHelpers.copy(mFilesDi... | fim | yuliskov/SmartTube | java |
<|fim_suffix|>ons, @NonNull int[] grantResults) {
if (requestCode == PermissionHelpers.REQUEST_EXTERNAL_STORAGE) {
if (grantResults.length >= 1 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {
if (mPendingHandler != null) {
mPendingHandler.run();
... | fim | yuliskov/SmartTube | java |
package com.liskovsoft.smartyoutubetv2.common.misc;
import com.liskovsoft.smartyoutubetv2.common.app.models.data.Video;
import com.liskovsoft.smartyoutubetv2.common.app.models.data.VideoGroup;
public interface BrowseProcessor {
interface OnItemReady {
void onItemReady(Video video);
}
void process(... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>package com.liskovsoft.smartyoutubetv2.common.misc;
import android.content.Context;
import com.liskovsoft.smartyoutubetv2.common.app.models.data.VideoGroup;
import java.util.ArrayList;
public class BrowseProcessorManager implements BrowseProcessor {
private final ArrayList<BrowseProcessor> mProce<... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>package com.liskovsoft.smartyoutubetv2.common.misc;
import androidx.annotation.NonNull;
import com.liskovsoft.smartyoutubetv2.common.utils.<|fim_suffix|>BUFFERING_WINDOW_MS = 60_000;
private static final long BUFFERING_DURATION_MS = 20_000;
private long mBeginTimeMs;
private long mStart... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>package com.liskovsoft.smartyoutubetv2.common.misc;
import android.content.Context;
import android.os.Bundle;
import com.liskovsoft.smartyoutubetv2.common.app.models.data.Video;
import com.liskovsoft.smartyoutubetv2.common.app.models.playback.service.VideoStateService;
import com.liskovsoft.smartyoutube... | fim | yuliskov/SmartTube | java |
<|fim_suffix|>
video.deArrowTitle = deArrowData.getTitle();
}
if (mIsReplaceThumbnailsEnabled) {
video.altCardImageUrl = deArrowData.getThumbnailUrl();
}
mOnItemReady.onItemReady(video);
... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>package com.liskovsoft.smartyoutubetv2.common.misc;
import android.annotation.SuppressLint;
import android.content.Context;
import android.net.Uri;
import android.os.Build;
import android.os.Handler;
import com.liskovsoft.googleapi.service.DriveService;
import com.liskovsoft.googleapi.oauth2.impl.Google... | fim | yuliskov/SmartTube | java |
<|fim_suffix|>equest-from-workmanager
workManager.enqueueUniquePeriodicWork(
WORK_NAME,
ExistingPeriodicWorkPolicy.UPDATE, // fix duplicates (when old worker is running)
new PeriodicWorkRequest.Builder(
GDriveBackupWorke... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>package com.liskovsoft.smartyoutubetv2.common.misc;
import android.content.Context;
import android.view.KeyEvent;
import com.liskovsoft.smartyoutubetv2.common.app.presenters.PlaybackPresenter;
import com.liskovsoft.smartyoutubetv2.common.app.presenters.SearchPresenter;
import com.liskovsoft.smartyoutubet... | fim | yuliskov/SmartTube | java |
<|fim_suffix|>g();
protected Map<Integer, Integer> getKeyMapping() {
return mKeyMapping;
}
protected Map<Integer, Runnable> getActionMapping() {
return mActionMapping;
}
public void apply() {
initKeyMapping();
initActionMapping();
}
}
<|fim_prefix|>package com.... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>package com.liskovsoft.smartyoutubetv2.common.misc;
import android.content.Context;
import android.os.Build.VERSION;
import androidx.annotation.NonNull;
import androidx.work.ExistingPeriodicWorkPolicy;
import androidx.work.PeriodicWorkRequest;
import androidx.work.WorkManager;
import androidx.work.Worke... | fim | yuliskov/SmartTube | java |
<|fim_suffix|> MessageHelpers.showMessage(context, "Unknown type of channel");
}
}, error -> LoadingManager.showLoading(context, false), () -> LoadingManager.showLoading(context, false));
}
private void setHistoryBroken(boolean isBroken) {
VideoStateService stateService = VideoState... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>package com.liskovsoft.smartyoutubetv2.common.misc;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.res.Configuration;
import android.os.Build.VERSION;
import android.os.Bundle;
import an... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>package com.liskovsoft.smartyoutubetv2.common.misc;
import android.content.Context;
import android.view.KeyEvent;
import com.liskovsoft.sharedutils.helpers.MessageHelpers;
import com.liskovsoft.smartyoutubetv2.common.R;
import com.liskovsoft.smartyoutubetv2.common.app.models.playback.manager.PlayerUI;
im... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>package com.liskovsoft.smartyoutubetv2.common.misc;
import android.annotation.SuppressLint;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com.liskovsoft.sharedutils.mylogger.Log;
import com.liskovsoft.smartyoutubetv2.common.utils.Utils;
... | fim | yuliskov/SmartTube | java |
<|fim_suffix|> String.format("%s: %s", remoteControl, serviceStarted),
ViewManager.instance(getApplicationContext()).getRootActivity());
}
}
<|fim_prefix|>package com.liskovsoft.smartyoutubetv2.common.misc;
import android.app.Notification;
import android.app.Service;
import android.content.Inte... | fim | yuliskov/SmartTube | java |
<|fim_suffix|>nstance(getApplicationContext()); // init RemoteControlListener
return Result.success();
}
}
<|fim_prefix|>package com.liskovsoft.smartyoutubetv2.common.misc;
import android.content.Context;
import androidx.annotation.NonNull;
import androidx.work.Worker;
import androidx.work.WorkerParameter... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>package com.liskovsoft.smartyoutubetv2.common.misc;
import android.app.Activity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.liskovsoft.sharedutils.helpers.Helpers;
import com.liskovsoft.sharedutils.mylogger.Log;
import com.liskovsoft.smartyout... | fim | yuliskov/SmartTube | java |
<|fim_suffix|>{
editor.putBoolean(key, (Boolean) value);
} else if (value instanceof Float) {
editor.putFloat(key, (Float) value);
} else if (value instanceof Long) {
editor.putLong(key, (Long) value);
} else {
... | fim | yuliskov/SmartTube | java |
<|fim_suffix|>or -> Log.e(TAG, "loadMetadata error: %s", error.getMessage())
);
}
private void processMetadata(Pair<Video, MediaItemFormatInfo> metadata) {
Video origin = metadata.first;
MediaItemFormatInfo formatInfo = metadata.second;
if (formatInfo.containsMedia() && ... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>package com.liskovsoft.smartyoutubetv2.common.misc;
import com.liskovsoft.sharedutils.mylogger.Log;
import com.liskovsoft.smartyoutubetv2.common.utils.Utils;
import com.liskovsoft.sharedutils.misc.WeakHashSet;
public class TickleManager {
private static final String TAG = TickleManager.class.getSimp... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>package com.liskovsoft.smartyoutubetv2.common.misc;
import android.content.Context;
import android.util.Pair;
import com.liskovsoft.mediaserviceinterfaces.MediaItemService;
import com.liskovsoft.mediaserviceinterfaces.ServiceManager;
import com.liskovsoft.sharedutils.helpers.Helpers;
import com.liskovso... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>package com.liskovsoft.smartyoutubetv2.common.misc;
import com.liskovsoft.sharedutils.helpers.Helpers;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.ut... | fim | yuliskov/SmartTube | java |
<|fim_suffix|>);
result = true;
break;
}
zis.closeEntry();
}
zis.close();
} catch (Exception e) { e.printStackTrace(); }
return result;
}
}
<|fim_prefix|>package com.liskovsoft.smartyoutubetv2.common.mis... | fim | yuliskov/SmartTube | java |
<|fim_suffix|>e;
private final Context mContext;
private final AppPrefs mAppPrefs;
private boolean mIsSelectAccountOnBootEnabled;
private boolean mIsPasswordAccepted;
private final Map<String, PasswordItem> mPasswords = new HashMap<>();
private static class PasswordItem {
public String ... | fim | yuliskov/SmartTube | java |
<|fim_suffix|> if (!TextUtils.isEmpty(profileName) && isMultiProfilesEnabled) {
key = profileName + "_" + key;
}
return key;
}
@Override
protected String getPrefsDir() {
return PREFS_DIR;
}
}
<|fim_prefix|>package com.liskovsoft.smartyoutubetv2.common.prefs... | fim | yuliskov/SmartTube | java |
<|fim_suffix|>ng channelId, String channelName) {
if (Helpers.allNulls(channelId, channelName) || mChannels.isEmpty()) {
return;
}
mChannels.remove(new Channel(channelId, channelName));
persistState();
notifyListeners();
}
/**
* Check if a channel is b... | fim | yuliskov/SmartTube | java |
<|fim_suffix|> if (sInstance == null) {
sInstance = new DeArrowData(context);
}
return sInstance;
}
public boolean isDeArrowEnabled() {
return getBoolean(0);
}
public void setDeArrowEnabled(boolean enable) {
setBoolean(0, enable);
}
public bo... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>package com.liskovsoft.smartyoutubetv2.common.prefs;
import android.content.Context;
import com.liskovsoft.sharedutils.helpers.Helpers;
import com.liskovsoft.sharedutils.prefs.GlobalPreferences;
import com.liskovsoft.smartyoutubetv2.common.app.models.data.Video;
import com.liskovsoft.smartyoutubetv2.com... | fim | yuliskov/SmartTube | java |
<|fim_suffix|> return getString(UNIQUE_ID, null);
}
public void setUniqueId(String id) {
putString(UNIQUE_ID, id);
}
}
<|fim_prefix|>package com.liskovsoft.smartyoutubetv2.common.prefs;
import android.annotation.SuppressLint;
import android.content.Context;
import com.liskovsoft.sharedutil... | fim | yuliskov/SmartTube | java |
<|fim_suffix|>ed;
persistState();
}
public boolean isUiTweakEnabled(long uiTweaks) {
return (mUiTweaks & uiTweaks) == uiTweaks;
}
public void setUiTweakEnabled(long uiTweaks) {
mUiTweaks |= uiTweaks;
persistState();
}
public void setUiTweakDisabled(long uiTweak... | fim | yuliskov/SmartTube | java |
package com.liskovsoft.smartyoutubetv2.common.prefs;
import android.content.Context;
import com.liskovsoft.smartyoutubetv2.common.prefs.common.DataSaverBase;
public class NetworkData extends DataSaverBase {
private static NetworkData sInstance;
private NetworkData(Context context) {
super(context, t... | fim | yuliskov/SmartTube | java |
<|fim_suffix|>(split, 0, OK_ONLY_UI);
mUiHideTimeoutSec = Helpers.parseInt(split, 1, 3);
// mIsAbsoluteDateEnabled
mSeekPreviewMode = Helpers.parseInt(split, 3, SEEK_PREVIEW_SINGLE);
mIsSeekConfirmPauseEnabled = Helpers.parseBoolean(split, 4, false);
mIsClockEnabled = Helpers.par... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>package com.liskovsoft.smartyoutubetv2.common.prefs;
import android.annotation.SuppressLint;
import android.content.Context;
import com.liskovsoft.sharedutils.helpers.Helpers;
import com.liskovsoft.sharedutils.prefs.GlobalPreferences;
import com.liskovsoft.smartyoutubetv2.common.prefs.AppPrefs.ProfileCh... | fim | yuliskov/SmartTube | java |
<|fim_suffix|>d, mIsFinishOnDisconnectEnabled, mIsConnectMessagesEnabled,
mIsRemoteHistoryDisabled, mLastVideo, mIsConnectedBefore
));
onDataChange();
}
}
<|fim_prefix|>package com.liskovsoft.smartyoutubetv2.common.prefs;
import android.annotation.SuppressLint;
import android.conte... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>package com.liskovsoft.smartyoutubetv2.common.prefs;
import android.annotation.SuppressLint;
import android.content.Context;
import com.lisk<|fim_suffix|>CH_RECOGNIZER_GOTEV = 2;
private static final String SEARCH_DATA = "search_data";
@SuppressLint("StaticFieldLeak")
private static SearchDat... | fim | yuliskov/SmartTube | java |
<|fim_suffix|>ERSION.SDK_INT > 19); // Android 4 may have memory problems
// categories: index 2
// don't skip segment
// colorMarkers: index 4
String actions = Helpers.parseStr(split, 6);
String colorCategories = Helpers.parseStr(split, 7);
mIsDontSkipSegmentAgainEnabled... | fim | yuliskov/SmartTube | java |
<|fim_suffix|>interface OnDataChange {
void onDataChange();
}
private final WeakHashSet<OnDataChange> mOnChangeList = new WeakHashSet<>();
public final void setOnChange(OnDataChange callback) {
mOnChangeList.add(callback);
}
public final void removeOnChange(OnDataChange callback) ... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>package com.liskovsoft.smartyoutubetv2.common.prefs.common;
import android.content.Context;
import com.liskovsoft.sharedutils.helpers.Helpers;
import com.liskovsoft.smartyoutubetv2.common.prefs.AppPrefs;
import com.liskovsoft.smartyoutubetv2.common.utils.Utils;
import java.util.ArrayList;
import java.u... | fim | yuliskov/SmartTube | java |
package com.liskovsoft.smartyoutubetv2.common.proxy;
import androidx.annotation.RequiresApi;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
public class PasswdInetSocketAddress extends SocketAddress {
private final String mUsername;
private final String mPassword;
private final InetSoc... | fim | yuliskov/SmartTube | java |
package com.liskovsoft.smartyoutubetv2.common.proxy;
import java.net.URI;
import java.net.URISyntaxException;
/**
* http_proxy=http://USERNAME:PASSWORD@PROXYIP:PROXYPORT
*/
public class PasswdURI {
private final URI mURI;
public PasswdURI(String uriString) throws URISyntaxException {
mURI = new URI... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>/*
* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* publishe... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>package com.liskovsoft.smartyoutubetv2.common.proxy;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent;
import android.net.ProxyInfo;
import android.os.Build;
import android.os.Parcelable;
import android.util.ArrayMap;
import androidx.annotation.Require... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>package com.liskovsoft.smartyoutubetv2.common.proxy;
import android.content.Context;
import android.os.Build;
import android.os.Handler;
import android.os.Looper;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.EditText;
import android.widget.RadioGroup;
import android... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>package com.liskovsoft.smartyoutubetv2.common.utils;
import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.Context;
import android.content.pm.PackageManager;
import android.os.Build;
import android.text.TextUtils;
import androidx... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>package com.liskovsoft.smartyoutubetv2.common.utils;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.drawable.Drawable;
import android.text.style.ReplacementSpan;
import androidx.annotation.NonNull;
public class CenteredImageSpan extends ReplacementSpan {
priv... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>package com.liskovsoft.smartyoutubetv2.common.utils;
import com.liskovsoft.sharedutils.helpers.Helpers;
import com.liskovsoft.smartyoutubetv2.common.app.models.data.Video;
import java.util.regex.Pattern;
public class ClickbaitRemover {
public static final int THUMB_QUALITY_DEFAULT = 0;
public s... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>package com.liskovsoft.smartyoutubet<|fim_suffix|>null || (index >= 0 && indexOf(item) == index)) {
return;
} else if (contains(item)) {
remove(item);
}
if (index >= 0 && index < size()) {
super.add(index, item);
} else {
sup... | fim | yuliskov/SmartTube | java |
<|fim_suffix|>st<>(iconUrls.size());
AtomicInteger counter = new AtomicInteger(0);
// pre-fill to keep ordering
for (int i = 0; i < iconUrls.size(); i++) {
result.add(null);
}
for (int i = 0; i < iconUrls.size(); i++) {
final int index = i;
S... | fim | yuliskov/SmartTube | java |
<|fim_suffix|> }
@Override
public String[] getDefaultCipherSuites() {
return internalSSLSocketFactory.getDefaultCipherSuites();
}
@Override
public String[] getSupportedCipherSuites() {
return internalSSLSocketFactory.getSupportedCipherSuites();
... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>package com.liskovsoft.smartyoutubetv2.common.utils;
import android.content.Intent;
import android.net.Uri;
import com.liskovsoft.sharedutils.helpers.GlobalConstants;
import com.liskovsoft.sharedutils.helpers.Helpers;
import com.liskovsoft.sharedutils.querystringparser.UrlQueryString;
import com.liskovs... | fim | yuliskov/SmartTube | java |
<|fim_suffix|>adsView uploadsView = ChannelUploadsPresenter.instance(context).getView();
if (uploadsView != null) {
uploadsView.showProgressBar(show);
}
} else if (topView == PlaybackView.class) {
PlaybackView playbackView = PlaybackPresenter.instance(context)... | fim | yuliskov/SmartTube | java |
package com.liskovsoft.smartyoutubetv2.common.utils;
import android.content.Context;
import android.text.InputType;
import android.view.LayoutInflater;
import android.view.View;
import android.view.inputmethod.EditorInfo;
import android.widget.EditText;
import androidx.appcompat.app.AlertDialog;
import com.liskovsoft.... | fim | yuliskov/SmartTube | java |
<|fim_suffix|>nt.setPackage(PACKAGE);
intent.setAction(PACKAGE + ".START_AFR");
intent.putExtra("fps", videoFormat.getFrameRate());
intent.putExtra("height", videoFormat.getHeight());
context.sendBroadcast(intent);
}
}
}<|fim_prefix|>package com.liskovsoft.sma... | fim | yuliskov/SmartTube | java |
<|fim_suffix|>.0.3683.18",
"72.0.3626.90",
"74.0.3692.1",
"74.0.3692.0",
"73.0.3683.17",
"72.0.3626.89",
"74.0.3687.3",
"74.0.3691.1",
"74.0.3691.0",
"73.0.3683.16",
... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>package com.liskovsoft.smartyoutubetv2.common.utils;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.ActivityManager;
import android.app.ActivityManager.RunningServiceInfo;
import android.app.AlarmManager;
import android.app.Instrumentation;
import android.app.Keyg... | fim | yuliskov/SmartTube | java |
<|fim_suffix|> * by {@link DoubleTapPlayerView#getDoubleTapDelay()}
*
* @param posX x tap position on the root view
* @param posY y tap position on the root view
*/
default void onDoubleTapProgressDown(float posX, float posY) { }
/**
* Called for each ongoing tap (also single tap) (... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... | fim | yuliskov/SmartTube | java |
<|fim_suffix|> e) {
Throwable cause = e.getCause();
while (cause != null) {
if (cause instanceof DynamiteModule.LoadingException) {
setContentView(R.layout.cast_context_error);
return;
}
cause = cause.getCause();
}
// Unknown error. We propagate it.
... | fim | yuliskov/SmartTube | java |
<|fim_suffix|>he License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License ... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>/*
* Copyright (C) 2017 The Android Open <|fim_suffix|> public int[] getSupportedTypes() {
// IMA does not support Smooth Streaming ads.
return new int[] {C.TYPE_DASH, C.TYPE_HLS, C.TYPE_OTHER};
}
// Internal methods.
private MediaSource buildMediaSource(Uri uri) {
@ContentType int ty... | fim | yuliskov/SmartTube | java |
<|fim_suffix|>ager);
}
}
private void upgradeActionFile(
String fileName, DefaultDownloadIndex downloadIndex, boolean addNewDownloadsAsCompleted) {
try {
ActionFileUpgradeUtil.upgradeAndDelete(
new File(getDownloadDirectory(), fileName),
/* downloadIdProvider= */ null,
... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, V<|fim_suffix|> R.drawable.ic_download_done,
/* contentIntent= */ null,
Util.fromUtf8Bytes(download.request.data));
} else {
return;
}
NotificationUtil.setNo... | fim | yuliskov/SmartTube | java |
<|fim_suffix|>eFactory, renderersFactory);
case C.TYPE_SS:
return DownloadHelper.forSmoothStreaming(uri, dataSourceFactory, renderersFactory);
case C.TYPE_HLS:
return DownloadHelper.forHls(uri, dataSourceFactory, renderersFactory);
case C.TYPE_OTHER:
return DownloadHelper.forPr... | fim | yuliskov/SmartTube | java |
<|fim_suffix|>ORTED_TRACKS) {
showToast(R.string.error_unsupported_audio);
}
}
lastSeenTrackGroupArray = trackGroups;
}
}
}
private class PlayerErrorMessageProvider implements ErrorMessageProvider<ExoPlaybackException> {
@Override
public Pair<Integer, String... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>/*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>/*
* Copyright (C) 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | fim | yuliskov/SmartTube | java |
/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | fim | yuliskov/SmartTube | java |
<|fim_suffix|>lse {
index++;
}
}
}
}
<|fim_prefix|>/*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... | fim | yuliskov/SmartTube | java |
<|fim_suffix|>st.CastMediaControlIntent;
import com.google.android.gms.cast.framework.CastOptions;
import com.google.android.gms.cast.framework.OptionsProvider;
import com.google.android.gms.cast.framework.SessionProvider;
import java.util.Collections;
import java.util.List;
/**
* A convenience {@link OptionsProvider... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>/*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | fim | yuliskov/SmartTube | java |
<|fim_suffix|>throws IndexOutOfBoundsException If {@code from < 0 || exclusiveTo > getSize() || from >
* exclusiveTo}.
*/
void removeRange(int from, int exclusiveTo);
/** Removes all items in the queue. */
void clear();
}
<|fim_prefix|>/*
* Copyright (C) 2018 The Android Open Source Project
*
* Lice... | fim | yuliskov/SmartTube | java |
<|fim_suffix|>id.exoplayer2.ext.cast;
/** Listener of changes in the cast session availability. */
public interface SessionAvailabilityListener {
/** Called when a cast session becomes available to the player. */
void onCastSessionAvailable();
/** Called when the cast session becomes unavailable. */
void onC... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>/*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "<|fim_suffix|>plied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.android.exoplayer2.ext.cast;
import andr... | fim | yuliskov/SmartTube | java |
<|fim_suffix|>2 = builder.setUuid(new UUID(0, 1)).build();
assertThat(item1).isEqualTo(item2);
}
@Test
public void buildMediaItem_assertDefaultValues() {
assertDefaultValues(new MediaItem.Builder().build());
}
@Test
public void buildAndClear_assertDefaultValues() {
MediaItem.Builder builder = ... | fim | yuliskov/SmartTube | java |
<|fim_suffix|>data = data;
}
@Override
public long getLength() {
return data.length;
}
@Override
public void read(UploadDataSink uploadDataSink, ByteBuffer byteBuffer) throws IOException {
int readLength = Math.min(byteBuffer.remaining(), data.length - position);
byteBuffer.put(data, position,... | fim | yuliskov/SmartTube | java |
/*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | fim | yuliskov/SmartTube | java |
/*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>/*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>/*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | fim | yuliskov/SmartTube | java |
/*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | fim | yuliskov/SmartTube | java |
<|fim_suffix|>nitializationData.get(0);
int alacAtomLength = 12 + magicCookie.length;
ByteBuffer alacAtom = ByteBuffer.allocate(alacAtomLength);
alacAtom.putInt(alacAtomLength);
alacAtom.putInt(0x616c6163); // type=alac
alacAtom.putInt(0); // version=0, flags=0
alacAtom.put(magicCookie, /* offse... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>/*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a co<|fim_suffix|>s or implied.
* See the License for the specific language governing permis... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>/*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>/*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | fim | yuliskov/SmartTube | cpp |
<|fim_suffix|>s.assertExtensionRendererCreated(
FfmpegAudioRenderer.class, C.TRACK_TYPE_AUDIO);
}
}
<|fim_prefix|>/*
* Copyright (C) 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
... | fim | yuliskov/SmartTube | java |
<|fim_suffix|>
}
public void testSetSeekTargetUs_returnsSeekPending()
throws IOException, FlacDecoderException, InterruptedException {
byte[] data =
TestUtil.getByteArray(ApplicationProvider.getApplicationContext(), NOSEEKTABLE_FLAC);
FakeExtractorInput input = new FakeExtractorInput.Builder... | fim | yuliskov/SmartTube | java |
<|fim_suffix|>ATION_US);
assertThat(seekMap.isSeekable()).isTrue();
}
public void testHandlePendingSeek_handlesSeekingToPositionInFile_extractsCorrectFrame()
throws IOException, InterruptedException {
FlacExtractor extractor = new FlacExtractor();
FakeExtractorOutput extractorOutput = new FakeEx... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>/*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | fim | yuliskov/SmartTube | java |
<|fim_suffix|>d under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.android.exoplayer2.ext.flac;
import static or... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>/*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>/*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>/*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License a<|fim_suffix|>decoder error occurs.
*/
public final class FlacDecoder... | fim | yuliskov/SmartTube | java |
<|fim_prefix|>/*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | fim | yuliskov/SmartTube | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.