text
stringlengths
14
100k
source
stringclasses
1 value
repo
stringclasses
810 values
language
stringclasses
13 values
<|fim_suffix|> rowViewHolder.mItemBridgeAdapter = new ListRowPresenterItemBridgeAdapter(rowViewHolder); // set wrapper if needed rowViewHolder.mItemBridgeAdapter.setWrapper(mShadowOverlayWrapper); mShadowOverlayHelper.prepareParentForShadow(rowViewHolder.mGridView); FocusHighlightHelpe...
fim
yuliskov/SmartTube
java
<|fim_suffix|> /** * Returns the HorizontalGridView. */ public HorizontalGridView getGridView() { return mGridView; } } <|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 e...
fim
yuliskov/SmartTube
java
<|fim_suffix|>import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import androidx.leanback.R; /** * The presenter displaying a custom action in {@link AbstractMediaItemPresenter}. * This is the default presenter for actions in media rows if n...
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
/* * 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|> currently selected index in this MultiAction. * @return The currently selected index in this MultiAction. */ public int getIndex() { return mIndex; } /** * @return The icon drawable for the current state of this MultiAction. */ ...
fim
yuliskov/SmartTube
java
<|fim_suffix|> /** * Avoid creating hardware layer when Transition is animating alpha. */ @Override public boolean hasOverlappingRendering() { return false; } }<|fim_prefix|>/* * Copyright (C) 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the ...
fim
yuliskov/SmartTube
java
<|fim_suffix|>public NonOverlappingLinearLayout(Context context) { this(context, null); } public NonOverlappingLinearLayout(Context context, AttributeSet attrs) { this(context, attrs, 0); } public NonOverlappingLinearLayout(Context context, AttributeSet attrs, int defStyle) { s...
fim
yuliskov/SmartTube
java
<|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 * * Unless required ...
fim
yuliskov/SmartTube
java
/* * 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 * * Unless required by applicable ...
fim
yuliskov/SmartTube
java
<|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 * * Unless r...
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
/* * 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_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.apac<|fim_suffix|> * @param view The view within ...
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
/* * 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|>m can be selected without having focus; * for example, when a row header view gains focus then the corresponding row view becomes selected. * This interface expects row object to be sub class of {@link Row}. */ public interface OnItemViewSelectedListener extends BaseOnItemViewSelectedListener<Row> { } ...
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.<|fim_suffix|>tware distributed under the License * i...
fim
yuliskov/SmartTube
java
<|fim_suffix|>terX = 0.0f; mDiameter = mArrowDiameter; mRadius = mArrowRadius; mArrowImageRadius = mRadius * mArrowToBgRatio; mAlpha = 1.0f; adjustAlpha(); } void deselect() { mTranslationX = 0.0f; mCenterX = 0.0f; ...
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|>onCalculated = false; float fraction = 0; Number directValue = null; for (int i = 0; i < mTargets.size(); i++) { ParallaxTarget target = mTargets.get(i); if (target.isDirectMapping()) { if (directValue == null) { directVal...
fim
yuliskov/SmartTube
java
<|fim_suffix|>ax effect on target object using an ObjectAnimator. PSEUDO_DURATION * is used on the ObjectAnimator. */ private static final long PSEUDO_DURATION = 1000000; private final ObjectAnimator mAnimator; private float mFraction; public PropertyValuesHolderTarge...
fim
yuliskov/SmartTube
java
<|fim_suffix|>"onRestoreInstanceState mSelectedPosition " + mSelectedPosition); super.onRestoreInstanceState(savedState.getSuperState()); } } <|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 f...
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_suffix|> setDuration((long) ms); } /** * Sets the total time in milliseconds (long type) for the playback controls row. * @param ms Total time in milliseconds of long type. * @deprecated Use {@link #setDuration(long)} */ @Deprecated public void setTotalTimeLong(long ms) { ...
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_suffix|>le); } public void setOnUnhandledKeyListener(OnUnhandledKeyListener listener) { mOnUnhandledKeyListener = listener; } public OnUnhandledKeyListener getOnUnhandledKeyListener() { return mOnUnhandledKeyListener; } @Override public boolean dispatchKeyEvent(KeyE...
fim
yuliskov/SmartTube
java
<|fim_suffix|>*/ public static class ViewHolder extends RowPresenter.ViewHolder { public ViewHolder(View view) { super(view); } } /** * Provides hook to update the UI when the view reappears. */ public void onReappear(RowPresenter.ViewHolder rowViewHolder) { } ...
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|>eeks to a different location. This callback is called multiple times * between {@link #onSeekStarted()} and {@link #onSeekFinished(boolean)}. * @param pos Position that user seeks to. */ public void onSeekPositionChanged(long pos) { } /** * Call...
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|>AttributeSet attrs) { super(context, attrs); } public PlaybackTransportRowView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } void setOnUnhandledKeyListener(OnUnhandledKeyListener listener) { mOnUnhandledKeyListener = liste...
fim
yuliskov/SmartTube
java
<|fim_suffix|>in addition to basic ViewHolder functions. * @param facetClass Facet classes to query, can be class of {@link ItemAlignmentFacet}. * @param facetImpl Facet implementation. */ public final void setFacet(Class<?> facetClass, Object facetImpl) { if (mFacets ...
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_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_suffix|>)); } } } } @Override public ChildPositionProperty createProperty(String name, int index) { return new ChildPositionProperty(name, index); } @Override public float getMaxValue() { if (mRecylerView == null) { return ...
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
/* * 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_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_suffix|> null, the result of {@link HeaderItem#getId()} is returned. * <li>Otherwise {@link ObjectAdapter#NO_ID NO_ID} is returned. * </ul> */ public final long getId() { if ( (mFlags & FLAG_ID_USE_MASK) == FLAG_ID_USE_HEADER) { HeaderItem header = getHeaderItem(); ...
fim
yuliskov/SmartTube
java
<|fim_suffix|>(boolean show) { mHeaderDock.setVisibility(show ? View.VISIBLE : View.GONE); } @Override public void setForeground(Drawable d) { mForeground = d; setWillNotDraw(mForeground == null); invalidate(); } public void setForegroundColor(@ColorInt int color) {...
fim
yuliskov/SmartTube
java
<|fim_suffix|>vate final Paint mFontMeasurePaint = new Paint(Paint.ANTI_ALIAS_FLAG); private boolean mNullItemVisibilityGone; private final boolean mAnimateSelect; /** * Creates default RowHeaderPresenter using a title view and a description view. * @see ViewHolder#RowHeaderPresenter.ViewHolder(V...
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_suffix|>YNC_ACTIVATED_CUSTOM} Activated status is not controlled by selected status * or expanded status, application can control activated status by its own. * Application should call {@link RowPresenter.ViewHolder#setActivated(boolean)} to change * activated status of row view. * </li> * </ul> ...
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|>/* * 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<|fim_suffix|>ontext, attrs, R.style.TextAppearance_Lea...
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 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 applicable ...
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) 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (<|fim_suffix|>ay 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 distributed under the L...
fim
yuliskov/SmartTube
java
<|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 * * Unless required ...
fim
yuliskov/SmartTube
java
<|fim_suffix|>r (with alpha) of the overlay. */ public void setOverlayColor(@ColorInt int overlayColor) { if (mOverlayPaint != null) { if (overlayColor != mOverlayColor) { mOverlayColor = overlayColor; mOverlayPaint.setColor(overlayColor); inv...
fim
yuliskov/SmartTube
java
<|fim_suffix|>us. * * @param roundedCornerRadius Number of pixels of rounded corner radius. * Set to 0 to use default settings. * @return The Options object itself. */ public Options roundedCornerRadius(int roundedCornerRadius){ ...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2014 The Android Open Source Project *<|fim_suffix|>dered the same way. */ public final class SinglePresenterSelector extends PresenterSelector { private final Presenter mPresenter; /** * @param presenter The Presenter to return for every item. */ public Singl...
fim
yuliskov/SmartTube
java
<|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 * * Unless required ...
fim
yuliskov/SmartTube
java
<|fim_suffix|>urn mItems.indexOfKey(key); } /** * Notify that the content of a range of items changed. Note that this is * not same as items being added or removed. * * @param positionStart The position of first item that has changed. * @param itemCount The count of how many items have...
fim
yuliskov/SmartTube
java
<|fim_prefix|>package androidx.leanback.widget; import android.content.Context; import android.content.res.Resources; import android.graphics.Color; import android.util.AttributeSet; import androidx.leanback.R; /** * A subclass of {@link SearchOrbView} that visualizes the state of an ongoing speech recognition. */...
fim
yuliskov/SmartTube
java
<|fim_suffix|>HOUT 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 androidx.leanback.widget; /** * Interface for receiving notification that speech recognition should be initiated. * ...
fim
yuliskov/SmartTube
java
<|fim_suffix|>ath.max(mProvider.getMinIndex(), mFirstIndex); for (; itemIndex >= firstIndex; itemIndex--) { Location loc = getLocation(itemIndex); int rowIndex = loc.row; int size = mProvider.createItem(itemIndex, false, mTmpItem, false); if (size != loc.size) { ...
fim
yuliskov/SmartTube
java
<|fim_suffix|>tartIndex : 0; // if there are cached items, put on previous row of first cached item. rowIndex = (mLocations.size() > 0 ? getLocation(getFirstIndex()).row + mNumRows - 1 : itemIndex) % mNumRows; edgeLimit = 0; edgeLimitIsValid = false; ...
fim
yuliskov/SmartTube
java
<|fim_suffix|>ShadowImpl shadowImpl = (ShadowImpl) impl; shadowImpl.mNormalShadow.setAlpha(1 - level); shadowImpl.mFocusShadow.setAlpha(level); } } static class ShadowImpl { View mNormalShadow; View mFocusShadow; } } <|fim_prefix|>/* * Copyright (C) 2015 The...
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_suffix|>ut in the screen * Assume we should put x's non-hero thumbs in the screen, the equation should be * 192dp (width of hero thumbs) + * 154dp (width of common thumbs) * x + * 4dp (width of the margin between thumbs) * x * = width * So the calculated number of non-hero ...
fim
yuliskov/SmartTube
java
<|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 * * Unless r...
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_suffix|>rs} used to draw the * search affordance. * * @return Colors used to draw search affordance. */ public SearchOrbView.Colors getSearchAffordanceColors() { return null; } /** * Enables or disables any view animations. This method is called to save CPU cycle for...
fim
yuliskov/SmartTube
java
<|fim_suffix|>static boolean isDescendant(ViewGroup parent, View child) { while (child != null) { if (child == parent) { return true; } ViewParent p = child.getParent(); if (!(p instanceof View)) { return false; } ...
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_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) 20<|fim_suffix|>lic void setTransitionVisibility(int visibility) { } } <|fim_middle|>17 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 cop...
fim
yuliskov/SmartTube
java
<|fim_suffix|>lic void run(RecyclerView.ViewHolder viewHolder); }<|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 * * ...
fim
yuliskov/SmartTube
java
<|fim_suffix|> String key = getSaveStatesKey(id); SparseArray<Parcelable> container = new SparseArray<Parcelable>(); view.saveHierarchyState(container); mChildStates.put(key, container); } } /** * The on screen view is saved when policy is not {@link #SAVE_NO...
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<|fim_suffix|>OURCE) public @interface Visibility {} <|fim_middle|> obtain a copy of the License at ...
fim
yuliskov/SmartTube
java
<|fim_suffix|>olean isMinUnknown = isMinUnknown(); final boolean isMaxUnknown = isMaxUnknown(); if (!isMinUnknown) { if (!mReversedFlow ? (mWindowAlignment & WINDOW_ALIGN_LOW_EDGE) != 0 : (mWindowAlignment & WINDOW_ALIGN_HIGH_EDGE) != 0) { ...
fim
yuliskov/SmartTube
java
<|fim_suffix|> Two common cases are when an ObjectAdapter uses the same View type for every element * ({@link androidx.leanback.widget.SinglePresenterSelector}), and when the Presenter is * determined by the Java class of * the element ({@link androidx.leanback.widget.ClassPresenterSelector}). A developer is * abl...
fim
yuliskov/SmartTube
java
<|fim_suffix|>@link TimeZone#getDefault()} time zone. * <p> * Note: The default maximal date is 12/31/2100. * <p> * * @return The maximal supported date. */ public long getMaxDate() { return mMaxDate.getTimeInMillis(); } /** * Gets current date value in millisecon...
fim
yuliskov/SmartTube
java
<|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 * * Unless required ...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2015 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (<|fim_suffix|> return mMinValue; } /** * Returns maximum value of the Column. * @return Maximum value of the Column. */ public int getMaxValue() { return mMa...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version <|fim_suffix|>til.Calendar; import java.util.Locale; /** * Utility class that provides Date/Time related constants as well as locale-specific calendar for * both {@link DatePicker} and {@link TimeP...
fim
yuliskov/SmartTube
java
<|fim_suffix|>t.DateFormat dateFormat = SimpleDateFormat.getTimeInstance(SimpleDateFormat.SHORT, mConstant.locale); if (dateFormat instanceof SimpleDateFormat) { String defaultPattern = ((SimpleDateFormat) dateFormat).toPattern(); defaultPattern = defaultP...
fim
yuliskov/SmartTube
java
<|fim_prefix|>package com.liskovsoft.leanbackassistant.channels; import android.annotation.TargetApi; import android.content.ComponentName; import android.content.ContentUris; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.graphics.Bitmap; import an...
fim
yuliskov/SmartTube
java
<|fim_suffix|>DatabaseTask = null; jobFinished(mJobParameters, false); } } } <|fim_prefix|>package com.liskovsoft.leanbackassistant.channels; import android.annotation.SuppressLint; import android.app.job.JobInfo; import android.app.job.JobParameters; import android.app.job.JobScheduler; impor...
fim
yuliskov/SmartTube
java
<|fim_prefix|>package com.liskovsoft.leanbackassistant.channels; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.os.Build.VERSION; import com.liskovsoft.sharedutils.helpers.Helpers; import com.liskovsoft.sharedutils.mylogger.Log; /* * The recei...
fim
yuliskov/SmartTube
java
<|fim_prefix|>package com.liskovsoft.leanbackassistant.channels; import android.content.Context; import androidx.annotation.RequiresApi; import com.liskovsoft.leanbackassistant.media.ClipService; import com.liskovsoft.leanbackassistant.media.Playlist; import com.liskovsoft.leanbackassistant.recommendations.Recommend...
fim
yuliskov/SmartTube
java
<|fim_prefix|>package com.liskovsoft.leanbackassistant.channels; import android.content.Context; import android.os.Build.VERSION; import androidx.annotation.NonNull; import androidx.annotation.RequiresApi; import androidx.work.ExistingPeriodicWorkPolicy; import androidx.work.PeriodicWorkRequest; import androidx.work....
fim
yuliskov/SmartTube
java
<|fim_suffix|>y { return new URI(mBgImageUrl); } catch (URISyntaxException e) { return null; } } URI getCardImageURI() { try { return new URI(getCardImageUrl()); } catch (URISyntaxException e) { return null; } } in...
fim
yuliskov/SmartTube
java
<|fim_suffix|>laylist.setLogoResId(logoResId); return playlist; } public interface GroupCallback { MediaGroup call(ContentService mediaTabManager); } } <|fim_prefix|>package com.liskovsoft.leanbackassistant.media; import android.annotation.SuppressLint; import android.content.Context; im...
fim
yuliskov/SmartTube
java
<|fim_prefix|>package com.liskovsoft.leanbackassistant.media; import android.content.Context; public class ClipServiceCached extends ClipService { private static ClipServiceCached mInstance; private Playlist mSubscriptions; private long mSubscriptionsTime; private Playlist mHistory; private long m...
fim
yuliskov/SmartTube
java
<|fim_suffix|>ogoResId; } public void setLogoResId(int resId) { mLogoResId = resId; } } <|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. Yo...
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 required ...
fim
yuliskov/SmartTube
java
<|fim_suffix|> ).build(); return notification; } } <|fim_prefix|>package com.liskovsoft.leanbackassistant.recommendations; import android.app.Notification; import android.app.PendingIntent; import android.content.Context; import android.graphics.Bitmap; import androidx.annotation.Requi...
fim
yuliskov/SmartTube
java
<|fim_prefix|>package com.liskovsoft.leanbackassistant.recommendations; import android.app.Notification; import android.app.NotificationManager; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import androidx.annotation.RequiresApi; import com.liskovsoft.leanbac...
fim
yuliskov/SmartTube
java
<|fim_suffix|>CTION = SearchManager.SUGGEST_COLUMN_INTENT_ACTION; } <|fim_prefix|>package com.liskovsoft.leanbackassistant.search; import android.annotation.TargetApi; import android.app.SearchManager; @TargetApi(21) public class MockDatabase { // The columns we'll include in the video database table public s...
fim
yuliskov/SmartTube
java
<|fim_suffix|> } return null; } } <|fim_prefix|>package com.liskovsoft.leanbackassistant.search; import android.app.Activity; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import androidx.annotation.Nullable; import com.liskovsoft.googlecommon.common.helpers.ServiceHelp...
fim
yuliskov/SmartTube
java
<|fim_suffix|>l) { mSchedulerProvider = new AppSchedulerProvider(); } return mSchedulerProvider; } private CompositeDisposable getCompositeDisposable() { if (mDisposable == null) { mDisposable = new CompositeDisposable(); } return mDisposable; ...
fim
yuliskov/SmartTube
java
<|fim_prefix|>package com.liskovsoft.leanbackassistant.utils; import android.annotation.SuppressLint; import android.app.PendingIntent; import android.app.TaskStackBuilder; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.os.Build; import com.liskovsoft.sharedutils...
fim
yuliskov/SmartTube
java
<|fim_suffix|> return secondaryColor; } protected boolean areColorsValid() { return getPrimaryColor() != -1 && getSecondaryColor() != -1; } } <|fim_prefix|>package com.r0adkll.slidr; import android.animation.ArgbEvaluator; import android.app.Activity; import android.os.Build; import androidx.anno...
fim
yuliskov/SmartTube
java
<|fim_prefix|>package com.r0adkll.slidr; import android.app.Acti<|fim_suffix|> } } super.onClosed(); } @Override public void onOpened() { if(config.getListener() != null){ config.getListener().onSlideOpened(); } } @Override public voi...
fim
yuliskov/SmartTube
java