Searched defs:from (Results 51 - 75 of 115) sorted by relevance

12345

/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
H A DGLCanvas.java75 // Pops from the top of the stack as current configuration state (matrix,
81 // Draws a line using the specified paint from (x1, y1) to (x2, y2).
85 // Draws a rectangle using the specified paint from (x1, y1) to (x2, y2).
107 // from * (1 - ratio) + to * ratio
109 public abstract void drawMixed(BasicTexture from, int toColor, argument
113 // rectangle. The actual color used is from * (1 - ratio) + to * ratio.
116 public abstract void drawMixed(BasicTexture from, int toColor, argument
119 // Unloads the specified texture from the canvas. The resource allocated
121 // to the unloaded state. This function should be called only from
/frameworks/base/services/core/java/com/android/server/twilight/
H A DTwilightService.java263 private static boolean hasMoved(Location from, Location to) { argument
268 if (from == null) {
273 if (to.getElapsedRealtimeNanos() < from.getElapsedRealtimeNanos()) {
278 float distance = from.distanceTo(to);
281 float totalAccuracy = from.getAccuracy() + to.getAccuracy();
397 // enable passive provider to receive updates from location fixes (gps
468 Slog.d(TAG, "Estimated location from timezone: " + location);
537 // Leave at 10 min for now (one from above).
/frameworks/opt/net/wifi/service/jni/
H A Djni_helper.cpp665 void JNIHelper::setByteArrayRegion(jbyteArray array, int from, int to, const jbyte *bytes) { argument
666 mEnv->SetByteArrayRegion(array, from, to, bytes);
669 void JNIHelper::setIntArrayRegion(jintArray array, int from, int to, const jint *ints) { argument
670 mEnv->SetIntArrayRegion(array, from, to, ints);
673 void JNIHelper::setLongArrayRegion(jlongArray array, int from, int to, const jlong *longs) { argument
674 mEnv->SetLongArrayRegion(array, from, to, longs);
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/
H A DTarget.java125 private Target(Target from) { argument
126 System.arraycopy(from.mSaturationTargets, 0, mSaturationTargets, 0,
128 System.arraycopy(from.mLightnessTargets, 0, mLightnessTargets, 0,
130 System.arraycopy(from.mWeights, 0, mWeights, 0, mWeights.length);
136 @FloatRange(from = 0, to = 1)
144 @FloatRange(from = 0, to = 1)
152 @FloatRange(from = 0, to = 1)
160 @FloatRange(from = 0, to = 1)
168 @FloatRange(from = 0, to = 1)
176 @FloatRange(from
[all...]
H A DPalette.java40 * A helper class to extract prominent colors from an image.
42 * A number of colors with different profiles are extracted from the image:
51 * These can be retrieved from the appropriate getter method.
63 * Palette p = Palette.from(bitmap).generate();
66 * Palette.from(bitmap).generate(new PaletteAsyncListener() {
99 public static Builder from(Bitmap bitmap) { method in class:Palette
104 * Generate a {@link Palette} from the pre-generated list of {@link Palette.Swatch} swatches.
105 * This is useful for testing, or if you want to resurrect a {@link Palette} instance from a
108 public static Palette from(List<Swatch> swatches) { method in class:Palette
117 return from(bitma
[all...]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DAdapterHelper.java540 boolean onItemRangeMoved(int from, int to, int itemCount) { argument
541 if (from == to) {
547 mPendingUpdates.add(obtainUpdateOp(UpdateOp.MOVE, from, to, null));
775 void offsetPositionsForMove(int from, int to); argument
/frameworks/av/media/libstagefright/
H A DNuCachedSource2.cpp52 void copy(size_t from, void *data, size_t size);
139 void PageCache::copy(size_t from, void *data, size_t size) { argument
140 ALOGV("copy from %zu size %zu", from, size);
146 CHECK_LE(from + size, mTotalSize);
150 while (from >= offset + (*it)->mSize) {
155 size_t delta = from - offset;
274 // explicitly disconnect from the source, to allow any
524 // If the request can be completely satisfied from the cache, do so.
711 ALOGE("Failed to parse cache parameters from '
[all...]
H A DStagefrightMetadataRetriever.cpp310 // we don't expect an output from codec config buffer
415 ALOGE("Unable to convert from format 0x%08x to RGB565", srcFormat);
567 int from; member in struct:android::Map
595 if (meta->findCString(kMap[i].from, &value)) {
/frameworks/av/media/libstagefright/foundation/
H A DAMessage.cpp429 const Item *from = &mItems[i]; local
432 to->setName(from->mName, from->mNameLength);
433 to->mType = from->mType;
435 switch (from->mType) {
439 new AString(*from->u.stringValue);
446 to->u.refValue = from->u.refValue;
454 static_cast<AMessage *>(from->u.refValue)->dup();
463 to->u = from->u;
657 ALOGE("Failed reading string value from
[all...]
/frameworks/av/media/libstagefright/rtsp/
H A DARTSPConnection.cpp158 // Split of user:pass@ from hostname.
824 const char *from, unsigned long *x) {
826 *x = strtoul(from, &end, 10);
828 if (end == from || *end != '\0') {
823 ParseSingleUnsignedLong( const char *from, unsigned long *x) argument
/frameworks/base/core/java/android/content/
H A DUndoManager.java690 int findPrevState(ArrayList<UndoState> states, UndoOwner[] owners, int from) { argument
693 if (from == -1) {
694 from = N-1;
696 if (from >= N) {
700 return from;
703 while (from >= 0) {
704 UndoState state = states.get(from);
706 return from;
708 from--;
714 int findNextState(ArrayList<UndoState> states, UndoOwner[] owners, int from) { argument
[all...]
/frameworks/base/core/java/android/view/
H A DLayoutInflater.java65 * it only works with an XmlPullParser returned from a compiled resource
79 * This field should be made private, so it is hidden from the SDK.
134 * Hook you can supply that is called when inflating from a LayoutInflater.
204 * Views; most importantly, this supplies the theme from which the default
228 * Obtains the LayoutInflater from the given context.
230 public static LayoutInflater from(Context context) { method in class:LayoutInflater
366 * Inflate a new view hierarchy from the specified xml resource. Throws
381 * Inflate a new view hierarchy from the specified xml node. Throws
401 * Inflate a new view hierarchy from the specified xml resource. Throws
420 Log.d(TAG, "INFLATING from resourc
[all...]
/frameworks/base/core/java/com/android/internal/os/
H A DBatteryStatsHelper.java602 private void aggregateSippers(BatterySipper bs, List<BatterySipper> from, String tag) { argument
603 for (int i=0; i<from.size(); i++) {
604 BatterySipper wbs = from.get(i);
636 * We do per-app blaming of WiFi activity. If energy info is reported from the controller,
/frameworks/base/libs/hwui/utils/
H A DVectorDrawableUtils.cpp89 const PathData& from, const PathData& to, float fraction) {
90 outData->points.resize(from.points.size());
91 outData->verbSizes = from.verbSizes;
92 outData->verbs = from.verbs;
94 for (size_t i = 0; i < from.points.size(); i++) {
95 outData->points[i] = from.points[i] * (1 - fraction) + to.points[i] * fraction;
123 // Taken from equations at: http://spaceroots.org/documents/ellipse/node8.html
181 /* Convert rotation angle from degrees to radians */
330 case 'l': // lineto - Draw a line from the current point (relative)
335 case 'L': // lineto - Draw a line from th
88 interpolatePaths(PathData* outData, const PathData& from, const PathData& to, float fraction) argument
[all...]
/frameworks/base/media/java/android/media/session/
H A DPlaybackState.java123 * Indicates this session supports the play from media id command.
130 * Indicates this session supports the play from search command.
144 * Indicates this session supports the play from URI command.
158 * Indicates this session supports the prepare from media id command.
165 * Indicates this session supports the prepare from search command.
172 * Indicates this session supports the prepare from URI command.
390 * point that can be reached from the current position using only buffered
836 * Creates a builder with the same initial values as those in the from
839 * @param from The state to use for initializing the builder.
841 public Builder(PlaybackState from) { argument
[all...]
/frameworks/base/rs/java/android/renderscript/
H A DScriptGroup.java33 * Inside a script group, outputs from one kernel can be passed to another kernel as inputs.
56 ConnectLine(Type t, Script.KernelID from, Script.KernelID to) { argument
57 mFrom = from;
62 ConnectLine(Type t, Script.KernelID from, Script.FieldID to) { argument
63 mFrom = from;
475 * Allocation provided from outside of the ScriptGroup.
544 * must come from different Script objects. Additionally, all kernels
570 // do a DFS from original node, looking for original node
697 * @param from The source for the connection.
702 public Builder addConnection(Type t, Script.KernelID from, Scrip argument
737 addConnection(Type t, Script.KernelID from, Script.KernelID to) argument
[all...]
/frameworks/compile/mclinker/lib/LD/
H A DELFObjectWriter.cpp210 // ELF header must start from 0x0
582 // FIXME: We should get the entsize from input since the size of each
659 const char* from = region_frag.getRegion().begin(); local
660 memcpy(pRegion.begin() + cur_offset, from, size);
/frameworks/native/libs/input/
H A DInput.cpp39 void InputEvent::initialize(const InputEvent& from) { argument
40 mDeviceId = from.mDeviceId;
41 mSource = from.mSource;
76 void KeyEvent::initialize(const KeyEvent& from) { argument
77 InputEvent::initialize(from);
78 mAction = from.mAction;
79 mFlags = from.mFlags;
80 mKeyCode = from.mKeyCode;
81 mScanCode = from.mScanCode;
82 mMetaState = from
[all...]
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DHWComposer.cpp152 void HWComposer::validateChange(HWC2::Composition from, HWC2::Composition to) { argument
154 switch (from) {
172 ALOGE("Invalid layer type change: %s --> %s", to_string(from).c_str(),
236 ALOGW("Ignoring duplicate VSYNC event from HWC (t=%" PRId64 ")",
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
H A DInformationElementUtil.java74 public void from(InformationElement ie) { method in class:InformationElementUtil.BssLoad
116 public void from(InformationElement ie) { method in class:InformationElementUtil.HtOperation
150 public void from(InformationElement ie) { method in class:InformationElementUtil.VhtOperation
167 public void from(InformationElement ie) { method in class:InformationElementUtil.Interworking
201 public void from(InformationElement ie) { method in class:InformationElementUtil.RoamingConsortium
245 public void from(InformationElement ie) { method in class:InformationElementUtil.Vsa
290 public void from(InformationElement ie) { method in class:InformationElementUtil.ExtendedCapabilities
309 * from HAL. It parses the ieee beacon's capability field, WPA and RSNE IE as per spec,
562 * only be present in scan results that are derived from a Beacon Frame, not from th
589 public void from(InformationElement ie) { method in class:InformationElementUtil.TrafficIndicationMap
732 public void from(InformationElement ie) { method in class:InformationElementUtil.SupportedRates
[all...]
/frameworks/support/design/src/android/support/design/widget/
H A DBottomSheetBehavior.java71 * @param slideOffset The new offset of this bottom sheet within its range, from 0 to 1
72 * when it is moving upward, and from 0 to -1 when it moving downward.
157 * Default constructor for inflating BottomSheetBehaviors from layout.
731 public static <V extends View> BottomSheetBehavior<V> from(V view) { method in class:BottomSheetBehavior
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DPagingIndicator.java200 private Animator createDotAlphaAnimator(float from, float to) { argument
201 ObjectAnimator animator = ObjectAnimator.ofFloat(null, DOT_ALPHA, from, to);
207 private Animator createDotDiameterAnimator(float from, float to) { argument
208 ObjectAnimator animator = ObjectAnimator.ofFloat(null, DOT_DIAMETER, from, to);
/frameworks/support/v4/java/android/support/v4/app/
H A DNotificationManagerCompat.java51 * <p>To use this class, call the static function {@link #from} to get a
143 public static NotificationManagerCompat from(Context context) { method in class:NotificationManagerCompat
312 * Returns whether notifications from the calling package are not blocked.
319 * Returns the user specified importance for notifications from the calling package.
335 // Parse the string again if it is different from the last time this method was called.
401 * from any thread.
471 Log.d(TAG, "Disconnected from service " + componentName);
547 * Ensure we have unbound from a service.
H A DShareCompat.java50 * method {@link IntentBuilder#from(Activity)}.
57 * to call out the app that the content was shared from.
164 * Retrieve the name of the package that launched calledActivity from a share intent.
184 * Retrieve the ComponentName of the activity that launched calledActivity from a share intent.
272 * Create a new IntentBuilder for launching a sharing action from launchingActivity.
274 * @param launchingActivity Activity that the share will be launched from
277 public static IntentBuilder from(Activity launchingActivity) { method in class:ShareCompat.IntentBuilder
650 * from shared posts if desired.</p>
674 public static IntentReader from(Activity activity) { method in class:ShareCompat.IntentReader
861 * was not started for a result, IntentBuilder will read this from extr
[all...]
/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/widget/
H A DOpReorderTest.java261 int from = nextInt(random, updatedItemCount);
265 } while (to == from);
266 mv(from, to);
291 UpdateOp mv(int from, int to) { argument
292 return record(new UpdateOp(MOVE, from, to, null));

Completed in 3909 milliseconds

12345