Searched defs:of (Results 1 - 22 of 22) sorted by relevance

/frameworks/support/lifecycle/extensions/src/main/java/androidx/lifecycle/
H A DViewModelStores.java6 * You may obtain a copy of the License at
39 * Returns the {@link ViewModelStore} of the given activity.
48 public static ViewModelStore of(@NonNull FragmentActivity activity) { method in class:ViewModelStores
53 * Returns the {@link ViewModelStore} of the given fragment.
62 public static ViewModelStore of(@NonNull Fragment fragment) { method in class:ViewModelStores
H A DViewModelProviders.java6 * You may obtain a copy of the License at
59 * Creates a {@link ViewModelProvider}, which retains ViewModels while a scope of given
69 public static ViewModelProvider of(@NonNull Fragment fragment) { method in class:ViewModelProviders
70 return of(fragment, null);
74 * Creates a {@link ViewModelProvider}, which retains ViewModels while a scope of given Activity
84 public static ViewModelProvider of(@NonNull FragmentActivity activity) { method in class:ViewModelProviders
85 return of(activity, null);
89 * Creates a {@link ViewModelProvider}, which retains ViewModels while a scope of given
100 public static ViewModelProvider of(@NonNull Fragment fragment, @Nullable Factory factory) { method in class:ViewModelProviders
109 * Creates a {@link ViewModelProvider}, which retains ViewModels while a scope of give
120 public static ViewModelProvider of(@NonNull FragmentActivity activity, method in class:ViewModelProviders
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DIntPair.java6 * You may obtain a copy of the License at
20 * Utilities for treating a {@code long} as a pair of {@code int}s
27 public static long of(int first, int second) { method in class:IntPair
/frameworks/base/graphics/java/android/graphics/
H A DInsets.java6 * You may obtain a copy of the License at
21 * edges of a Rectangle. By convention, positive values move edges towards the
22 * centre of the rectangle.
55 public static Insets of(int left, int top, int right, int bottom) { method in class:Insets
69 public static Insets of(Rect r) { method in class:Insets
70 return (r == null) ? NONE : of(r.left, r.top, r.right, r.bottom);
/frameworks/base/core/java/android/util/
H A DProperty.java6 * You may obtain a copy of the License at
22 * methods can be implemented in terms of the private fields of the host object, or via "setter" and
38 * optional public <code>setName()</code> method which takes a value of the same type
41 * optional public <code>setName()</code> method which takes a value of the same type
46 * <p>If either of the get/is method alternatives is found on the class, but an appropriate
54 public static <T, V> Property<T, V> of(Class<T> hostType, Class<V> valueType, String name) { method in class:Property
70 * allows querying the underlying value but not setting it. For example, the {@link #of(Class,
/frameworks/base/tests/net/java/android/net/
H A DMacAddressTest.java6 * You may obtain a copy of the License at
41 static AddrTypeTestCase of(int expectedType, int... addr) { method in class:MacAddressTest.AddrTypeTestCase
52 AddrTypeTestCase.of(MacAddress.TYPE_UNKNOWN),
53 AddrTypeTestCase.of(MacAddress.TYPE_UNKNOWN, 0),
54 AddrTypeTestCase.of(MacAddress.TYPE_UNKNOWN, 1, 2, 3, 4, 5),
55 AddrTypeTestCase.of(MacAddress.TYPE_UNKNOWN, 1, 2, 3, 4, 5, 6, 7),
56 AddrTypeTestCase.of(MacAddress.TYPE_UNICAST, 0xa0, 0xb0, 0xc0, 0xd0, 0xe0, 0xf0),
57 AddrTypeTestCase.of(MacAddress.TYPE_BROADCAST, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff),
58 AddrTypeTestCase.of(MacAddress.TYPE_MULTICAST, 1, 2, 3, 4, 5, 6),
59 AddrTypeTestCase.of(MacAddres
[all...]
/frameworks/base/core/java/android/app/admin/
H A DSystemUpdateInfo.java6 * You may obtain a copy of the License at
83 public static SystemUpdateInfo of(long receivedTime) { method in class:SystemUpdateInfo
90 public static SystemUpdateInfo of(long receivedTime, boolean isSecurityPatch) { method in class:SystemUpdateInfo
/frameworks/layoutlib/bridge/src/android/graphics/drawable/
H A DAnimatedVectorDrawable_Delegate.java6 * You may obtain a copy of the License at
41 * Delegate used to provide new implementation of a select few methods of {@link
44 * Through the layoutlib_create tool, the original methods of AnimatedVectorDrawable have been
45 * replaced by calls to methods of the same name in this delegate class.
95 return sHolders.addNewDelegate(FloatPropertySetter.of(setter, startValue,
113 return sHolders.addNewDelegate(IntPropertySetter.of(setter, startValue,
123 return sHolders.addNewDelegate(FloatPropertySetter.of(setter, startValue,
132 return sHolders.addNewDelegate(FloatPropertySetter.of(renderer::setRootAlpha,
222 * Class that allows setting a value and holds the range of value
269 private static PropertySetter of(Consumer<Integer> valueSetter, int... values) { method in class:AnimatedVectorDrawable_Delegate.IntPropertySetter
286 private static PropertySetter of(Consumer<Float> valueSetter, float... values) { method in class:AnimatedVectorDrawable_Delegate.FloatPropertySetter
[all...]
/frameworks/av/media/libmedia/
H A Dmediarecorder.cpp7 ** You may obtain a copy of the License at
180 status_t MediaRecorder::setOutputFormat(int of) argument
182 ALOGV("setOutputFormat(%d)", of);
192 && of >= OUTPUT_FORMAT_AUDIO_ONLY_START //first non-video output format
193 && of < OUTPUT_FORMAT_AUDIO_ONLY_END) {
195 " and incompatible with video recording", of);
199 status_t ret = mMediaRecorder->setOutputFormat(of);
287 // binder calls, the server-side of the inter-process function call
321 // binder calls, the server-side of the inter-process function call
449 // of th
[all...]
H A DIMediaRecorder.cpp7 ** You may obtain a copy of the License at
152 status_t setOutputFormat(int of) argument
154 ALOGV("setOutputFormat(%d)", of);
157 data.writeInt32(of);
506 int of = data.readInt32(); local
507 reply->writeInt32(setOutputFormat(of));
/frameworks/av/media/libmediaplayerservice/
H A DMediaRecorderClient.cpp6 ** You may obtain a copy of the License at
131 status_t MediaRecorderClient::setOutputFormat(int of) argument
133 ALOGV("setOutputFormat(%d)", of);
139 return mRecorder->setOutputFormat((output_format)of);
H A DStagefrightRecorder.cpp6 * You may obtain a copy of the License at
143 // we run as part of the media player service; what we really want to
183 // duration information (recorded, paused, # of pauses)
218 // The client side of mediaserver asks it to create a SurfaceMediaSource
260 status_t StagefrightRecorder::setOutputFormat(output_format of) { argument
261 ALOGV("setOutputFormat: %d", of);
262 if (of < OUTPUT_FORMAT_DEFAULT ||
263 of >= OUTPUT_FORMAT_LIST_END) {
264 ALOGE("Invalid output format: %d", of);
268 if (of
[all...]
/frameworks/base/core/java/android/os/
H A DUserHandle.java6 * You may obtain a copy of the License at
27 * Representation of a user on the device.
33 * @hide Range of uids allocated for a user.
46 /** @hide A user handle to indicate the current user of the device */
51 * to the caller's user instead of failing with a security exception */
56 * to the caller's user instead of failing with a security exception */
63 * @hide A user id constant to indicate the "owner" user of the device
71 * @hide A user handle to indicate the primary/owner user of the device
78 /** @hide A user id constant to indicate the "system" user of the device */
81 /** @hide A user serial constant to indicate the "system" user of th
203 public static UserHandle of(@UserIdInt int userId) { method in class:UserHandle
[all...]
/frameworks/base/services/core/java/com/android/server/hdmi/
H A DHdmiCecMessageBuilder.java6 * You may obtain a copy of the License at
33 * @param src source address of command
34 * @param dest destination address of command
35 * @param body body of message. It includes opcode.
38 static HdmiCecMessage of(int src, int dest, byte[] body) { method in class:HdmiCecMessageBuilder
45 * Build &lt;Feature Abort&gt; command. &lt;Feature Abort&gt; consists of
48 * @param src source address of command
49 * @param dest destination address of command
51 * @param reason reason of feature abort
66 * @param src source address of comman
[all...]
H A DHdmiCecLocalDevice.java6 * You may obtain a copy of the License at
49 // Normal actions timeout is 2s but some of them would have several sequence of timeout.
74 public static ActiveSource of(ActiveSource source) { method in class:HdmiCecLocalDevice.ActiveSource
77 public static ActiveSource of(int logical, int physical) { method in class:HdmiCecLocalDevice.ActiveSource
115 // Logical address of the active source.
119 // Active routing path. Physical address of the active source but not all the time, such as
128 // A collection of FeatureAction.
163 // Factory method that returns HdmiCecLocalDevice of corresponding type.
183 * Called once a logical address of th
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_MediaRecorder.cpp6 * You may obtain a copy of the License at
230 android_media_MediaRecorder_setOutputFormat(JNIEnv *env, jobject thiz, jint of) argument
232 ALOGV("setOutputFormat(%d)", of);
233 if (of < OUTPUT_FORMAT_DEFAULT || of >= OUTPUT_FORMAT_LIST_END) {
242 process_media_recorder_call(env, mr->setOutputFormat(of), "java/lang/RuntimeException", "setOutputFormat failed.");
547 // first time an instance of this class is used.
598 jniThrowException(env, "java/lang/RuntimeException", "Out of memory");
/frameworks/base/services/core/java/com/android/server/pm/
H A DShortcutUser.java6 * You may obtain a copy of the License at
78 public static PackageWithUser of(int userId, String packageName) { method in class:ShortcutUser.PackageWithUser
82 public static PackageWithUser of(ShortcutPackageItem spi) { method in class:ShortcutUser.PackageWithUser
191 mLaunchers.put(PackageWithUser.of(launcher.getPackageUserId(),
198 return mLaunchers.remove(PackageWithUser.of(packageUserId, packageName));
223 final PackageWithUser key = PackageWithUser.of(launcherUserId, packageName);
275 * that's a less of an issue because for the launcher we report shortcut changes with
486 // Note, a restore happens only at the end of setup wizard. At this point, no apps are
/frameworks/base/core/java/com/android/internal/widget/
H A DLockPatternView.java6 * You may obtain a copy of the License at
61 * Displays and detects the user's unlock attempt, which is a drag of a finger
62 * across 9 regions of the screen.
64 * Is also capable of displaying a static pattern in "in progress", "wrong" or
69 private static final int ASPECT_SQUARE = 0; // View will be the minimum of width/height
70 private static final int ASPECT_LOCK_WIDTH = 1; // Fixed width; height will be minimum of (w,h)
71 private static final int ASPECT_LOCK_HEIGHT = 2; // Fixed height; width will be minimum of (w,h)
86 * How many milliseconds we spend animating each circle of a lock pattern
88 * constant * the length of the pattern to complete.
105 * Lookup table for the circles of th
191 public static Cell of(int row, int column) { method in class:LockPatternView.Cell
[all...]
/frameworks/base/core/java/android/widget/
H A DGridLayout.java6 * You may obtain a copy of the License at
64 * The grid is composed of a set of infinitely thin lines that separate the
68 * through {@code N} inclusive. Regardless of how GridLayout is
69 * configured, grid index {@code 0} is fixed to the leading edge of the
78 * Each spec defines the set of rows or columns that are to be
79 * occupied; and how children should be aligned within the resulting group of cells.
81 * not prevent children being defined to occupy the same cell or group of cells.
87 * If a child does not specify the row and column indices of the cell it
95 * Space between children may be specified either by using instances of th
2279 public static <K, V> Assoc<K, V> of(Class<K> keyType, Class<V> valueType) { method in class:GridLayout.Assoc
[all...]
/frameworks/support/gridlayout/src/main/java/androidx/gridlayout/widget/
H A DGridLayout.java6 * You may obtain a copy of the License at
62 * The grid is composed of a set of infinitely thin lines that separate the
66 * through {@code N} inclusive. Regardless of how GridLayout is
67 * configured, grid index {@code 0} is fixed to the leading edge of the
76 * Each spec defines the set of rows or columns that are to be
77 * occupied; and how children should be aligned within the resulting group of cells.
79 * not prevent children being defined to occupy the same cell or group of cells.
85 * If a child does not specify the row and column indices of the cell it
93 * Space between children may be specified either by using instances of th
2166 public static <K, V> Assoc<K, V> of(Class<K> keyType, Class<V> valueType) { method in class:GridLayout.Assoc
[all...]
/frameworks/base/services/core/java/com/android/server/policy/
H A DPhoneWindowManager.java6 * You may obtain a copy of the License at
300 * introduces a new method suffix, Lp, for an internal lock of the
303 * of both of those when held.
382 * of the screen to change.
412 /* Table of Application Launch keys. Maps from key codes to intent categories.
414 * These are special keys that are used to launch particular kinds of applications,
415 * such as a web browser. HID defines nearly a hundred of them in the Consumer (0x0C)
437 /** Amount of time (in milliseconds) to wait for windows drawn before powering on. */
440 /** Amount of tim
4805 layoutStatusBar(DisplayFrames displayFrames, Rect pf, Rect df, Rect of, Rect vf, Rect dcf, int sysui, boolean isKeyguardShowing) argument
5004 setAttachedWindowFrames(WindowState win, int fl, int adjust, WindowState attached, boolean insetDecors, Rect pf, Rect df, Rect of, Rect cf, Rect vf, DisplayFrames displayFrames) argument
5554 layoutWallpaper(DisplayFrames displayFrames, Rect pf, Rect df, Rect of, Rect cf) argument
[all...]
/frameworks/data-binding/prebuilds/1.0-rc0/
H A Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/databinding/Bindable.class Bindable. ...

Completed in 790 milliseconds