Home
Sort by
last modified time
|
relevance
|
path
Repository(s)
applications
arkcompiler
base
build
commonlibrary
developtools
device
docs
domains
drivers
foundation
ide
interface
kernel
napi_generator
productdefine
test
third_party
vendor
select all
invert selection
clear
Full Search
Search through all text tokens(words,strings,identifiers,numbers) in index.
Definition
Only finds symbol definitions(where e.g a variable(function,...) is defined).
Symbol
Only finds symbol(e.g. methods classes,function,variables).
File Path
Path of the source file(use "/").If you want just exact path,enclose it in "".Source files end with: .jar/.bz2/.a/.h/.java...
History
History log comments.
Type
Any
Bzip(2)
C
Clojure
C#
C++
ELF
Erlang
Image file
Fortran
Golang
GZIP
Haskell
Jar
Java
Java class
JavaScript
Lisp
Lua
Pascal
Perl
PHP
Plain Text
PL/SQL
Python
Rust
Scala
Shell script
SQL
Tar
Tcl
Troff
UUEncoded
Visual Basic
XML
Zip
Type of analyzer used to filter file types include with selected(e.g. just C sources).
Help
Searched
refs:randomTime
(Results
1 - 2
of
2
) sorted by relevance
/foundation/communication/bluetooth/frameworks/inner/src/
H
A
D
uuid.cpp
78
struct tm
randomTime
;
in RandomUUID()
local
83
localtime_r(&tv.tv_sec, &
randomTime
);
in RandomUUID()
93
random.uuid_[6] = static_cast<uint8_t>((
randomTime
.tm_sec + static_cast<int>(randNum)) & 0xFF);
in RandomUUID()
95
random.uuid_[5] = static_cast<uint8_t>((
randomTime
.tm_min + (randNum >> 8)) & 0xFF);
in RandomUUID()
97
random.uuid_[4] = static_cast<uint8_t>((
randomTime
.tm_hour + (randNum >> 16)) & 0xFF);
in RandomUUID()
99
random.uuid_[3] = static_cast<uint8_t>((
randomTime
.tm_mday + (randNum >> 24)) & 0xFF);
in RandomUUID()
100
random.uuid_[2] = static_cast<uint8_t>(
randomTime
.tm_mon & 0xFF); // 2是uuid的数组下标
in RandomUUID()
101
random.uuid_[1] = static_cast<uint8_t>(
randomTime
.tm_year & 0xFF); // 1是uuid的数组下标
in RandomUUID()
102
random.uuid_[0] = static_cast<uint8_t>((
randomTime
.tm_year & 0xFF00) >> 8); // 0是uuid的数组下标,右移8位
in RandomUUID()
/foundation/communication/bluetooth/frameworks/inner/ipc/common/
H
A
D
bt_uuid.cpp
36
struct tm
randomTime
= {};
in Random()
local
42
localtime_r(&tv.tv_sec, &
randomTime
);
in Random()
63
static_cast<uint8_t>((static_cast<unsigned int>(
randomTime
.tm_sec) + randNum) & 0xFF);
in Random()
65
static_cast<uint8_t>((static_cast<unsigned int>(
randomTime
.tm_min) + (randNum >> BASE_BIT_OPT_SIZE)) & 0xFF);
in Random()
67
static_cast<uint8_t>((static_cast<unsigned int>(
randomTime
.tm_hour) +
in Random()
70
static_cast<uint8_t>((static_cast<unsigned int>(
randomTime
.tm_mday) +
in Random()
73
static_cast<uint8_t>(static_cast<unsigned int>(
randomTime
.tm_mon) & 0xFF);
in Random()
75
static_cast<uint8_t>(static_cast<unsigned int>(
randomTime
.tm_year) & 0xFF);
in Random()
77
static_cast<uint8_t>((static_cast<unsigned int>(
randomTime
.tm_year) & 0xFF00) >> BASE_BIT_OPT_SIZE);
in Random()
Completed in 2 milliseconds