/ohos5.0/foundation/resourceschedule/ffrt/src/util/ |
H A D | time_format.h | 37 std::string remainder; variable 41 remainder = std::to_string(us); 42 if (remainder.length() < MaxUsLength) { 43 remainder = std::string(MaxUsLength - remainder.length(), '0') + remainder; 48 remainder = std::to_string(ms); 49 if (remainder.length() < MaxMsLength) { 50 remainder = std::string(MaxMsLength - remainder.length(), '0') + remainder; 62 return std::string(sysTime) + remainder;
|
/ohos5.0/foundation/ability/ability_runtime/utils/global/time/include/ |
H A D | time_util.h | 64 auto remainder = timestamp % SEC_TO_MILLISEC; in DefaultCurrentTimeStr() local 66 for (int i = 2; i >= 0 && remainder > 0; i--) { in DefaultCurrentTimeStr() 67 milliStr[i] = '0' + remainder % DECIMAL_BASE; in DefaultCurrentTimeStr() 68 remainder /= DECIMAL_BASE; in DefaultCurrentTimeStr()
|
/ohos5.0/drivers/hdf_core/framework/sample/platform/uart/src/ |
H A D | uart_pl011_sample.c | 42 uint32_t remainder = clk % value; in UartPl011SetBaudrate() local 44 value = (SAMPLING_FACTOR * remainder) / baudrate; in UartPl011SetBaudrate()
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/io/buffered/ |
H A D | async_buf_reader.rs | 228 let remainder = (this.filled - this.pos) as i64; in poll_seek() localVariable 229 if let Some(offset) = n.checked_sub(remainder) { in poll_seek() 239 .poll_seek(cx, SeekFrom::Current(-remainder)))?; in poll_seek()
|
/ohos5.0/drivers/hdf_core/adapter/platform/spi/ |
H A D | spi_wm.c | 129 uint32_t remainder = 0; in HalSpiRecv() local 160 remainder = len <= SPI_DMA_MAX ? len : SPI_DMA_MAX; in HalSpiRecv() 162 ret = tls_spi_read(data, remainder); in HalSpiRecv() 164 len -= remainder; in HalSpiRecv() 165 data += remainder; in HalSpiRecv()
|
H A D | spi_bes.c | 283 uint32_t remainder; in HalSpiRecv() local 311 remainder = len <= SPI_DMA_MAX ? len : SPI_DMA_MAX; in HalSpiRecv() 313 ret = spiCtx[spiId].SpiDmaRecv(cmd, data, remainder, spiCtx[spiId].SpiDmaIrq); in HalSpiRecv() 319 ret = spiCtx[spiId].SpiRecv(cmd, data, remainder); in HalSpiRecv() 322 len -= remainder; in HalSpiRecv() 323 data += remainder; in HalSpiRecv()
|
/ohos5.0/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/ |
H A D | hdf_command_line_server.py | 59 remainder = [arg for arg in args.remainder_args if len(arg) != 0] 60 return args.cmd, remainder
|
/ohos5.0/commonlibrary/ets_utils/js_util_module/util/ |
H A D | js_base64.cpp | 275 size_t remainder = inputLen % TRAGET_FOUR; in DecodeAchieve() local 276 if (remainder == TRAGET_TWO) { in DecodeAchieve() 278 } else if (remainder == TRAGET_THREE) { in DecodeAchieve() 690 size_t remainder = inputLen % TRAGET_FOUR; in DecodeAchieves() local 691 if (remainder == TRAGET_TWO) { in DecodeAchieves() 693 } else if (remainder == TRAGET_THREE) { in DecodeAchieves()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/communicator/src/ |
H A D | protocol_proto.cpp | 313 uint32_t remainder = lengthToSplit % maxFragmentLen; in SplitFrameIntoPacketsIfNeed() local 315 uint16_t fragCount = ((remainder == 0) ? quotient : (quotient + 1)); in SplitFrameIntoPacketsIfNeed() 343 uint16_t remainder = lengthBeSplit % fragCount; in AnalyzeSplitStructure() local 345 outLastFragLen = quotient + remainder; in AnalyzeSplitStructure() 961 uint16_t remainder = fragmentInfo.splitLength % fragmentInfo.fragCount; in FrameFragmentation() local 967 …uint32_t pieceFragLen = (fragNo != fragmentInfo.fragCount - 1) ? quotient : (quotient + remainder); in FrameFragmentation()
|
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/bpf/include/ |
H A D | bitmap_manager.h | 474 int remainder = prefixLen % 8; in GetNetworkAddress() local 478 if (remainder) { in GetNetworkAddress() 479 out.s6_addr[quotient] = addr.s6_addr[quotient] & (~(0xff >> remainder)); in GetNetworkAddress()
|
/ohos5.0/base/startup/hvb/tools/ |
H A D | hvbtool.py | 63 remainder = num % size 64 if remainder == 0: 66 return num + size - remainder 869 remainder = self.block_size - self.image_handle.img_size % self.block_size 870 if remainder != self.block_size: 871 self.image_handle.append_raw(b'\0' * remainder)
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/state_mgmt/src/lib/partial_update/ |
H A D | pu_view.ts | 1038 let remainder: number = length - header.length < 0 ? 0 : length - header.length; 1039 DumpLog.print(0, `\n${'-'.repeat(remainder / 2)}${header}${'-'.repeat(remainder / 2)}`);
|
/ohos5.0/foundation/communication/netmanager_ext/services/netfirewallmanager/src/ |
H A D | netfirewall_db_helper.cpp | 728 int32_t remainder = rowCount % requestParam->pageSize; in QueryFirewallRule() local 729 if (remainder > 0) { in QueryFirewallRule() 882 int32_t remainder = rowCount % requestParam->pageSize; in QueryInterceptRecord() local 883 if (remainder > 0) { in QueryInterceptRecord()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/common/ |
H A D | rs_obj_abs_geometry.cpp | 122 return !ROSEN_EQ(std::remainder(trans_->rotation_, 90.f), 0.f, EPSILON); in IsNeedClientCompose()
|
/ohos5.0/docs/en/application-dev/reference/apis-arkts/ |
H A D | js-apis-arkts-decimal.md | 73 | 9 | Positive remainder from Euclid's division. It is the same as [Decimal.EU… 121 …e modulo operation, if the dividend is negative, the remainder is positive; otherwise, the remaind… 122 … a way that the result heads towards zero. In the modulo operation, the remainder has the same sig… 124 …| 3 | Rounds towards negative infinity. In the modulo operation, the remainder has the same sig… 130 | EUCLID | number | 9 | Always a positive remainder in the modulo operation. The Euc… 456 Returns a new **Decimal** object representing the remainder of dividing this decimal by the specifi… 474 | [Decimal](#decimal) | **Decimal** object representing the remainder.| 3011 Returns a **Decimal** object representing the remainder of two numbers *x* and *y*. 3030 | [Decimal](#decimal) | **Decimal** object representing the remainder.|
|
/ohos5.0/docs/en/contribute/ |
H A D | OpenHarmony-Java-secure-coding-guide.md | 37 ## Ensure that division and remainder operations do not result in divide-by-zero errors 41 …ion or remainder by zero can result in abnormal program termination and denial of service (DoS). T…
|
H A D | OpenHarmony-c-cpp-secure-coding-guide.md | 861 ## Ensure that division and remainder operations do not cause divide-by-zero errors 865 … remainder operations performed on integers with the divisor of zero are undefined behavior. Ensur…
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/ |
H A D | stateMgmt.js | 7103 let remainder = length - header.length < 0 ? 0 : length - header.length; variable 7104 DumpLog.print(0, `\n${'-'.repeat(remainder / 2)}${header}${'-'.repeat(remainder / 2)}`);
|
/ohos5.0/docs/en/application-dev/quick-start/ |
H A D | introduction-to-arkts.md | 275 | `%` | remainder after division |
|
/ohos5.0/foundation/arkui/ace_engine/interfaces/native/node/ |
H A D | style_modifier.cpp | 2372 int remainder = i % NUM_4; in SetResponseRegion() local 2373 valuesArray.push_back(remainder > 1 ? (item->value[i].f32) / HUNDRED : item->value[i].f32); in SetResponseRegion() 2375 unitsArray.push_back(remainder > 1 ? NUM_3 : NUM_1); in SetResponseRegion()
|
/ohos5.0/drivers/interface/nnrt/v2_1/ |
H A D | NodeAttrTypes.idl | 1463 …* @brief Computes the remainder of dividing the first input tensor by the second input tensor elem…
|
/ohos5.0/docs/en/application-dev/reference/apis-arkgraphics2d/ |
H A D | js-apis-graphics-drawing.md | 621 …reater than or equal to 0. If the value is greater than or equal to 4, the remainder of 4 is used.|
|
/ohos5.0/base/web/webview/ohos_nweb/prebuilts/ |
H A D | NOTICE | 23155 remainder of the terms of this Agreement, and without further action by 25259 remainder of this License will continue in full force and effect. (b) 26081 of the remainder of the terms of this License, and without further 38366 remainder of the terms of this Agreement, and without further action by 57089 law, it shall not affect the validity or enforceability of the remainder of the 64070 the remainder of the terms of this License, and without further action 86682 remainder of the terms of this Agreement, and without further action by 94220 remainder of the terms of this Agreement, and without further action by 99314 remainder of the terms of this Agreement, and without further action by 104173 remainder of the terms of this Agreement, and without further action by [all …]
|