text
stringlengths
14
100k
source
stringclasses
1 value
repo
stringclasses
810 values
language
stringclasses
13 values
/* * 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_suffix|>et.getStartTime(i)).isEqualTo(chunkDuration * i); } for (int s = 0; s < TEST_FORMATS.length; s++) { FakeData data = dataSet.getData(dataSet.getUri(s)); assertThat(data.getSegments().size()).isEqualTo(dataSet.getChunkCount()); for (int i = 0; i < data.getSegments().size(); i++) { ...
fim
yuliskov/SmartTube
java
<|fim_suffix|>rivate static void assertSleepingStates(boolean[] states, SleeperThread[] sleeperThreads) { for (int i = 0; i < sleeperThreads.length; i++) { assertThat(sleeperThreads[i].isSleeping()).isEqualTo(states[i]); } } private static void waitForHandler(HandlerWrapper handler) { final Condi...
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 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
<|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) 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) 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) 20<|fim_suffix|>ayer2.Renderer; import com.google.android.exoplayer2.util.MediaClock; /** Fake abstract {@link Renderer} which is also a {@link MediaClock}. */ public abstract class FakeMediaClockRenderer extends FakeRenderer implements MediaClock { public FakeMediaClockRenderer(Fo...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the<|fim_suffix|>oogle.android.exoplayer2.testutil; import com.google.android.exoplayer2.C; import com.google.android.exoplayer2.source.ShuffleOrder; /** * Fake {@link ShuffleOrder} which retu...
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_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) 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_suffix|>00, (byte) 0x00, (byte) 0x04, (byte) 0x98, (byte) 0x50, (byte) 0x06, (byte) 0x0a, (byte) 0x0d, (byte) 0x59, (byte) 0x09, (byte) 0x00, (byte) 0xa4, (byte) 0x02, (byte) 0x00, (byte) 0x00, (byte) 0x10, (byte) 0x42, (byte) 0x08, (byte) 0x21, (byte) 0x84, (byte) 0x10, (byte) 0x42, (byte) 0x...
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) 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 r...
fim
yuliskov/SmartTube
java
<|fim_suffix|>ex(int, int, boolean)}. */ public static void assertPeriodCounts(Timeline timeline, int... expectedPeriodCounts) { int windowCount = timeline.getWindowCount(); assertThat(windowCount).isEqualTo(expectedPeriodCounts.length); int[] accumulatedPeriodCounts = new int[windowCount + 1]; acc...
fim
yuliskov/SmartTube
java
<|fim_suffix|>ity != null) { activity = mActivity; } else if (mFragment != null) { activity = mFragment.getActivity(); } else if (mSupportFragment != null) { activity = mSupportFragment.getActivity(); } return activity; } private CompositeFil...
fim
yuliskov/SmartTube
java
<|fim_prefix|>package arte.programar.materialfile.filter; import java.io.File; import java.util.List; public class CompositeFilter implements FileFilter { private<|fim_suffix|>ters; public CompositeFilter(List<FileFilter> filters) { mFilters = filters; } @Override public boolean accept(...
fim
yuliskov/SmartTube
java
<|fim_suffix|>nds Serializable { boolean accept(File pathname); } <|fim_prefix|>package arte.programar.materialfile.filter; import java.io<|fim_middle|>.File; import java.io.Serializable; public interface FileFilter exte<|endoftext|>
fim
yuliskov/SmartTube
java
<|fim_suffix|>r implements FileFilter { @Override public boolean accept(File f) { return !f.isHidden(); } } <|fim_prefix|>package arte.programar.materialfile.filter; import java.io.File; public class <|fim_middle|>HiddenFilte<|endoftext|>
fim
yuliskov/SmartTube
java
package arte.programar.materialfile.filter; import java.io.File; import java.util.regex.Pattern; public class PatternFilter implements FileFilter { private final Pattern mPattern; private final boolean mDirectoriesFilter; public PatternFilter(Pattern pattern, boolean directoriesFilter) { mPatter...
fim
yuliskov/SmartTube
java
<|fim_prefix|>package arte.programar.materialfile.ui; import android.view.LayoutInflater; import android.view.View; impor<|fim_suffix|> private final TextView mFileSubtitle; DirectoryViewHolder(View itemView, final OnItemClickListener clickListener) { super(itemView); itemView.setO...
fim
yuliskov/SmartTube
java
<|fim_suffix|><|fim_prefix|>package arte.programar.materialfile.ui; import android.content.Context; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.fragment.a...
fim
yuliskov/SmartTube
java
<|fim_suffix|>CLICK_DELAY); } private void handleFileClicked(final File clickedFile) { if (isFinishing()) { return; } if (clickedFile.isDirectory()) { mCurrent = clickedFile; // If the user wanna go to the emulated directory, he will be taken to the ...
fim
yuliskov/SmartTube
java
package arte.programar.materialfile.ui; import android.os.SystemClock; import android.view.View; interface OnItemClickListener { void onItemClick(View view, int position); abstract class ThrottleClickListener implements OnItemClickListener { private static final long MIN_CLICK_INTERVAL = 600; ...
fim
yuliskov/SmartTube
java
<|fim_suffix|> long MIN_CLICK_INTERVAL = 600; private long mLastClickTime; abstract void onItemClickThrottled(View view, int position); @Override public void onItemClick(View view, int position) { final long currentClickTime = SystemClock.uptimeMillis(); final long elapsedTime = curre...
fim
yuliskov/SmartTube
java
<|fim_suffix|>ow directories return 1; } // Sort the directories alphabetically return f1.getName().compareToIgnoreCase(f2.getName()); } } <|fim_prefix|>package arte.programar.materialfile.utils; import java.io.File; import java.util.C<|fim_middle|>omparator; public class FileC...
fim
yuliskov/SmartTube
java
package arte.programar.materialfile.utils; import android.webkit.MimeTypeMap; import java.io.File; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.HashMap; import java.util.Map; import arte.programar.materialfile.R; public class FileTypeUtils { private static final Map...
fim
yuliskov/SmartTube
java
<|fim_prefix|>package arte.programar.materialfile.utils; import android.content.Context; import android.util.Log; import androidx.annotation.Nullable; import androidx.core.content.ContextCompat; import java.io.File; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.L...
fim
yuliskov/SmartTube
java
<|fim_suffix|>); } super.setAdapter(adapter); if (adapter != null) { adapter.registerAdapterDataObserver(observer); } } public void setEmptyView(@Nullable View mEmptyView) { this.mEmptyView = mEmptyView; checkIfEmpty(); } } <|fim_prefix|>package a...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright 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 requi...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright 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 requi...
fim
yuliskov/SmartTube
java
<|fim_suffix|>de public void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); // This assumes that onCreate() is being called on the main thread mHandler = new Handler(); mShowsDialog = mContainerId == 0; if (savedInstanceState != null) { ...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright 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 requi...
fim
yuliskov/SmartTube
java
<|fim_suffix|> androidx.fragment.app; import android.content.Context; import android.os.Bundle; import android.view.View; import androidx.annotation.IdRes; import androidx.annotation.NonNull; import androidx.annotation.Nullable; /** * Callbacks to a {@link Fragment}'s container. */ public abstract class FragmentC...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright 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 requi...
fim
yuliskov/SmartTube
java
/* * Copyright 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 required by applica...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright 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 requi...
fim
yuliskov/SmartTube
java
<|fim_suffix|>tart of postponed Transactions. * @return Returns true if there was something popped, else false. */ public abstract boolean popBackStackImmediate(int id, int flags); /** * Return the number of entries currently in the back stack. */ public abstract int getBackStackEntryCo...
fim
yuliskov/SmartTube
java
<|fim_suffix|>es; } @SuppressWarnings("BooleanMethodIsAlwaysInverted") boolean isRetaining(Fragment f) { if (mFragments == null) { return false; } return mFragments.contains(f); } /** * @return the retained instance fragments returned by a FragmentManager ...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright 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 requi...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright 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 requi...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright 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 requi...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright 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 requi...
fim
yuliskov/SmartTube
java
<|fim_suffix|>lent of calling * {@link #FragmentStatePagerAdapter(FragmentManager, int)} and passing in * {@link #BEHAVIOR_SET_USER_VISIBLE_HINT}. * * <p>Fragments will have {@link Fragment#setUserVisibleHint(boolean)} called whenever the * current Fragment changes.</p> * * @param fm ...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright 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 requi...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright 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 requi...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright 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 requi...
fim
yuliskov/SmartTube
java
<|fim_suffix|> enterTransition; } if (sharedElementTransition != null) { TransitionSet together = new TransitionSet(); if (staggered != null) { together.addTransition(staggered); } together.addTransition(sharedElementTransition); ...
fim
yuliskov/SmartTube
java
<|fim_suffix|>ex; i++) { if (views.get(i) == view) { return true; } } return false; } /** * Simple utility to detect if a list is null or has no elements. */ protected static boolean isNullOrEmpty(List list) { return list == null || ...
fim
yuliskov/SmartTube
java
<|fim_suffix|> the underlying Lifecycle if it hasn't already been created. */ void initialize() { if (mLifecycleRegistry == null) { mLifecycleRegistry = new LifecycleRegistry(this); } } /** * @return True if the Lifecycle has been initialized. */ boolean isIni...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright 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 requi...
fim
yuliskov/SmartTube
java
<|fim_suffix|>n { public SuperNotCalledException(String msg) { super(msg); } } <|fim_prefix|>/* * Copyright 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 ...
fim
yuliskov/SmartTube
java
<|fim_suffix|>) * mLogScale; } } <|fim_prefix|>/* * Copyright (C) 2014 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/licens...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2014 The Android Open Source Pro<|fim_suffix|>icable 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 for the specific language governin...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2014 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 ...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2014 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 ...
fim
yuliskov/SmartTube
java
<|fim_prefix|>// CHECKSTYLE:OFF Generated code /* This file is auto-generated from BaseSupportFragment.java. DO NOT MODIFY. */ /* * Copyright (C) 2014 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 Licen...
fim
yuliskov/SmartTube
java
<|fim_prefix|>// CHECKSTYLE:OFF Generated code /* This file is auto-generated from BaseRowSupportFragment.java. DO NOT MODIFY. */ /* * Copyright (C) 2014 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 Li...
fim
yuliskov/SmartTube
java
<|fim_suffix|> setAdapterAndSelection(); mVerticalGridView.setOnChildViewHolderSelectedListener(mRowSelectedListener); } /** * This class waits for the adapter to be updated before setting the selected * row. */ private class LateSelectionObserver extends RecyclerView.Adapter...
fim
yuliskov/SmartTube
java
/* * Copyright (C) 2014 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 applicable ...
fim
yuliskov/SmartTube
java
<|fim_suffix|>omponents visibility and shows title. * @param flags Flags representing the visibility of components inside title view. * @see TitleViewAdapter#SEARCH_VIEW_VISIBLE * @see TitleViewAdapter#BRANDING_VIEW_VISIBLE * @see TitleViewAdapter#FULL_VIEW_VISIBLE * @see TitleViewAdapter#updat...
fim
yuliskov/SmartTube
java
<|fim_suffix|>ll be set by the framework. * * @param color The color to use for the search affordance. */ public void setSearchAffordanceColor(int color) { setSearchAffordanceColors(new SearchOrbView.Colors(color)); } /** * Returns the color used to draw the search affordance. ...
fim
yuliskov/SmartTube
java
<|fim_prefix|>// CHECKSTYLE:OFF Generated code /* This file is auto-generated from BrowseSupportFragment.java. DO NOT MODIFY. */ /* * Copyright (C) 2014 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 Lic...
fim
yuliskov/SmartTube
java
<|fim_suffix|> mWithHeadersBackStackName = LB_HEADERS_BACKSTACK + this; mBackStackChangedListener = new BackStackListener(); getFragmentManager().addOnBackStackChangedListener(mBackStackChangedListener); mBackStackChangedListener.load(savedInstanceState); ...
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_suffix|>ackgroundController != null && mDetailsBackgroundController.canNavigateToVideoFragment() && mVideoFragment != null && mVideoFragment.getView() != null) { return mVideoFragment.getView(); } e...
fim
yuliskov/SmartTube
java
// CHECKSTYLE:OFF Generated code /* This file is auto-generated from {}DetailsSupportFragmentBackgroundController.java. DO NOT MODIFY. */ /* * 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 wit...
fim
yuliskov/SmartTube
java
<|fim_suffix|> FragmentTransaction ft2 = getChildFragmentManager().beginTransaction(); ft2.add(androidx.leanback.R.id.video_surface_container, fragment = mDetailsBackgroundController.onCreateVideoSupportFragment()); ft2.commit(); if (mPendingFocusOnVideo) { ...
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|>// CHECKSTYLE:OFF Generated code /* This file is auto-generated from ErrorSupportFragment.java. DO NOT MODIFY. */ /* * Copyright (C) 2014 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 Lice...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2014 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 ...
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|>// CHECKSTYLE:OFF Generated code /* This file is auto-generated from GuidedStepSupportFragment.java. DO NOT MODIFY. */ /* * Copyright (C) 2015 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...
fim
yuliskov/SmartTube
java
<|fim_suffix|>} <|fim_prefix|>/* * Copyright (C) 2015 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 * * ...
fim
yuliskov/SmartTube
java
<|fim_suffix|>portFragment.this.onGuidedActionClicked(action); } }, this, mButtonActionsStylist, false); mSubAdapter = new GuidedActionAdapter(null, new GuidedActionAdapter.ClickListener() { @Override public void onGuidedActionClicked(GuidedAction acti...
fim
yuliskov/SmartTube
java
// CHECKSTYLE:OFF Generated code /* This file is auto-generated from HeadersSupportFragment.java. DO NOT MODIFY. */ /* * Copyright (C) 2014 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...
fim
yuliskov/SmartTube
java
<|fim_suffix|> super.onTransitionEnd(); } public boolean isScrolling() { return getVerticalGridView().getScrollState() != HorizontalGridView.SCROLL_STATE_IDLE; } } <|fim_prefix|>/* * Copyright (C) 2014 The Android Open Source Project * * Licensed under the Apache License, ...
fim
yuliskov/SmartTube
java
<|fim_prefix|>package androidx.leanback.app; import androidx.leanback.widget.ObjectAdapter; import androidx.leanback.widget.Row; /** * Wrapper class for {@link ObjectAdapter} used by {@link BrowseFragment} to initialize * {@link RowsFragment}. We use invisible rows to represent * {@link androidx.leanback.widget.Di...
fim
yuliskov/SmartTube
java
<|fim_suffix|>blic void setArrowColor(@ColorInt int color) { mArrowColor = color; mArrowColorSet = true; if (mPageIndicator != null) { mPageIndicator.setArrowColor(color); } } /** * Returns the color of the arrow if it's set through * {@link #setArrowColor(...
fim
yuliskov/SmartTube
java
<|fim_suffix|>ew); animator = logoAnimator; } else { animator = onCreateLogoAnimation(); } if (animator != null) { animator.addListener(new AnimatorListenerAdapter() { @Override public void onAnimationEnd(Animator animation) { ...
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 applicable ...
fim
yuliskov/SmartTube
java
<|fim_suffix|>er, ViewGroup container, Bundle savedInstanceState) { mRootView = inflater.inflate(R.layout.lb_playback_fragment, container, false); mBackgroundView = mRootView.findViewById(R.id.playback_fragment_background); mRowsFragment = (RowsFragment) getChildFrag...
fim
yuliskov/SmartTube
java
<|fim_suffix|>t * * 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 applicable law or agreed to in writing, software dis...
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 required ...
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 required ...
fim
yuliskov/SmartTube
java
<|fim_suffix|>ressBar = false; } /** * Enables progress bar. */ public void enableProgressBar() { mEnableProgressBar = true; } } <|fim_prefix|>package androidx.leanback.app; import android.os.Handler; import android.view.Gravity; import android.view.View; import android.view.ViewGrou...
fim
yuliskov/SmartTube
java
<|fim_suffix|>ticalGridView == null) { return null; } return getRowViewHolder((ItemBridgeAdapter.ViewHolder) mVerticalGridView .findViewHolderForAdapterPosition(position)); } public static class MainFragmentAdapter extends BrowseFragment.MainFragmentAdapter<RowsFragm...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2014 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 ...
fim
yuliskov/SmartTube
java
<|fim_prefix|>// CHECKSTYLE:OFF Generated code /* This file is auto-generated from SearchSupportFragment.java. DO NOT MODIFY. */ /* * Copyright (C) 2014 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 Lic...
fim
yuliskov/SmartTube
java
<|fim_suffix|>(null != mProvider) { retrieveResults(query); } else { mPendingQuery = query; } } @Override public void onSearchQuerySubmit(String query) { if (DEBUG) Log.v(TAG, String.format("onSe...
fim
yuliskov/SmartTube
java
<|fim_suffix|>ewHolder.getGridView().getSelectedPosition(); if (DEBUG) Log.v(TAG, "grid selected position " + position); gridOnItemSelected(position); if (mOnItemViewSelectedListener != null) { mOnItemViewSelectedListener.onItemSelected(itemViewHolder, item, ...
fim
yuliskov/SmartTube
java
/* * Copyright (C) 2014 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 applicable ...
fim
yuliskov/SmartTube
java
<|fim_suffix|> /** * Adds {@link SurfaceHolder.Callback} to {@link android.view.SurfaceView}. */ public void setSurfaceHolderCallback(SurfaceHolder.Callback callback) { mMediaPlaybackCallback = callback; if (callback != null) { if (mState == SURFACE_CREATED) { ...
fim
yuliskov/SmartTube
java
<|fim_prefix|>// CHECKSTYLE:OFF Generated code /* This file is auto-generated from VideoSupportFragmentGlueHost.java. DO NOT MODIFY. */ /* * 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 ...
fim
yuliskov/SmartTube
java