Searched refs:max_delta (Results 1 – 2 of 2) sorted by relevance
/aosp12/frameworks/native/cmds/installd/ |
H A D | otapreopt.cpp | 532 static int32_t ChooseRelocationOffsetDelta(int32_t min_delta, int32_t max_delta) { in ChooseRelocationOffsetDelta() argument 536 CHECK_EQ(max_delta % kPageSize, 0u); in ChooseRelocationOffsetDelta() 537 CHECK_LT(min_delta, max_delta); in ChooseRelocationOffsetDelta() 541 std::uniform_int_distribution<int32_t> distribution(min_delta, max_delta); in ChooseRelocationOffsetDelta() 549 CHECK_GE(max_delta, r); in ChooseRelocationOffsetDelta()
|
/aosp12/art/runtime/gc/space/ |
H A D | image_space.cc | 97 static int32_t ChooseRelocationOffsetDelta(int32_t min_delta, int32_t max_delta) { in ChooseRelocationOffsetDelta() argument 99 CHECK_ALIGNED(max_delta, kPageSize); in ChooseRelocationOffsetDelta() 100 CHECK_LT(min_delta, max_delta); in ChooseRelocationOffsetDelta() 102 int32_t r = GetRandomNumber<int32_t>(min_delta, max_delta); in ChooseRelocationOffsetDelta() 109 CHECK_GE(max_delta, r); in ChooseRelocationOffsetDelta()
|