/ohos5.0/foundation/distributeddatamgr/relational_store/test/ndk/unittest/ |
H A D | rdb_cursor_test.cpp | 193 cursor->goToNextRow(cursor); 222 cursor->destroy(cursor); 262 cursor->destroy(cursor); 302 cursor->destroy(cursor); 367 cursor->destroy(cursor); 414 cursor->destroy(cursor); 462 cursor->destroy(cursor); 490 cursor->destroy(cursor); 552 cursor->destroy(cursor); 620 cursor->destroy(cursor); [all …]
|
H A D | rdb_predicates_test.cpp | 141 cursor->destroy(cursor); 167 cursor->destroy(cursor); 228 cursor->destroy(cursor); 253 cursor->destroy(cursor); 278 cursor->destroy(cursor); 303 cursor->destroy(cursor); 324 cursor->destroy(cursor); 345 cursor->destroy(cursor); 375 cursor->destroy(cursor); 401 cursor->destroy(cursor); [all …]
|
H A D | rdb_store_test.cpp | 126 cursor->destroy(cursor); in SetUp() 216 cursor->destroy(cursor); 280 cursor->destroy(cursor); 312 cursor->destroy(cursor); 344 cursor->destroy(cursor); 388 cursor->destroy(cursor); 395 cursor->destroy(cursor); 402 cursor->destroy(cursor); 412 cursor->destroy(cursor); 429 cursor->destroy(cursor); [all …]
|
H A D | rdb_store_configv2_test.cpp | 113 OH_Cursor *cursor = OH_Rdb_ExecuteQuery(store, querySql); in VdbTest002() local 114 EXPECT_NE(cursor, nullptr); in VdbTest002() 116 cursor->getRowCount(cursor, &rowCount); in VdbTest002() 118 EXPECT_EQ(OH_Rdb_ErrCode::RDB_OK, cursor->goToNextRow(cursor)); in VdbTest002() 120 cursor->getInt64(cursor, 0, &intVal); in VdbTest002() 122 cursor->destroy(cursor); in VdbTest002()
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/test/ |
H A D | cache_cursor_test.cpp | 79 EXPECT_NE(cursor, nullptr); 104 err = cursor->MoveToFirst(); 107 err = cursor->MoveToNext(); 112 err = cursor->MoveToNext(); 115 err = cursor->MoveToPrev(); 129 EXPECT_NE(cursor, nullptr); 162 EXPECT_NE(cursor, nullptr); 179 cursor->GetRow(data); 198 err = cursor->Close(); 229 cursor->GetRow(data); [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/span/ |
H A D | tlv_util.cpp | 34 int32_t strLen = ReadInt32(buff, cursor); in ReadString() 63 auto start = buff.begin() + cursor; in ReadDouble() 67 cursor += sizeof(double); in ReadDouble() 85 auto alpha = ReadUint8(buff, cursor); in ReadColor() 86 auto red = ReadUint8(buff, cursor); in ReadColor() 87 auto green = ReadUint8(buff, cursor); in ReadColor() 88 auto blue = ReadUint8(buff, cursor); in ReadColor() 104 auto val = ReadDouble(buff, cursor); in ReadDimension() 268 …std::vector<uint8_t> pixelMapSubVec(buff.begin() + cursor, buff.begin() + cursor + pixelMapLength); in ReadPixelMap() 270 cursor += pixelMapLength; in ReadPixelMap() [all …]
|
H A D | tlv_util.h | 147 static type Read##type(std::vector<uint8_t>& buff, int32_t& cursor) \ 149 if (ReadUint8(buff, cursor) != (tag)) { \ 152 auto val = ReadInt32(buff, cursor); \ 163 static uint8_t ReadUint8(std::vector<uint8_t>& buff, int32_t& cursor) in ReadUint8() argument 165 if (static_cast<size_t>(cursor + 1) > buff.size()) { in ReadUint8() 168 return buff[cursor++]; in ReadUint8() 180 static int32_t ReadInt32(std::vector<uint8_t>& buff, int32_t& cursor) in ReadInt32() argument 186 if (static_cast<size_t>(cursor + 1) > buff.size()) { in ReadInt32() 189 item = int32_t(buff[cursor++]); in ReadInt32() 214 static double ReadDouble(std::vector<uint8_t>& buff, int32_t& cursor); [all …]
|
/ohos5.0/foundation/distributeddatamgr/relational_store/interfaces/ndk/include/ |
H A D | oh_cursor.h | 109 int (*getColumnCount)(OH_Cursor *cursor, int *count); 134 int (*getColumnIndex)(OH_Cursor *cursor, const char *name, int *columnIndex); 160 int (*getRowCount)(OH_Cursor *cursor, int *count); 170 int (*goToNextRow)(OH_Cursor *cursor); 183 int (*getSize)(OH_Cursor *cursor, int32_t columnIndex, size_t *size); 197 int (*getText)(OH_Cursor *cursor, int32_t columnIndex, char *value, int length); 210 int (*getInt64)(OH_Cursor *cursor, int32_t columnIndex, int64_t *value); 223 int (*getReal)(OH_Cursor *cursor, int32_t columnIndex, double *value); 250 int (*isNull)(OH_Cursor *cursor, int32_t columnIndex, bool *isNull); 260 int (*destroy)(OH_Cursor *cursor); [all …]
|
/ohos5.0/commonlibrary/rust/ylong_json/src/ |
H A D | linked_list.rs | 785 cursor.move_next(); in ut_cursor_index() 807 cursor.move_next(); in ut_cursor_move_next() 810 cursor.move_next(); in ut_cursor_move_next() 813 cursor.move_next(); in ut_cursor_move_next() 836 cursor.move_prev(); in ut_cursor_move_prev() 839 cursor.move_prev(); in ut_cursor_move_prev() 842 cursor.move_prev(); in ut_cursor_move_prev() 863 cursor.move_next(); in ut_cursor_current_node() 884 cursor.move_next(); in ut_cursor_mut_index() 905 cursor.move_next(); in ut_cursor_mut_move_next() [all …]
|
/ohos5.0/foundation/distributeddatamgr/relational_store/interfaces/ndk/src/ |
H A D | relational_cursor.cpp | 32 auto self = GetSelf(cursor); in GetColumnCount() 41 auto self = GetSelf(cursor); in GetColumnType() 50 auto self = GetSelf(cursor); in GetColumnIndex() 59 auto self = GetSelf(cursor); in GetColumnName() 68 auto self = GetSelf(cursor); in GetRowCount() 77 auto self = GetSelf(cursor); in GoToNextRow() 86 auto self = GetSelf(cursor); in GetSize() 95 auto self = GetSelf(cursor); in GetText() 104 auto self = GetSelf(cursor); in GetInt64() 113 auto self = GetSelf(cursor); in GetReal() [all …]
|
H A D | relational_cursor.h | 52 static int GetColumnCount(OH_Cursor *cursor, int *count); 54 static int GetColumnIndex(OH_Cursor *cursor, const char *name, int *columnIndex); 56 static int GetRowCount(OH_Cursor *cursor, int *count); 57 static int GoToNextRow(OH_Cursor *cursor); 58 static int GetSize(OH_Cursor *cursor, int32_t columnIndex, size_t *size); 60 static int GetInt64(OH_Cursor *cursor, int32_t columnIndex, int64_t *value); 61 static int GetReal(OH_Cursor *cursor, int32_t columnIndex, double *value); 63 static int GetAsset(OH_Cursor *cursor, int32_t columnIndex, Data_Asset *value); 65 static int IsNull(OH_Cursor *cursor, int32_t columnIndex, bool *isNull); 67 static int Destroy(OH_Cursor *cursor); [all …]
|
/ohos5.0/base/usb/usb_manager/services/native/src/ |
H A D | usb_descriptor_parser.cpp | 143 uint32_t cursor = offset; in ParseConfigDescriptors() local 146 while (cursor < length) { in ParseConfigDescriptors() 186 cursor += descriptorHeader.bLength; in ParseConfigDescriptors() 201 cursor += configDescriptorSize; in ParseConfigDescriptor() 218 … buffer + cursor + interfaceCursor, length - cursor - interfaceCursor, interfaceCursor, interface); in ParseConfigDescriptor() 242 cursor += interfaceCursor; in ParseConfigDescriptor() 269 cursor += descriptorHeader.bLength; in ParseInterfaceDescriptor() 279 cursor += interfaceDescriptor.bLength; in ParseInterfaceDescriptor() 292 … ParseEndpointDescriptor(buffer + cursor + epCursor, length - cursor - epCursor, epCursor, ep); in ParseInterfaceDescriptor() 295 cursor += epCursor; in ParseInterfaceDescriptor() [all …]
|
/ohos5.0/commonlibrary/rust/ylong_json/src/value/object/ |
H A D | linked_list.rs | 241 let _ = cursor.index()?; in last_node_mut() 242 cursor.current_node() in last_node_mut() 249 while cursor.index().is_some() { in get_key_mut_maybe_insert() 252 ptr = cursor.current_node_ptr(); in get_key_mut_maybe_insert() 255 cursor.move_next(); in get_key_mut_maybe_insert() 273 while cursor.index().is_some() { in get_cursor() 276 return Some(cursor); in get_cursor() 278 cursor.move_next(); in get_cursor() 286 while cursor.index().is_some() { in get_cursor_mut() 289 return Some(cursor); in get_cursor_mut() [all …]
|
/ohos5.0/commonlibrary/rust/ylong_json/src/value/array/ |
H A D | linked_list.rs | 303 let _ = cursor.index()?; in get_cursor() 304 cursor.move_prev(); in get_cursor() 307 Some(cursor) in get_cursor() 312 let _ = cursor.index()?; in get_cursor() 313 cursor.move_next(); in get_cursor() 316 Some(cursor) in get_cursor() 332 let _ = cursor.index()?; in get_cursor_mut() 333 cursor.move_prev(); in get_cursor_mut() 336 Some(cursor) in get_cursor_mut() 342 cursor.move_next(); in get_cursor_mut() [all …]
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_4.0.9.5/ |
H A D | changelogs-distributeddatamgr.md | 4 …r.1 OH_Cursor结构体的函数指针成员变量**int** (*close)(OH_Cursor *cursor)变更为**int** (*destroy)(OH_Cursor *curso… 15 int (*close)(OH_Cursor *cursor); 21 int (*destroy)(OH_Cursor *cursor); 30 cursor->close(cursor); 36 cursor->destroy(cursor);
|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.0.10.1/ |
H A D | changelogs-imf.md | 9 …tForwardSync(length:number): string | Obtains the specific-length text before the cursor.| 10 …etBackwardSync(length:number): string | Obtains the specific-length text after the cursor.| 11 | deleteForwardSync(length:number): void | Deletes the fixed-length text before the cursor.| 12 | deleteBackwardSync(length:number): void | Deletes the fixed-length text after the cursor.| 15 | moveCursorSync(direction: number): void | Moves the cursor. | 17 | selectByMovementSync(movement: Movement): void | Selects text based on the cursor movement direct… 18 | getTextIndexAtCursorSync(): number | Obtains the index of the text where the cursor i…
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/ |
H A D | list_children_main_size.h | 69 int32_t cursor = 0; in ChangeData() local 73 for (; cursor < replaceCount; cursor++) { in ChangeData() 74 childrenSize_[start + cursor] = newChildrenSize[cursor]; in ChangeData() 77 auto deleteStartPos = childrenSize_.begin() + start + cursor; in ChangeData() 85 auto insertStartPos = childrenSize_.begin() + start + cursor; in ChangeData() 86 … childrenSize_.insert(insertStartPos, newChildrenSize.begin() + cursor, newChildrenSize.end()); in ChangeData()
|
/ohos5.0/docs/zh-cn/application-dev/database/ |
H A D | native-relational-store-guidelines.md | 197 OH_Cursor *cursor = OH_Rdb_Query(store_, predicates, columnNames, len); 200 cursor->getColumnCount(cursor, &columnCount); 204 while (cursor->goToNextRow(cursor) == OH_Rdb_ErrCode::RDB_OK) { 205 cursor->getInt64(cursor, 1, &age); 211 cursor->destroy(cursor); 261 cursor->goToNextRow(cursor); 265 errCode = cursor->getAssets(cursor, 2, nullptr, &assetCount); 267 errCode = cursor->getAssets(cursor, 2, assets, &assetCount); 296 cursor->destroy(cursor); 305 OH_Cursor *cursor; [all …]
|
/ohos5.0/base/startup/init/services/begetctl/shell/ |
H A D | shell_bas.c | 214 shell->cursor = 0; in BShellEnvHandleEnter() 252 shell->cursor--; in BShellEnvHandleBackspace() 255 } else if (shell->cursor > 0) { in BShellEnvHandleBackspace() 257 shell->buffer[shell->cursor + i - 1] = shell->buffer[shell->cursor + i]; in BShellEnvHandleBackspace() 260 shell->cursor--; in BShellEnvHandleBackspace() 290 shell->cursor++; in BShellEnvHandleNormal() 294 shell->buffer[shell->cursor + i] = shell->buffer[shell->cursor + i - 1]; in BShellEnvHandleNormal() 309 shell->cursor = shell->length; in BShellEnvHandleNormal() 375 shell->cursor++; in BShellEnvProcessInput() 381 shell->cursor--; in BShellEnvProcessInput() [all …]
|
/ohos5.0/foundation/communication/ipc/ipc/native/test/fuzztest/core/bufferobject_fuzzer/ |
H A D | bufferobject_fuzzer.cpp | 92 ssize_t cursor = *(reinterpret_cast<const ssize_t*>(data)); in SetReceiveBufferWriteCursorTest() local 94 object.SetReceiveBufferWriteCursor(cursor); in SetReceiveBufferWriteCursorTest() 117 ssize_t cursor = *(reinterpret_cast<const ssize_t*>(data)); in SetReceiveBufferReadCursorTest() local 118 object.SetReceiveBufferReadCursor(cursor); in SetReceiveBufferReadCursorTest() 141 ssize_t cursor = *(reinterpret_cast<const ssize_t*>(data)); in SetSendBufferWriteCursorTest() local 142 object.SetSendBufferWriteCursor(cursor); in SetSendBufferWriteCursorTest() 165 ssize_t cursor = *(reinterpret_cast<const ssize_t*>(data)); in SetSendBufferReadCursorTest() local 166 object.SetSendBufferReadCursor(cursor); in SetSendBufferReadCursorTest()
|
/ohos5.0/base/telephony/call_manager/services/spam_call/src/ |
H A D | spam_call_adapter.cpp | 107 cJSON *cursor = cJSON_GetObjectItem(json, key.c_str()); in JsonGetNumberValue() local 108 if (!cJSON_IsNumber(cursor)) { in JsonGetNumberValue() 114 out = static_cast<int32_t>(cJSON_GetNumberValue(cursor)); in JsonGetNumberValue() 122 cJSON *cursor = cJSON_GetObjectItem(json, key.c_str()); in JsonGetStringValue() local 123 if (!cJSON_IsString(cursor)) { in JsonGetStringValue() 126 char *value = cJSON_GetStringValue(cursor); in JsonGetStringValue() 136 cJSON *cursor = cJSON_GetObjectItem(json, key.c_str()); in JsonGetBoolValue() local 137 bool value = cJSON_IsTrue(cursor); in JsonGetBoolValue()
|
/ohos5.0/base/hiviewdfx/faultloggerd/test/funchook/ |
H A D | dfx_hook_utils.c | 50 unw_cursor_t cursor; in LogBacktrace() local 51 unw_init_local(&cursor, &context); in LogBacktrace() 62 if (unw_get_reg(&cursor, UNW_REG_IP, (unw_word_t*)(&pc))) { in LogBacktrace() 76 int ret = unw_step(&cursor); in LogBacktrace()
|
/ohos5.0/foundation/ability/ability_runtime/cj_environment/frameworks/cj_environment/src/ |
H A D | dynamic_loader_ohos.cpp | 109 int32_t cursor = 0; in InitSharedLibsSonames() local 111 …if (sprintf_s(g_sharedLibsSonames + cursor, sharedLibsSonamesLength - cursor, "%s:", allowList[i])… in InitSharedLibsSonames() 116 cursor += strlen(allowList[i]) + 1; in InitSharedLibsSonames() 118 g_sharedLibsSonames[cursor] = '\0'; in InitSharedLibsSonames()
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-universal-attributes-cursor.md | 3 Cursor control attributes control how the cursor is displayed when the mouse pointer is placed over… 16 Sets the cursor style. This API is a global API. 29 Restores the cursor to its default style. This API is a global API. 69 When the mouse pointer is placed over the blue area, the west arrow cursor is displayed. 73 When the mouse pointer is placed over the green area, the east arrow cursor is displayed.
|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.0.9.5/ |
H A D | changelogs-distributeddatamgr.md | 4 …datamgr.1 Change of int (*close)(OH_Cursor *cursor) in OH_Cursor Struct to int (\*destroy)(OH_Curs… 15 int (*close)(OH_Cursor *cursor); 21 int (*destroy)(OH_Cursor *cursor); 30 cursor->close(cursor); 36 cursor->destroy(cursor);
|