Home
last modified time | relevance | path

Searched refs:f (Results 1 – 25 of 88) sorted by relevance

1234

/development/gsi/gsi_util/gsi_util/utils/tests/
Dfile_utils_unittest.py31 prefix='prefix', suffix='suffix') as f:
32 self.assertTrue(os.path.exists(f))
33 self.assertEqual(0, os.path.getsize(f))
34 self.assertRegexpMatches(os.path.basename(f), r'prefix.+suffix')
35 self.assertEqual(tempfile.gettempdir(), os.path.dirname(f))
36 self.assertFalse(os.path.exists(f))
39 with file_utils.UnopenedTemporaryFile() as f:
40 self.assertTrue(os.path.exists(f))
41 os.unlink(f)
42 self.assertFalse(os.path.exists(f))
[all …]
/development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/cardstream/
DDefaultCardStreamAnimator.java37 PropertyValuesHolder.ofFloat("alpha", 1.f, 0.f), in getDisappearingAnimator()
38 PropertyValuesHolder.ofFloat("scaleX", 1.f, 0.f), in getDisappearingAnimator()
39 PropertyValuesHolder.ofFloat("scaleY", 1.f, 0.f), in getDisappearingAnimator()
40 PropertyValuesHolder.ofFloat("rotation", 0.f, 270.f)); in getDisappearingAnimator()
55 PropertyValuesHolder.ofFloat("alpha", 0.f, 1.f), in getAppearingAnimator()
56 PropertyValuesHolder.ofFloat("translationY", outPoint.y / 2.f, 0.f), in getAppearingAnimator()
57 PropertyValuesHolder.ofFloat("rotation", -45.f, 0.f)); in getAppearingAnimator()
68 PropertyValuesHolder.ofFloat("alpha", 0.5f, 1.f), in getInitalAnimator()
69 PropertyValuesHolder.ofFloat("rotation", 60.f, 0.f)); in getInitalAnimator()
81 float fractionCovered = 1.f - (deltaXAbs / view.getWidth()); in getSwipeInAnimator()
[all …]
DCardStreamLinearLayout.java81 mDownX = 0.f;
82 mDownY = 0.f;
89 mDownX = mDownX == 0.f ? x : mDownX;
90 mDownY = mDownY == 0.f ? x : mDownY;
120 mDownX = 0.f;
121 mDownY = 0.f;
176 view.setAlpha(0.f);
305 child.setAlpha(1.f - fractionCovered); in swipeView()
308 child.setRotationY(-15.f * fractionCovered); in swipeView()
310 child.setRotationY(15.f * fractionCovered); in swipeView()
[all …]
DCardActionButton.java56 ViewCompat.setElevation(this, 8.f); in onTouchEvent()
64 animate().scaleX(1.f).scaleY(1.f).setDuration(50) in onTouchEvent()
67 ViewCompat.setElevation(this, 0.f); in onTouchEvent()
DCardLayout.java32 private float mDownX = 0.f;
33 private float mDownY = 0.f;
34 private float mTouchSlop = 0.f;
57 mTouchSlop = ViewConfiguration.get(getContext()).getScaledTouchSlop() * 2.f; in init()
/development/samples/Vault/src/com/example/android/vault/
DEncryptedDocument.java136 final RandomAccessFile f = new RandomAccessFile(mFile, "r"); in readMetadata() local
138 assertMagic(f); in readMetadata()
142 readSection(f, metaOut); in readMetadata()
161 f.close(); in readMetadata()
180 final RandomAccessFile f = new RandomAccessFile(mFile, "r"); in readContent() local
182 assertMagic(f); in readContent()
184 if (f.length() <= CONTENT_OFFSET) { in readContent()
189 f.seek(CONTENT_OFFSET); in readContent()
190 readSection(f, new FileOutputStream(contentOut.getFileDescriptor())); in readContent()
193 f.close(); in readContent()
[all …]
/development/testrunner/test_defs/
Dnative_test.py70 for f in host_list:
71 if run_command.RunHostCommand(f) != 0:
72 logger.Log("%s... failed" % f)
75 if run_command.RunHostCommand(f, valgrind=True) == 0:
76 logger.Log("%s... ok\t\t[valgrind: ok]" % f)
78 logger.Log("%s... ok\t\t[valgrind: failed]" % f)
80 logger.Log("%s... ok\t\t[valgrind: missing]" % f)
84 for f in target_list:
85 full_path = os.path.join(os.sep, "data", "nativetest", f)
92 logger.Log("%s... %s" % (f, success and "ok" or "failed"))
[all …]
/development/samples/RenderScript/Levels/src/com/android/rs/levels/
DLevelsDalvikActivity.java62 mOverInWMinInB = 1.f / mInWMinInB; in setLevels()
195 if (r < 0.f) r = 0.f; in filter()
196 if (r > 255.f) r = 255.f; in filter()
197 if (g < 0.f) g = 0.f; in filter()
198 if (g > 255.f) g = 255.f; in filter()
199 if (b < 0.f) b = 0.f; in filter()
200 if (b > 255.f) b = 255.f; in filter()
216 if (r < 0.f) r = 0.f; in filter()
217 if (r > 255.f) r = 255.f; in filter()
218 if (g < 0.f) g = 0.f; in filter()
[all …]
Dlevels.rs31 pixel = clamp(pixel, 0.f, 255.f);
33 if (gamma != 1.0f)
36 pixel = clamp(pixel, 0.f, 255.f);
/development/samples/browseable/BasicRenderScript/src/rs/
Dsaturation.rs21 const static float3 gMonoMult = {0.299f, 0.587f, 0.114f};
23 float saturationValue = 0.f;
/development/tools/findunused/
Dfind_unused_resources.rb56 def initialize(f, ln) argument
57 @file = f
182 unusedResources.unusedLayoutIds.sort { |id, file| id[1] <=> file[1] }.each {|f|
183 puts " #{f[0]} #{f[1]}"
188 unusedResources.unusedStringIds.sort { |id, file| id[1] <=> file[1] }.each {|f|
189 puts " #{f[0]} #{f[1]}"
199 unusedResourceIds.sort { |id, file| id[1] <=> file[1] }.each {|f|
200 puts "<tr><td><b>#{f[0]}</b></td> <td>#{f[1]}</td></tr>"
/development/scripts/
Dstack64 f = sys.stdin
67 f = open(arguments[0], "r")
69 lines = f.readlines()
70 f.close()
/development/vndk/tools/sourcedr/sourcedr/
Dpattern_db.py25 with open(self.path, 'r') as f:
28 for line in f:
43 with open(self.path, 'a') as f:
44 f.write(str(int(is_regex)) + ',' + patt + '\n')
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DColorMatrixSample.java56 float scale = contrast + 1.f; in setContrast()
57 float translate = (-.5f * scale + .5f) * 255.f; in setContrast()
66 float scale = contrast + 1.f; in setContrastTranslateOnly()
67 float translate = (-.5f * scale + .5f) * 255.f; in setContrastTranslateOnly()
76 float scale = contrast + 1.f; in setContrastScaleOnly()
77 float translate = (-.5f * scale + .5f) * 255.f; in setContrastScaleOnly()
103 float contrast = mAngle / 180.f; in onDraw()
/development/samples/RenderScript/HelloCompute/src/com/example/android/rs/hellocompute/
Dmono.rs20 const static float3 gMonoMult = {0.299f, 0.587f, 0.114f};
/development/tools/axl/
Dchewperf.py12 f = open(sys.argv[1]).read()
13 rawLines = f.split('\n')
28 f = open(sys.argv[1]).read()
29 rawLines = f.split('\r\n')
46 f = open(sys.argv[1]).read()
47 rawLines = f.split('\n')
/development/gsi/gsi_util/
Drun_test.py28 matches.extend(os.path.join(dirpath, f)
29 for f in filenames if f.endswith('_unittest.py'))
Dbuild.py94 for f in INCLUDE_FILES:
95 print 'Add {}'.format(f)
96 zf.write(f)
97 for f in REQUIRED_ITEMS:
98 print 'Add {}'.format(f[0])
99 zf.write(f[0])
/development/tools/bugreport/src/com/android/bugreport/inspector/
DInspector.java205 final JavaStackFrameSnapshot f = (JavaStackFrameSnapshot)frame; in combineLocks() local
206 for (LockSnapshot lock: f.locks) { in combineLocks()
250 JavaStackFrameSnapshot f = (JavaStackFrameSnapshot)frame; in markOutgoingBinderThread() local
251 if (!("android.os".equals(f.packageName) in markOutgoingBinderThread()
252 && "BinderProxy".equals(f.className) in markOutgoingBinderThread()
253 && "transactNative".equals(f.methodName))) { in markOutgoingBinderThread()
266 f = (JavaStackFrameSnapshot)frame; in markOutgoingBinderThread()
267 if (!("android.os".equals(f.packageName) in markOutgoingBinderThread()
268 && "BinderProxy".equals(f.className) in markOutgoingBinderThread()
269 && "transact".equals(f.methodName))) { in markOutgoingBinderThread()
[all …]
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeyFlipEvent.java67 FileOutputStream f = new FileOutputStream("/dev/input/event0"); in injectEvent() local
68 f.write(mKeyboardOpen ? FLIP_0 : FLIP_1); in injectEvent()
69 f.close(); in injectEvent()
/development/samples/browseable/RenderScriptIntrinsic/src/com.example.android.renderscriptintrinsic/
DMainActivity.java250 float f = 0.f; in getFilterParameter() local
254 final float min = 1.f; in getFilterParameter()
255 f = (float) ((max - min) * (i / 100.0) + min); in getFilterParameter()
259 final float max = 2.f; in getFilterParameter()
260 final float min = 0.f; in getFilterParameter()
261 f = (float) ((max - min) * (i / 100.0) + min); in getFilterParameter()
267 f = (float) ((max - min) * (i / 100.0) + min); in getFilterParameter()
271 return f; in getFilterParameter()
320 float f = getFilterParameter(progress); in updateImage() local
326 mLatestTask.execute(f); in updateImage()
[all …]
/development/samples/training/multiscreen/newsreader/src/com/example/android/newsreader/
DArticleActivity.java57 ArticleFragment f = new ArticleFragment(); in onCreate() local
58 getSupportFragmentManager().beginTransaction().add(android.R.id.content, f).commit(); in onCreate()
62 f.displayArticle(article); in onCreate()
/development/vndk/tools/header-checker/utils/
Dutils.py59 with gzip.open(reference_dump_path, 'wb') as f:
60 f.write(bytes(output_content, 'utf-8'))
73 with open(reference_dump_path, 'w') as f:
74 f.write(output_content)
80 with open(output_path, 'r') as f:
81 return f.read().replace(replace_str, '')
89 with open(output_path, 'r') as f:
93 return f.read()
122 with open(output_path, 'r') as f:
/development/tools/mkstubs/src/com/android/mkstubs/
DSourceGenerator.java68 File f = new File(baseDir, name); in createWriter() local
69 f.getParentFile().mkdirs(); in createWriter()
71 mLog.debug("Writing " + f.getPath()); in createWriter()
73 return new FileWriter(f); in createWriter()
/development/tools/mkstubs/src/com/android/mkstubs/sourcer/
DAccessSourcer.java100 for (Flag f : Flag.values()) { in write()
101 if ((f.getFilter() & filter) != 0 && (access & f.getValue()) != 0) { in write()
105 mOutput.write(f.toString()); in write()

1234