Home
last modified time | relevance | path

Searched refs:arbitrary (Results 1 – 25 of 1173) sorted by relevance

12345678910>>...47

/external/icu/android_icu4j/src/main/java/android/icu/number/
DScale.java31 final BigDecimal arbitrary; field in Scale
35 private Scale(int magnitude, BigDecimal arbitrary) { in Scale() argument
36 this(magnitude, arbitrary, RoundingUtils.DEFAULT_MATH_CONTEXT_34_DIGITS); in Scale()
39 private Scale(int magnitude, BigDecimal arbitrary, MathContext mc) { in Scale() argument
40 if (arbitrary != null) { in Scale()
43 arbitrary = in Scale()
44 arbitrary.compareTo(BigDecimal.ZERO) == 0 in Scale()
46 : arbitrary.stripTrailingZeros(); in Scale()
47 if (arbitrary.precision() == 1 && arbitrary.unscaledValue().equals(BigInteger.ONE)) { in Scale()
49 magnitude -= arbitrary.scale(); in Scale()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DScale.java31 final BigDecimal arbitrary; field in Scale
35 private Scale(int magnitude, BigDecimal arbitrary) { in Scale() argument
36 this(magnitude, arbitrary, RoundingUtils.DEFAULT_MATH_CONTEXT_34_DIGITS); in Scale()
39 private Scale(int magnitude, BigDecimal arbitrary, MathContext mc) { in Scale() argument
40 if (arbitrary != null) { in Scale()
43 arbitrary = in Scale()
44 arbitrary.compareTo(BigDecimal.ZERO) == 0 in Scale()
46 : arbitrary.stripTrailingZeros(); in Scale()
47 if (arbitrary.precision() == 1 && arbitrary.unscaledValue().equals(BigInteger.ONE)) { in Scale()
49 magnitude -= arbitrary.scale(); in Scale()
[all …]
/external/rust/crates/derive_arbitrary/src/
Dlib.rs32 …impl #impl_generics arbitrary::Arbitrary<#lifetime_without_bounds> for #name #ty_generics #where_c… in derive_arbitrary()
64 .push(parse_quote!(arbitrary::Arbitrary<#lifetime>)); in add_trait_bounds()
73 let arbitrary = construct(fields, |_, _| quote!(arbitrary::Arbitrary::arbitrary(u)?)); in gen_arbitrary_method() localVariable
76 fn arbitrary(u: &mut arbitrary::Unstructured<#lifetime>) -> arbitrary::Result<Self> { in gen_arbitrary_method()
77 Ok(#ident #arbitrary) in gen_arbitrary_method()
80 … fn arbitrary_take_rest(mut u: arbitrary::Unstructured<#lifetime>) -> arbitrary::Result<Self> { in gen_arbitrary_method()
92 quote!(arbitrary::Arbitrary::arbitrary(u)?) in gen_arbitrary_method()
105 … fn arbitrary(u: &mut arbitrary::Unstructured<#lifetime>) -> arbitrary::Result<Self> { in gen_arbitrary_method()
109 … Ok(match (u64::from(<u32 as arbitrary::Arbitrary>::arbitrary(u)?) * #count) >> 32 { in gen_arbitrary_method()
115 … fn arbitrary_take_rest(mut u: arbitrary::Unstructured<#lifetime>) -> arbitrary::Result<Self> { in gen_arbitrary_method()
[all …]
/external/rust/crates/arbitrary/src/
Dlib.rs171 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>; in arbitrary() method
179 Self::arbitrary(&mut u) in arbitrary_take_rest()
262 fn arbitrary(_: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() method
273 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() method
274 Ok(<u8 as Arbitrary<'a>>::arbitrary(u)? & 1 == 1) in arbitrary()
287 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> {
327 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> {
328 Ok(Self::from_bits(<$unsigned as Arbitrary<'a>>::arbitrary(u)?))
346 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() method
351 let mut c = <u32 as Arbitrary<'a>>::arbitrary(u)? % CHAR_END; in arbitrary()
[all …]
/external/rust/crates/arbitrary/tests/
Dpath.rs5 #[derive(arbitrary::Arbitrary, Clone, Debug)]
11 #[derive(arbitrary::Arbitrary, Clone, Debug)]
14 #[derive(arbitrary::Arbitrary, Clone, Debug)]
17 #[derive(arbitrary::Arbitrary, Clone, Debug)]
23 #[derive(arbitrary::Arbitrary, Clone, Debug)]
26 #[derive(arbitrary::Arbitrary, Debug)]
/external/rust/crates/arbitrary/
DREADME.md5 …<p><strong>The trait for generating structured data from arbitrary, unstructured input.</strong></…
13 The `Arbitrary` crate lets you construct arbitrary instance of a type.
24 [**Read the API documentation on `docs.rs`!**](https://docs.rs/arbitrary)
30 you could take arbitrary `Rgb` instances in a test function that asserts some
46 arbitrary = { version = "1", features = ["derive"] }
54 use arbitrary::Arbitrary;
71 use arbitrary::{Arbitrary, Result, Unstructured};
81 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> {
82 let r = u8::arbitrary(u)?;
83 let g = u8::arbitrary(u)?;
[all …]
DCHANGELOG.md46 …itrary` trait is now implemented for `&[u8]`. [#67](https://github.com/rust-fuzz/arbitrary/pull/67)
50 …tructured#get_bytes` to `Unstructured#bytes`. [#70](https://github.com/rust-fuzz/arbitrary/pull/70)
51 …` returns an error. Previously it would panic. [71](https://github.com/rust-fuzz/arbitrary/pull/71)
61 * The `Arbitrary` trait is now implemented for `&str`. [#63](https://github.com/rust-fuzz/arbitrary
65 …ving `Arbitrary` on types with lifetimes now. [#63](https://github.com/rust-fuzz/arbitrary/pull/63)
71arbitrary/issues/62) and explaining how you're using it and what your use case is. We'll figure ou…
106 [#53](https://github.com/rust-fuzz/arbitrary/pull/53) and the commit messages
110 now. (See [#53](https://github.com/rust-fuzz/arbitrary/pull/53) and the commit
133 `#[derive(arbitrary::Arbitrary)]` rather than like `#[derive(Arbitrary)]`).
143 `#[derive(arbitrary::Arbitrary)]` rather than like `#[derive(Arbitrary)]`).
[all …]
DCargo.toml.orig2 name = "arbitrary"
8 "Simonas Kazlauskas <arbitrary@kazlauskas.me>",
14 keywords = ["arbitrary", "testing"]
18 repository = "https://github.com/rust-fuzz/arbitrary/"
19 documentation = "https://docs.rs/arbitrary/"
DMETADATA1 name: "arbitrary"
6 value: "https://crates.io/crates/arbitrary"
10 value: "https://static.crates.io/crates/arbitrary/arbitrary-1.0.0.crate"
DCargo.toml15 name = "arbitrary"
17 …om>", "Manish Goregaokar <manishsmail@gmail.com>", "Simonas Kazlauskas <arbitrary@kazlauskas.me>",…
19 documentation = "https://docs.rs/arbitrary/"
21 keywords = ["arbitrary", "testing"]
24 repository = "https://github.com/rust-fuzz/arbitrary/"
/external/rust/crates/weak-table/tests/
Dweak_key_hash_map.rs141 fn arbitrary<G: Gen>(g: &mut G) -> Self { in arbitrary() method
145 00..=39 => Insert(K::arbitrary(g), V::arbitrary(g)), in arbitrary()
146 40..=49 => Reinsert(usize::arbitrary(g), V::arbitrary(g)), in arbitrary()
147 50..=69 => RemoveInserted(usize::arbitrary(g)), in arbitrary()
148 70..=79 => RemoveOther(K::arbitrary(g)), in arbitrary()
149 80..=99 => ForgetInserted(usize::arbitrary(g)), in arbitrary()
156 fn arbitrary<G: Gen>(g: &mut G) -> Self { in arbitrary() method
157 Script(Vec::<Cmd<K, V>>::arbitrary(g)) in arbitrary()
/external/rust/crates/derive_arbitrary/
DCargo.toml.orig3 version = "1.0.0" # Make sure it matches the version of the arbitrary crate itself.
13 keywords = ["arbitrary", "testing", "derive", "macro"]
15 description = "Derives arbitrary traits"
17 repository = "https://github.com/rust-fuzz/arbitrary"
18 documentation = "https://docs.rs/arbitrary/"
DREADME.md4 trait](https://docs.rs/arbitrary/*/arbitrary/trait.Arbitrary.html).
7 feature of the `arbitrary` crate.
DCargo.toml18 description = "Derives arbitrary traits"
19 documentation = "https://docs.rs/arbitrary/"
21 keywords = ["arbitrary", "testing", "derive", "macro"]
24 repository = "https://github.com/rust-fuzz/arbitrary"
/external/llvm-project/clang/test/CodeGenCXX/
Dmicrosoft-new.cpp5 struct arbitrary_t {} arbitrary; variable
15 int *p = new(arbitrary) int[4]; in f()
24 S *s = new(arbitrary) S[2]; in g()
26 S *s1 = new(arbitrary) S; in g()
/external/clang/test/CodeGenCXX/
Dmicrosoft-new.cpp5 struct arbitrary_t {} arbitrary; variable
15 int *p = new(arbitrary) int[4]; in f()
24 S *s = new(arbitrary) S[2]; in g()
26 S *s1 = new(arbitrary) S; in g()
/external/rust/crates/libfuzzer-sys/
DCHANGELOG.md47 * Updated `arbitrary` dependency to 0.4.6
74 * Upgraded the `arbitrary` dependency re-export to version 0.4.1.
97 * Now works with and re-exports `arbitrary` versions 0.4.x.
120 * Using `arbitrary` 0.3.x now. It is re-exported as `libfuzzer_sys::arbitrary`.
125 `"arbitrary-derive"` cargo feature. This is a synonym for the `arbitrary`
DCargo.toml.orig12 arbitrary = "1"
18 arbitrary-derive = ["arbitrary/derive"]
DCargo.toml22 [dependencies.arbitrary]
28 arbitrary-derive = ["arbitrary/derive"]
DAndroid.bp1 // This file is generated by cargo2android.py --run --dependencies --device --features arbitrary-de…
43 features: ["arbitrary-derive"],
50 // arbitrary-1.0.0 "derive,derive_arbitrary"
/external/markdown/tests/misc/
Dhtml.txt6 Now some <arbitrary>arbitrary tags</arbitrary>.
/external/rust/crates/arbitrary/examples/
Dderive_enum.rs5 use arbitrary::{Arbitrary, Unstructured};
19 let instance = MyEnum::arbitrary(&mut unstructured) in main()
/external/llvm-project/clang/test/SemaCXX/
Dmicrosoft-new-delete.cpp5 struct arbitrary_t {} arbitrary; variable
10 int *p = new(arbitrary) int[4]; in f()
/external/clang/test/SemaCXX/
Dmicrosoft-new-delete.cpp5 struct arbitrary_t {} arbitrary; variable
10 int *p = new(arbitrary) int[4]; in f()
/external/rust/crates/libfuzzer-sys/patches/
DAndroid.bp.patch6 …// This file is generated by cargo2android.py --run --dependencies --device --features arbitrary-d…
15 features: ["arbitrary-derive"],

12345678910>>...47