code stringlengths 1 1.05M | repo_name stringlengths 6 83 | path stringlengths 3 242 | language stringclasses 222
values | license stringclasses 20
values | size int64 1 1.05M |
|---|---|---|---|---|---|
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.modelutil;
import androidx.annotation.Nullable;
/**
* A model change processor for use with a {@link ListObservable} model. The
* {@link ListModelCh... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/modelutil/ListModelChangeProcessor.java | Java | unknown | 2,856 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.modelutil;
import androidx.annotation.Nullable;
/**
* An interface for models notifying about changes to a list of items. Note that ListObservable
* ... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/modelutil/ListObservable.java | Java | unknown | 3,419 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.modelutil;
import androidx.annotation.Nullable;
import org.chromium.base.ObserverList;
/**
* Helper class for implementations of {@link ListObservab... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/modelutil/ListObservableImpl.java | Java | unknown | 3,740 |
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.modelutil;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import org.chromium.ui.modelutil.PropertyMode... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/modelutil/MVCListAdapter.java | Java | unknown | 2,482 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.modelutil;
import android.util.Pair;
import android.util.SparseArray;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Ba... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/modelutil/ModelListAdapter.java | Java | unknown | 8,328 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.modelutil;
import androidx.annotation.NonNull;
import org.chromium.ui.modelutil.ListObservable.ListObserver;
import org.chromium.ui.modelutil.MVCListA... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/modelutil/ModelListPropertyChangeFilter.java | Java | unknown | 4,022 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.modelutil;
/**
* Place holder interface to allow key definitions. Should not be used directly and only exposed
* to allow use as generic placeholders... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/modelutil/PropertyKey.java | Java | unknown | 357 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.modelutil;
import androidx.annotation.Nullable;
import java.util.Collection;
/**
* Represents a list of (property-)observable items, and notifies ab... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/modelutil/PropertyListModel.java | Java | unknown | 2,477 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.modelutil;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.drawable.Drawable;
import androidx.annotation... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/modelutil/PropertyModel.java | Java | unknown | 21,018 |
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.modelutil;
import android.animation.ObjectAnimator;
import android.util.FloatProperty;
import org.chromium.ui.modelutil.PropertyModel.WritableFloatPro... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/modelutil/PropertyModelAnimatorFactory.java | Java | unknown | 1,885 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.modelutil;
import org.chromium.ui.modelutil.PropertyObservable.PropertyObserver;
/**
* A model change processor for use with a {@link PropertyObserva... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/modelutil/PropertyModelChangeProcessor.java | Java | unknown | 3,698 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.modelutil;
import androidx.annotation.Nullable;
import org.chromium.base.ObserverList;
import java.util.Collection;
/**
* A base class for models m... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/modelutil/PropertyObservable.java | Java | unknown | 2,325 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.modelutil;
import android.view.ViewGroup;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.RecyclerView;
import androidx.recyc... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/modelutil/RecyclerViewAdapter.java | Java | unknown | 6,537 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.modelutil;
import androidx.annotation.NonNull;
import java.util.AbstractList;
import java.util.Iterator;
import java.util.List;
/**
* A minimal subse... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/modelutil/SimpleList.java | Java | unknown | 1,437 |
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.modelutil;
import android.util.Pair;
import android.util.SparseArray;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotat... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/modelutil/SimpleRecyclerViewAdapter.java | Java | unknown | 5,355 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.modelutil;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.RecyclerView;
/**
* A model change processor (MCP), i.e. an implem... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/modelutil/SimpleRecyclerViewMcp.java | Java | unknown | 1,870 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.modelutil;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.RecyclerView;
/**
* A model change processor (MCP), i.e. an imple... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/modelutil/SimpleRecyclerViewMcpBase.java | Java | unknown | 3,114 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.permissions;
import android.app.Activity;
import org.chromium.base.compat.ApiHelperForM;
import java.lang.ref.WeakReference;
/**
* AndroidPermissio... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/permissions/ActivityAndroidPermissionDelegate.java | Java | unknown | 1,495 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.permissions;
/**
* Contains the functionality for interacting with the android permissions system.
*/
public interface AndroidPermissionDelegate {
... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/permissions/AndroidPermissionDelegate.java | Java | unknown | 2,588 |
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.permissions;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.Handler;
import android.os.Process;
import android.ut... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/permissions/AndroidPermissionDelegateWithRequester.java | Java | unknown | 8,237 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.permissions;
import androidx.annotation.Nullable;
/**
* Contains functionality to request Android notification permission contextually. This will res... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/permissions/ContextualNotificationPermissionRequester.java | Java | unknown | 1,931 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.permissions;
/**
* Callback for permission requests.
*/
public interface PermissionCallback {
/**
* Called upon completing a permission requ... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/permissions/PermissionCallback.java | Java | unknown | 736 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.permissions;
/**
* Utility class with constants related to permissions.
*/
public final class PermissionConstants {
/** The permission string for... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/permissions/PermissionConstants.java | Java | unknown | 909 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.permissions;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundE... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/permissions/PermissionPrefs.java | Java | unknown | 6,467 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.resources;
import android.content.Context;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.graphics.Bitmap;... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/resources/HandleViewResources.java | Java | unknown | 4,884 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.resources;
import android.graphics.Rect;
import android.graphics.RectF;
import org.chromium.ui.resources.statics.NinePatchData;
/**
* A resource tha... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/resources/LayoutResource.java | Java | unknown | 2,064 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.resources;
import android.graphics.Bitmap;
import android.graphics.Rect;
import org.chromium.ui.resources.statics.NinePatchData;
/**
* A basic resou... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/resources/Resource.java | Java | unknown | 2,106 |
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.resources;
import android.graphics.Rect;
import org.chromium.base.annotations.JNINamespace;
import org.chromium.base.annotations.NativeMethods;
import... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/resources/ResourceFactory.java | Java | unknown | 1,451 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.resources;
/**
* A class responsible for loading {@link Resource}s for the {@link ResourceManager}.
*/
public abstract class ResourceLoader {
/**... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/resources/ResourceLoader.java | Java | unknown | 3,883 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.resources;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.util.SparseArray;
impo... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/resources/ResourceManager.java | Java | unknown | 8,857 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.resources.async;
import android.util.SparseArray;
import org.chromium.base.TraceEvent;
import org.chromium.base.task.AsyncTask;
import org.chromium.ui... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/resources/async/AsyncPreloadResourceLoader.java | Java | unknown | 4,666 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.resources.dynamics;
import android.graphics.Bitmap;
import android.graphics.Rect;
import org.chromium.base.Callback;
import org.chromium.base.Observer... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/resources/dynamics/BitmapDynamicResource.java | Java | unknown | 2,203 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.resources.dynamics;
import android.graphics.Canvas;
import android.graphics.Rect;
/** Observer that's notified before and after a bitmap capture happe... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/resources/dynamics/CaptureObserver.java | Java | unknown | 742 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.resources.dynamics;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.view.View;
/** Shared... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/resources/dynamics/CaptureUtils.java | Java | unknown | 2,332 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.resources.dynamics;
import org.chromium.base.Callback;
import org.chromium.ui.resources.Resource;
/**
* A representation of a dynamic resource. The c... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/resources/dynamics/DynamicResource.java | Java | unknown | 1,403 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.resources.dynamics;
import android.util.SparseArray;
import org.chromium.base.Callback;
import org.chromium.ui.resources.Resource;
import org.chromium... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/resources/dynamics/DynamicResourceLoader.java | Java | unknown | 4,183 |
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.resources.dynamics;
import org.chromium.base.Callback;
import org.chromium.ui.resources.Resource;
/**
* A OnceCallback for observing the next {@link ... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/resources/dynamics/DynamicResourceReadyOnceCallback.java | Java | unknown | 1,493 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.resources.dynamics;
import android.graphics.Bitmap;
import android.graphics.Rect;
import org.chromium.ui.resources.Resource;
import org.chromium.ui.re... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/resources/dynamics/DynamicResourceSnapshot.java | Java | unknown | 1,442 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.resources.dynamics;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.HardwareRenderer;
import android.graphics.P... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/resources/dynamics/HardwareDraw.java | Java | unknown | 20,470 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.resources.dynamics;
import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Rect;
import a... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/resources/dynamics/HardwareDrawTest.java | Java | unknown | 5,041 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.resources.dynamics;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Rect;
import... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/resources/dynamics/SoftwareDraw.java | Java | unknown | 2,239 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.resources.dynamics;
import android.graphics.Bitmap;
import android.graphics.Rect;
import android.os.Build;
import android.view.View;
import android.vie... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/resources/dynamics/ViewResourceAdapter.java | Java | unknown | 7,994 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.resources.dynamics;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/resources/dynamics/ViewResourceInflater.java | Java | unknown | 13,740 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.resources.statics;
import android.graphics.Bitmap;
import android.graphics.NinePatch;
import android.graphics.Rect;
import java.nio.BufferUnderflowExc... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/resources/statics/NinePatchData.java | Java | unknown | 4,645 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.resources.statics;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/resources/statics/StaticResource.java | Java | unknown | 5,735 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.resources.statics;
import android.content.res.Resources;
import org.chromium.ui.resources.Resource;
import org.chromium.ui.resources.async.AsyncPreloa... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/resources/statics/StaticResourceLoader.java | Java | unknown | 1,235 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.resources.system;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Paint.Style;
i... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/resources/system/SystemResourceLoader.java | Java | unknown | 2,864 |
// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.text;
import android.content.Context;
import android.content.res.Resources;
import android.text.TextPaint;
import android.text.style.ClickableSpan;
imp... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/text/NoUnderlineClickableSpan.java | Java | unknown | 1,920 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.text;
import android.text.SpannableString;
import androidx.annotation.Nullable;
import java.util.Arrays;
/**
* Applies spans to an HTML-looking str... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/text/SpanApplier.java | Java | unknown | 7,492 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.util;
import android.accessibilityservice.AccessibilityServiceInfo;
import android.content.Context;
import android.content.res.Configuration;
import an... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/util/AccessibilityUtil.java | Java | unknown | 10,173 |
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.util;
import android.content.res.Resources.Theme;
import android.util.TypedValue;
import androidx.annotation.AttrRes;
import androidx.annotation.Color... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/util/AttrUtils.java | Java | unknown | 1,720 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.util;
import android.content.Context;
import android.content.res.Configuration;
import android.graphics.Color;
import org.chromium.base.MathUtils;
/*... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/util/ColorUtils.java | Java | unknown | 7,386 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.util;
import java.util.HashSet;
import java.util.Set;
/**
* Helper class for holding tokens, useful when multiple entities need to manipulate the sam... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/util/TokenHolder.java | Java | unknown | 1,403 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.widget;
import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.Rect;
import android.graphics.drawable.Drawable... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/widget/AnchoredPopupWindow.java | Java | unknown | 37,176 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.widget;
import android.animation.AnimatorInflater;
import android.animation.StateListAnimator;
import android.content.Context;
import android.content.r... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/widget/ButtonCompat.java | Java | unknown | 7,535 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.widget;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.widget.Checkable;
... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/widget/CheckableImageView.java | Java | unknown | 1,714 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.widget;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.text.Layout;
import android.text.... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/widget/ChromeBulletSpan.java | Java | unknown | 1,445 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.widget;
import android.content.Context;
import android.graphics.PorterDuff.Mode;
import android.util.AttributeSet;
import androidx.appcompat.widget.Ap... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/widget/ChromeImageButton.java | Java | unknown | 1,425 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.widget;
import android.content.Context;
import android.util.AttributeSet;
import androidx.appcompat.widget.AppCompatImageView;
// TODO(https://crbug.... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/widget/ChromeImageView.java | Java | unknown | 871 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.widget;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.content.Context;
import android.os.SystemCl... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/widget/LoadingView.java | Java | unknown | 5,711 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.widget;
import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.util.Attribut... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/widget/OptimizedFrameLayout.java | Java | unknown | 6,229 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.widget;
import android.graphics.Rect;
/**
* Provides a {@link Rect} object that represents a position in screen space.
*/
public class RectProvider ... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/widget/RectProvider.java | Java | unknown | 2,512 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.widget;
import android.content.res.ColorStateList;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.graphics.dr... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/widget/RippleBackgroundHelper.java | Java | unknown | 13,387 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.widget;
import android.annotation.SuppressLint;
import android.content.Context;
import android.os.Bundle;
import android.text.Layout;
import android.te... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/widget/TextViewWithClickableSpans.java | Java | unknown | 7,685 |
// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.widget;
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.widget.TextView;
impor... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/widget/TextViewWithLeading.java | Java | unknown | 1,755 |
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.widget;
import android.content.Context;
import android.text.Layout;
import android.util.AttributeSet;
import android.widget.TextView;
/**
* A TextVie... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/widget/TextViewWithTightWrap.java | Java | unknown | 2,027 |
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.widget;
import android.app.Activity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup.LayoutParams;
import a... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/widget/TextViewWithTightWrapTest.java | Java | unknown | 3,609 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.widget;
import static android.view.ViewGroup.LayoutParams.WRAP_CONTENT;
import android.annotation.SuppressLint;
import android.content.Context;
import... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/widget/Toast.java | Java | unknown | 12,657 |
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.widget;
import android.os.Build;
import android.os.Handler;
import android.text.TextUtils;
import androidx.annotation.RequiresApi;
import androidx.ann... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/widget/ToastManager.java | Java | unknown | 6,787 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.widget;
import android.annotation.SuppressLint;
import android.app.AlertDialog;
import android.content.Context;
import android.widget.PopupWindow;
/**... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/widget/UiWidgetFactory.java | Java | unknown | 2,575 |
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.widget;
import android.content.Context;
import android.util.AttributeSet;
import android.util.SparseArray;
import android.view.View;
import android.vie... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/widget/ViewLookupCachingFrameLayout.java | Java | unknown | 4,622 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.widget;
import android.graphics.Rect;
import android.view.View;
import android.view.ViewTreeObserver;
import androidx.core.view.ViewCompat;
/**
* Pr... | Zhao-PengFei35/chromium_src_4 | ui/android/java/src/org/chromium/ui/widget/ViewRectProvider.java | Java | unknown | 6,349 |
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.base;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Context;
import android.os.Build;
import android... | Zhao-PengFei35/chromium_src_4 | ui/android/javatests/src/org/chromium/ui/base/ClipboardAndroidTest.java | Java | unknown | 7,966 |
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.base;
import org.chromium.base.annotations.JNINamespace;
import org.chromium.base.annotations.NativeMethods;
/**
* JNI methods for {@link ClipboardAn... | Zhao-PengFei35/chromium_src_4 | ui/android/javatests/src/org/chromium/ui/base/ClipboardAndroidTestSupport.java | Java | unknown | 1,064 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.test.util;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.MotionEvent;
import androidx.annotation.LayoutRes;
import andro... | Zhao-PengFei35/chromium_src_4 | ui/android/javatests/src/org/chromium/ui/test/util/BlankUiTestActivity.java | Java | unknown | 3,395 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.test.util;
import androidx.test.runner.lifecycle.Stage;
import org.junit.ClassRule;
import org.junit.Rule;
import org.junit.rules.RuleChain;
import or... | Zhao-PengFei35/chromium_src_4 | ui/android/javatests/src/org/chromium/ui/test/util/BlankUiTestActivityTestCase.java | Java | unknown | 3,024 |
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.test.util;
import org.chromium.base.test.util.Restriction;
/**
* DeviceRestrictions list device form factor restrictions, that are usable with the {@... | Zhao-PengFei35/chromium_src_4 | ui/android/javatests/src/org/chromium/ui/test/util/DeviceRestriction.java | Java | unknown | 804 |
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.test.util;
import android.content.Context;
import android.text.TextUtils;
import org.chromium.base.BuildInfo;
import org.chromium.base.ThreadUtils;
im... | Zhao-PengFei35/chromium_src_4 | ui/android/javatests/src/org/chromium/ui/test/util/DeviceRestrictionSkipCheck.java | Java | unknown | 1,478 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.test.util;
import android.os.Build;
import android.os.IBinder;
import android.provider.Settings;
import androidx.test.InstrumentationRegistry;
import... | Zhao-PengFei35/chromium_src_4 | ui/android/javatests/src/org/chromium/ui/test/util/DisableAnimationsTestRule.java | Java | unknown | 5,715 |
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.test.util;
import org.mockito.Mockito;
import org.mockito.stubbing.Answer;
import org.mockito.stubbing.Stubber;
import org.chromium.base.Callback;
/*... | Zhao-PengFei35/chromium_src_4 | ui/android/javatests/src/org/chromium/ui/test/util/MockitoHelper.java | Java | unknown | 2,096 |
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.test.util;
import androidx.appcompat.app.AppCompatDelegate;
import org.chromium.base.ThreadUtils;
import org.chromium.base.test.params.ParameterProvid... | Zhao-PengFei35/chromium_src_4 | ui/android/javatests/src/org/chromium/ui/test/util/NightModeTestUtils.java | Java | unknown | 1,896 |
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.test.util;
import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.text.TextUtils;
import an... | Zhao-PengFei35/chromium_src_4 | ui/android/javatests/src/org/chromium/ui/test/util/RenderTestRule.java | Java | unknown | 22,281 |
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.test.util;
/**
* Disable if enums that are usable with the @DisableIf in layers depending on //ui.
*
* e.g. @DisableIf.Device(type = {UiDisableIf.PH... | Zhao-PengFei35/chromium_src_4 | ui/android/javatests/src/org/chromium/ui/test/util/UiDisableIf.java | Java | unknown | 734 |
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.test.util;
import android.content.Context;
import android.text.TextUtils;
import org.chromium.base.ThreadUtils;
import org.chromium.base.test.util.Dis... | Zhao-PengFei35/chromium_src_4 | ui/android/javatests/src/org/chromium/ui/test/util/UiDisableIfSkipCheck.java | Java | unknown | 1,512 |
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.test.util;
import org.chromium.base.test.util.Restriction;
/**
* UiRestrictions list form factor restrictions, that are usable with
* the {@link Res... | Zhao-PengFei35/chromium_src_4 | ui/android/javatests/src/org/chromium/ui/test/util/UiRestriction.java | Java | unknown | 764 |
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.test.util;
import android.content.Context;
import android.text.TextUtils;
import org.chromium.base.ThreadUtils;
import org.chromium.base.test.util.Res... | Zhao-PengFei35/chromium_src_4 | ui/android/javatests/src/org/chromium/ui/test/util/UiRestrictionSkipCheck.java | Java | unknown | 1,190 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.test.util;
import static org.hamcrest.Matchers.greaterThan;
import static org.hamcrest.Matchers.hasSize;
import static org.hamcrest.Matchers.instanceOf;... | Zhao-PengFei35/chromium_src_4 | ui/android/javatests/src/org/chromium/ui/test/util/ViewUtils.java | Java | unknown | 11,835 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.test.util.modaldialog;
import org.mockito.Mockito;
import org.chromium.ui.modaldialog.ModalDialogManager;
import org.chromium.ui.modaldialog.ModalDial... | Zhao-PengFei35/chromium_src_4 | ui/android/javatests/src/org/chromium/ui/test/util/modaldialog/FakeModalDialogManager.java | Java | unknown | 1,518 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.test.util.modelutil;
import static org.junit.Assert.assertTrue;
import android.view.View;
import org.chromium.base.Callback;
import org.chromium.base... | Zhao-PengFei35/chromium_src_4 | ui/android/javatests/src/org/chromium/ui/test/util/modelutil/FakeViewProvider.java | Java | unknown | 2,033 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static or... | Zhao-PengFei35/chromium_src_4 | ui/android/junit/src/org/chromium/ui/AsyncViewProviderTest.java | Java | unknown | 5,111 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import android.view.LayoutInflater;
import android.view.View;... | Zhao-PengFei35/chromium_src_4 | ui/android/junit/src/org/chromium/ui/AsyncViewStubTest.java | Java | unknown | 2,864 |
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.base;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import org... | Zhao-PengFei35/chromium_src_4 | ui/android/junit/src/org/chromium/ui/base/ApplicationViewportInsetSupplierTest.java | Java | unknown | 15,333 |
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.base;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import stat... | Zhao-PengFei35/chromium_src_4 | ui/android/junit/src/org/chromium/ui/base/ClipboardTest.java | Java | unknown | 5,977 |
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.base;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyBoolean;
import static org.mockito.ArgumentMatchers... | Zhao-PengFei35/chromium_src_4 | ui/android/junit/src/org/chromium/ui/base/EventForwarderTest.java | Java | unknown | 7,676 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.base;
import static org.junit.Assert.assertEquals;
import android.graphics.RectF;
import android.view.DragEvent;
import android.view.MotionEvent;
imp... | Zhao-PengFei35/chromium_src_4 | ui/android/junit/src/org/chromium/ui/base/EventOffsetHandlerTest.java | Java | unknown | 2,397 |
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.base;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import andro... | Zhao-PengFei35/chromium_src_4 | ui/android/junit/src/org/chromium/ui/base/LocalizationUtilsTest.java | Java | unknown | 2,216 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.base;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import static org.mockito.Mockito.doReturn;
import static... | Zhao-PengFei35/chromium_src_4 | ui/android/junit/src/org/chromium/ui/base/MimeTypeUtilsTest.java | Java | unknown | 5,055 |
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.base;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static... | Zhao-PengFei35/chromium_src_4 | ui/android/junit/src/org/chromium/ui/base/SelectFileDialogTest.java | Java | unknown | 28,781 |
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.base;
import androidx.appcompat.app.AppCompatActivity;
/**
* Activity used in {@code ui/base} tests.
* <p>
* This activity is declared in {@code ui... | Zhao-PengFei35/chromium_src_4 | ui/android/junit/src/org/chromium/ui/base/TestActivity.java | Java | unknown | 416 |
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.dragdrop;
import android.content.Context;
import androidx.test.core.app.ApplicationProvider;
import org.junit.Assert;
import org.junit.Test;
import o... | Zhao-PengFei35/chromium_src_4 | ui/android/junit/src/org/chromium/ui/dragdrop/AnimatedImageDragShadowBuilderUnitTest.java | Java | unknown | 12,000 |