Commit Graph

31 Commits

Author SHA1 Message Date
openvela-robot 1635c81efd 3dde8c07998f0c9c7f9689495eb2690cc3f5a924
Signed-off-by: haopengxiang <haopengxiang@xiaomi.com>
2025-12-15 18:24:03 +08:00
openvela-robot 68f7fd9961 kvdb/client: fix monitor fd leak
Signed-off-by: chao an <anchao@xiaomi.com>
2025-12-15 18:24:03 +08:00
Xiang Xiao fcdaa0a743 utils: Add the basic android header files
include/android/log.h:
include/log/:
include/private/android_logger.h
  system/logging/

include/android/set_abort_message.h:
  bionic/libc/include/android/set_abort_message.h

include/cutils/trace.h:
  system/core/libcutils/include/cutils/trace.h

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2025-12-15 18:24:02 +08:00
jihandong 1905297463 frameworks: rm app_focus
dependson:888406

Signed-off-by: jihandong <jihandong@xiaomi.com>
2025-12-15 18:24:02 +08:00
Xiang Xiao b604114074 gdbus: remove glib header file from gdbus.h
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2025-12-15 18:24:02 +08:00
Xiang Xiao 9e0274a552 Revert "framework/gdbus: remove glib header file from gdbus.h"
This reverts commit 611fddab6fa2c183170a14811206546df6e6728f.
2025-12-15 18:24:02 +08:00
openvela-robot 0753f3b855 Add include to the public search path
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2025-12-15 18:24:02 +08:00
openvela-robot 0675feaf6b kvdb: add kvdb xx_oneway API
Signed-off-by: ligd <liguiding1@xiaomi.com>
2025-12-15 18:24:02 +08:00
dongjiuzhu1 019fc1bef7 framework/gdbus: remove glib header file from gdbus.h
Change gboolean to bool, guint to unsigned int, guint32 to uint32_t

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2025-12-15 18:24:02 +08:00
dongjiuzhu1 fe905a310f framework/gdbus: remove prefix g_ for gdbus api.
1. Remove prefix g_ for all gdbus api
2. Using macro to compatible g_ gdus api

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2025-12-15 18:24:02 +08:00
openvela-robot 35a9155688 framework/gdbus: initial version for D-Bus heleper library
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
2025-12-15 18:24:02 +08:00
wangbowen6 a9633d030d kvdb: add kvdb monitor support
Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
2025-12-15 18:24:01 +08:00
openvela-robot e2c7c43f3a kvdb: fix property_list exit early problem
when the kvdb has too many kv pairs, after kvdb_list_consume()
blocked in sendmsg (write buffer not enough), the domain socket
buffer layout may became:
[k0_len][v0_len][k0][v0]...[kn_len][vn_len][kn][vn][the last char]
so the client property_list will receive only one char (ret = 1)
after received [k0, v0] ~ [kn, vn], but actually the property list
is not terminated, property_list exit early problem happened.

this problem can be easily reproduced in 86panel by running kvdb
testcase twice.

Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
2025-12-15 18:24:01 +08:00
openvela-robot abf21c6560 frameworks/utils: move bin path to apps/staging
Signed-off-by: haopengxiang <haopengxiang@xiaomi.com>
2025-12-15 18:24:01 +08:00
openvela-robot a9549ca708 frameworks/kvdb: move bin path to apps/staging
Signed-off-by: haopengxiang <haopengxiang@xiaomi.com>
2025-12-15 18:24:01 +08:00
openvela-robot f69f1f4058 frameworks/utils: create bin to current directory
Signed-off-by: haopengxiang <haopengxiang@xiaomi.com>
2025-12-15 18:24:01 +08:00
openvela-robot fe0392a514 frameworks/kvdb: create bin to current directory
Signed-off-by: haopengxiang <haopengxiang@xiaomi.com>
2025-12-15 18:24:01 +08:00
openvela-robot 4f187d2f88 utils: build utils lib into vendor/bes/boards.. from source for m0
Signed-off-by: haopengxiang <haopengxiang@xiaomi.com>
2025-12-15 18:24:01 +08:00
Xiang Xiao 15a721ddc3 Move kbdb.h to include directory
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2025-12-15 18:24:00 +08:00
Xiang Xiao 1566a11c50 frameworks/kvdb: add property_set_buffer and property_get_buffer
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2025-12-15 18:24:00 +08:00
ptr_b 60fb6dfb4e frameworks/kvdb: update desc to doxygen style
Signed-off-by: ptr_b <bijunda1@xiaomi.com>
2025-12-15 18:24:00 +08:00
openvela-robot 669702b0c9 fix: optimize default load multi kvdb source files
Signed-off-by: huxiandong <huxiandong@xiaomi.com>
2025-12-15 18:24:00 +08:00
haopengxiang 9266e989fa app focus: add focus_customize value in focus_id for user
1. add focus_customize in focus_id struct
2. extend app_focus_stack_display for more details

Signed-off-by: haopengxiang <haopengxiang@xiaomi.com>
2025-12-15 18:24:00 +08:00
haopengxiang 9b78ad0301 app focus: basic module for different focus frameworks
update config description and use list_node as head node

Signed-off-by: haopengxiang <haopengxiang@xiaomi.com>
2025-12-15 18:24:00 +08:00
haopengxiang 9c39af1525 Revert "app focus: use list_node as head node"
This reverts commit 6c4b115af4577cbae027b70d09be8af1214e4745.

Reason for revert: Kconfig needs to be updated
2025-12-15 18:24:00 +08:00
openvela-robot 2eddade7d5 app focus: use list_node as head node
remove only interface app_focus_request for method simplification.

Signed-off-by: haopengxiang <haopengxiang@xiaomi.com>
2025-12-15 18:24:00 +08:00
chentao9 28d41782a7 feature: kvdb: add initial value reload support
if the initial value file has been modified,use api 'propprop_reload' to refresh initial value of kvdb

Signed-off-by: chentao9 <chentao9@xiaomi.com>
2025-12-15 18:23:59 +08:00
Xiang Xiao d7fe92f930 kvdb: extend the length of name and value to 127 and 255
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2025-12-15 18:23:59 +08:00
openvela-robot d01f202cfa frameworks/kvdb: fix recv() logic in property_list
Fix handling logic when local socket pipe is full, server is
blocked and client does not receive the whole message. The client now
waits for the whole message to be received instead of disspecific productding it and
continue, which will break the communication afterwards.

Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2025-12-15 18:23:59 +08:00
openvela-robot afbe799688 Initial empty repository 2025-12-15 18:23:59 +08:00
Xiang Xiao b6ace1c58d frameworks/kvdb: Add Android compatible header file
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2025-12-15 18:23:59 +08:00