Home
last modified time | relevance | path

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

1234

/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/gki/kmi_abi_chk/
Dkmi_compatibility_test.sh27 for f in "$@"; do
28 if [[ ! -e "$f" ]]; then
29 echo "Kernel symbol file $f does not exist!" >&2
31 elif ! grep -iE "^0x[0-9a-f]{8}+.[_0-9a-z]+.vmlinux.EXPORT_SYMBOL" $f > /dev/null; then
33 echo "$f doesn't look like kernel symbol file!" >&2
65 for f in "$@"; do
66 echo " $f"
72 if grep -vf $tmp $f; then
74 echo "$f contains symbol(s) not found in, or incompatible with, $curr." >&2
/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/tools/repo_diff/service/repodiff/tools/
Denv_variable_load.py14 with open("%s/.bashrc" % os.environ["HOME"], "rb") as f:
15 existing_contents = f.read()
17 with open("%s/.bashrc" % os.environ["HOME"], "a") as f:
18 f.write("\n")
23 f.write("export %s=\"%s\"\n" % (key, value))
/development/scripts/
Dacov-llvm.py102 status = adb_shell(['cat', f'/proc/{pid}/status'],
106 logging.warning(f'Process {pid} is no longer active')
114 logging.warning(f'Cannot find \'SigCgt:\' in /proc/{pid}/status')
126 f'couldn\'t find any process with handler for signal 37')
146 f'sleeping for {FLUSH_SLEEP} seconds for coverage to be written')
158 logging.info(f'flushing coverage for pids: {pids}')
166 f'sleeping for {FLUSH_SLEEP} seconds for coverage to be written')
175 logging.info(f'generating coverage report in {temp_dir}')
182 profdata = f'{temp_dir}/merged.profdata'
184f'{LLVM_PROFDATA_PATH} merge --failure-mode=all --output={profdata} {temp_dir}/trace/*.profraw',
[all …]
Dstack60 f = sys.stdin
63 f = open(args.file, "r", errors='ignore')
65 lines = f.readlines()
66 f.close()
/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/gsi/build_with_kernel/
Dkernel_info_to_dist.sh49 for f in "${KERNEL_INFO_FILES[@]}"; do
52 [[ "$list_json" =~ "\"name\":\"${f}\"" ]] || continue
54 local output="${output_folder}/$(basename "$f")"
57 curl -sfL "${url_base}/raw/${f}" -o "$output"
Ddownload_kernels_prebults.sh40 for f in "${file_list[@]}"; do
41 wget "${download_url}/${f}" -O "${dist_base}/${f}"
Drepack_kernels_common.sh119 for x in $(find "${initramfs_root}" -type f -name "*.ko"); do
142 for f in ${list}; do
144 cp -f ${out_root}/$f ${prebuilts_dir}
145 cp -f ${out_root}/$f ${prebuilts_dir}
162 for x in $(find "${initramfs_root}" -type f -name "*.ko"); do
/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/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/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/tools/winscope/src/adb/
Dwinscope_proxy.py94 f"shell su root find {self.path} -name {self.matcher}", device_id)
106 … self.internal_matchers = list(map(lambda ext: FileMatcher(path, f'{matcher}{ext}', filetype),
153 File(f'/data/local/tmp/screen.mp4', "screen_recording"),
154f'screenrecord --bit-rate 8M /data/local/tmp/screen.mp4 >/dev/null 2>&1 &\necho "ScreenRecorder st…
165 FileMatcher(WINSCOPE_DIR, f'transaction_merges_*', "transaction_merges"),
223 return f'su root service call SurfaceFlinger 1033 i32 {self.flags}'
242 … return f'su root service call SurfaceFlinger 1029 i32 {self.selectedConfigs["sfbuffersize"]}'
263 return f'su root cmd window tracing size {self.selectedConfigs["wmbuffersize"]}'
266 return f'su root cmd window tracing level {self.selectedConfigs["tracinglevel"]}'
269 return f'su root cmd window tracing {self.selectedConfigs["tracingtype"]}'
[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/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()
/development/vndk/tools/image-diff-tool/
Ddiff.py27 def sha1sum(f): argument
28 with open(f, "rb") as fin:
33 for f in sorted(apk.namelist()):
34 if f.startswith("META-INF/"):
36 l.append(hashlib.sha1(apk.read(f)).hexdigest())
37 l.append(f)
81 with open(allowlist, "rb") as f:
82 for line in f:
109 with open(pathname, "rb") as f:
110 for line in f:
/development/tools/ndk/ndkabidump/
D__init__.py41 logger().info(f"Building ABI dumps to {self.build_dir}")
54 logger().info(f"Copying ABI dump {dump} to {install_path}")
128 f"Source directory {args.src_dir} does not appear to be an "
129 f"Android source tree: {test_path} does not exist."

1234