text
stringlengths
14
100k
source
stringclasses
1 value
repo
stringclasses
810 values
language
stringclasses
13 values
<|fim_suffix|>getView().getWidth(); int screenHeight = getView().getHeight(); ViewGroup.LayoutParams p = mVideoSurface.getLayoutParams(); if (screenWidth * height > width * screenHeight) { // fit in screen height p.height = screenHeight; p.width = screenHeigh...
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) 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|>eturn bind(mCursor); } } <|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<|fim_middle|> with the License. You may obtain a copy of the License at * * http://w...
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 t<|fim_suffix|>the current bounds and sets the final values based on the individual...
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<|fim_suffix|>given color at different alpha levels. */ public final class ColorFilter...
fim
yuliskov/SmartTube
java
<|fim_suffix|>getFilterForLevel( mDimmedLevel + level * (mActiveLevel - mDimmedLevel)); mPaint.setColorFilter(mFilter); } /** * Gets the ColorFilter set to the current dim level. * * @return The current ColorFilter. */ public ColorFilter getColorFilter() { ...
fim
yuliskov/SmartTube
java
<|fim_suffix|>(), v.getTop() + v.getPaddingTop(), v.getRight() - v.getPaddingRight(), v.getBottom() - v.getPaddingBottom(), mPaint); } c.restore(); } } <|fim_prefix|>/* * Copyright (C) 2014 The Android Open Source Project * * Licensed un...
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
/* * 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 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_suffix|>aController.unregisterCallback(mCallback); } mMediaController = null; } /** * Returns the media controller currently attached. */ public final MediaControllerCompat getMediaController() { return mMediaController; } @Override public boolean hasVal...
fim
yuliskov/SmartTube
java
<|fim_suffix|> mPlayer.setOnVideoSizeChangedListener(mOnVideoSizeChangedListener); mPlayer.setOnErrorListener(mOnErrorListener); mPlayer.setOnSeekCompleteListener(mOnSeekCompleteListener); mPlayer.setOnCompletionListener(mOnCompletionListener); mPlayer.setOnInfoListener(mOnInfoLis...
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) 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|>e public final void play() { play(PLAYBACK_SPEED_NORMAL); } private void updateRowMetadata() { if (mControlsRow == null) { return; } if (DEBUG) Log.v(TAG, "updateRowMetadata"); if (!hasValidMedia()) { mControlsRow.setImageDrawa...
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|>@return PlayerEventCallback that Host supports, null if not supported. */ public PlayerCallback getPlayerCallback() { return null; } } <|fim_prefix|>/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you m...
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|> static class Callback { /** * Client for Play/Pause state change. See {@link #isPlaying()}. */ public void onPlayStateChanged(PlayerAdapter adapter) { } /** * Client for {@link #isPrepared()} changed. * @param adapter The adapter that ...
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<|fim_suffix|>lback} on the...
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 (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|>eBounds extends ChangeBounds { int mDefaultStartDelay; // View -> delay final HashMap<View, Integer> mViewStartDelays = new HashMap<View, Integer>(); // id -> delay final SparseIntArray mIdStartDelays = new SparseIntArray(); // Class.getName() -> delay final HashMap<String, In...
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_suffix|>OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. */ package androidx.leanback.transition; import static androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP; import android.content.Context; import android.os.B...
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) 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
<|fim_suffix|>ransitionValues startValues, int startVisibility, TransitionValues endValues, int endVisibility) { View view = (startValues != null) ? startValues.view : null; if (view == null) { return null; } float start = mSlideCalculator.getHere(view); 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|>ct class TransitionEpicenterCallback { /** * Implementers must override to return the epicenter of the Transition in screen * coordinates. * * @param transition The transition for which the epicenter applies. * @return The Rect region of the epicenter of <code>transition</cod...
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<|fim_suffix|>eners for transition start and stop. * @hide */ @RestrictTo(LIBRARY_GROUP) public class TransitionListener { protected Object mImpl; public void onTransitionStart(Object transition) { } public void onTransitionEnd(Object transition) { } ...
fim
yuliskov/SmartTube
java
<|fim_prefix|>package androidx.leanback.transition; import static androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.animation.ObjectAnimator; import android.animation.TimeInterpolator; import android.graphics.Path; i...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2016 The Android Open Source Project * *<|fim_suffix|>IntExact() in Java 8. * @param numLong Number of type long to convert. * @return int version of input. * @throws ArithmeticException If input overflows int. */ public static int safeLongToInt(long numLong) ...
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|>arginLayoutParams lp = (ViewGroup.MarginLayoutParams) textView.getLayoutParams(); lp.topMargin = topMargin; textView.setLayoutParams(lp); } } <|fim_prefix|>/* * Copyright (C) 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); you...
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|>lder(view); if (mBackgroundColorSet) { vh.view.setBackgroundColor(mBackgroundColor); } return vh; } @Override protected void onBindRowViewHolder(RowPresenter.ViewHolder vh, Object item) { super.onBindRowViewHolder(vh, item); onBindMediaListH...
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_suffix|>m. * @param toPosition New position of the item. */ public void move(int fromPosition, int toPosition) { if (fromPosition == toPosition) { // no-op return; } Object item = mItems.remove(fromPosition); mItems.add(toPosition, item); ...
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 <|fim_suffix|> view.setBackground(drawable); } else { // Cannot query drawable alpha view.setBackground(drawable); } } ...
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
<|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|>w The row which the clicked item belongs to. */ void onItemClicked(Presenter.ViewHolder itemViewHolder, Object item, RowPresenter.ViewHolder rowViewHolder, T row); } <|fim_prefix|>/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apach...
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) 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); you may<|fim_suffix|>der * the License. */ package androidx.leanback.widget; import android.content.Context; import android.graphics.Rect; import android.util.AttributeSet; imp...
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) 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(item); if (innerPresenter != null) { return innerPresenter; } } cls = cls.getSuperclass(); } while (presenter == null && cls != null); return (Presenter) presenter; } @Override public Presenter[] ge...
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|>iew) view.findViewById(R.id.label); mFocusableView = view.findViewById(R.id.button); } } static class ControlButtonPresenter extends Presenter { private int mLayoutResourceId; ControlButtonPresenter(int layoutResourceId) { mLayoutResourceId = layou...
fim
yuliskov/SmartTube
java
<|fim_suffix|>nged = mMapper != mapper; mMapper = mapper; if (changed) { onMapperChanged(); } } /** * Called when {@link #setMapper(CursorMapper)} is called and a different * mapper is provided. */ protected void onMapperChanged() { } /** * ...
fim
yuliskov/SmartTube
java
<|fim_suffix|>sition can be started. */ public class DetailsOverviewLogoPresenter extends Presenter { /** * ViewHolder for Logo view of DetailsOverviewRow. */ public static class ViewHolder extends Presenter.ViewHolder { protected FullWidthDetailsOverviewRowPresenter mParentPresenter; ...
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.apache.org/licenses/LICENSE-2.0 * * Unless required ...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyright (C) 2016 The<|fim_suffix|>arallax { final IntProperty mFrameTop; final IntProperty mFrameBottom; public DetailsParallax() { // track the top edge of details_frame of first item of adapter mFrameTop = addProperty("overviewRowTop") .adapterPositio...
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|> payload between an old and new version of an item. * * @see DiffUtil.Callback#getChangePayload(int, int) */ @SuppressWarnings("WeakerAccess") public Object getChangePayload(@NonNull Value oldItem, @NonNull Value newItem) { return null; } } <|fim_prefix|>/* * Copyright ...
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|> specific language governing permissions and limitations under * the License. */ package androidx.leanback.widget; /** * Used to represent divider in HeadersFragment. */ public class DividerRow extends Row { public DividerRow() { } @Override final public boolean isRenderedAsRowView(...
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
/* * 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
/* * 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|>ASIS, 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 androidx.leanback.widget; import static androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP; import android.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|> } } private ForegroundHelper() { } } <|fim_prefix|>package androidx.leanback.widget; import android.graphics.drawable.Drawable; import android.os.Build; import android.view.Vi<|fim_middle|>ew; final class ForegroundHelper { /** * Returns true if view.setForeground() is suppo...
fim
yuliskov/SmartTube
java
<|fim_suffix|>c abstract void onImeDisappearing(@NonNull List<Animator> animators); } <|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...
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) 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|>iewHeight = mBreadcrumbView.getMeasuredHeight(); int guidanceTextContainerTop = mTitleKeylinePixels - titleViewBaseline - mBreadcrumbViewHeight - mTitleView.getPaddingTop(); int offset = guidanceTextContainerTop - mBreadcrumbView.getTop(); if (mBrea...
fim
yuliskov/SmartTube
java
<|fim_suffix|> Guidance. */ public Drawable getIconDrawable() { return mIconDrawable; } } private TextView mTitleView; private TextView mDescriptionView; private TextView mBreadcrumbView; private ImageView mIconView; private View mGuidanceContainer; /**...
fim
yuliskov/SmartTube
java
<|fim_suffix|>GuidedAction#ACTION_ID_CONTINUE} * {@link GuidedAction#ACTION_ID_YES} {@link GuidedAction#ACTION_ID_NO}. * @return The same BuilderBase object. */ public B clickAction(long id) { if (id == ACTION_ID_OK) { mId = ACTION_ID_OK; mT...
fim
yuliskov/SmartTube
java
<|fim_suffix|>BUG) { Log.d(TAG, "Enter Key up"); } // Sometimes we are losing ACTION_DOWN for the first ENTER after pressed // Escape in IME. if (mKeyPressed) { ...
fim
yuliskov/SmartTube
java
<|fim_suffix|> ACTION_ID_NEXT, we first find out the matching index in Actions list. int index = 0; if (nextActionId == GuidedAction.ACTION_ID_NEXT) { index = adapter.indexOf(action); if (index < 0) { return false; } // start from next, if ...
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 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 requi...
fim
yuliskov/SmartTube
java
<|fim_suffix|>stener; } @Override public void autofill(AutofillValue values) { super.autofill(values); if (mAutofillListener != null) { mAutofillListener.onAutofill(this); } } /** * See * {@link TextViewCompat#setCustomSelectionActionModeCallback(TextV...
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|>package androidx.leanback.widget; import android.content.Context; import android.content.res.TypedArray; import android.util.AttributeSet; import android.view.KeyEvent; import android.view.View; import android.view.ViewGroup; import android.widget.RelativeLayout; import androidx.leanback.R; /** * Rela...
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|>nuary 1, 1970 00:00:00 in * {@link TimeZone#getDefault()} time zone. -1 if not set. * @return Minimal value of DatePicker Action or Long.MIN_VALUE if not set. */ public long getMinDate() { return mMinDate; } /** * Get maximum value of DatePicker in milliseconds si...
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|> Bitmap.Config.ARGB_8888); } return mTempBitmapLow; } private Bitmap getTempBitmapHigh() { if (mTempBitmapHigh == null || mTempBitmapHigh.getWidth() != mHighFadeShaderLength || mTempBitmapHigh.getHeight() != getHeight()) { /...
fim
yuliskov/SmartTube
java
<|fim_prefix|>/* * Copyrigh<|fim_suffix|>iew.requestLayout(); } /** * Select a childView inside a grid view and create/bind a corresponding hover card view * for the object. */ public void select(HorizontalGridView gridView, View childView, Object object) { ViewGroup parent = getPar...
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 req<|fim_...
fim
yuliskov/SmartTube
java
<|fim_suffix|>e 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 governing permissions and limitations under * the License. */ package android...
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) 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 (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) 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 req<|fim_...
fim
yuliskov/SmartTube
java
<|fim_suffix|>ion for the ListRow. By default it returns * {@link HeaderItem#getContentDescription()} or {@link HeaderItem#getName()}, * unless {@link #setContentDescription(CharSequence)} was explicitly called. * * @return Content description for the ListRow. */ public CharSequence getCon...
fim
yuliskov/SmartTube
java
<|fim_suffix|>getText(); } /** * Sets the description text. */ public final void setDescription(CharSequence text) { if (!TextUtils.isEmpty(text)) { mDescriptionView.setText(text); mDescriptionView.setVisibility(View.VISIBLE); } else { mDescript...
fim
yuliskov/SmartTube
java