Lines Matching refs:index

97     size_t index = (size_t)context;
98 printf("[%zu] Receive parameter commit %lld change %s %s \n", index, commit, key, value);
101 if ((index == 4) && !addWatcher) { // 4 when context == 4 add
102 index = 5; // 5 add context
103 ret = SystemWatchParameter(key, HandleParamChange2, (void *)index);
105 printf("Add watcher %s fail %zu \n", key, index);
110 if (index == 2) { // 2 when context == 2 delete 3
111 index = 3; // 3 delete context
112 RemoveParameterWatcher(key, HandleParamChange2, (void *)index);
114 printf("Remove watcher fail %zu \n", index);
118 if (index == 1) { // 1 when context == 1 delete 1
119 RemoveParameterWatcher(key, HandleParamChange2, (void *)index);
121 printf("Remove watcher fail %zu \n", index);
125 if ((index == 5) && (addWatcher == 1)) { // 5 when context == 5 delete 5
126 RemoveParameterWatcher(key, HandleParamChange2, (void *)index);
128 printf("Remove watcher fail %zu \n", index);
138 size_t index = (size_t)context;
139 printf("[%zu] Receive parameter commit %lld change %s %s \n", index, commit, key, value);
182 static size_t index = 0;
183 int ret = SystemWatchParameter(prefix, HandleParamChange1, (void *)index);
188 index++;
200 if (strcmp(argv[CMD_INDEX], "thread") == 0) { // 2 cmd index
205 int maxCount = StringToInt(argv[CMD_INDEX], -1); // 2 cmd index
256 if (argc > 2 && strcmp(argv[1], "wait") == 0) { // 2 service name index
257 PLUGIN_LOGI("group-test-stage3: wait service %s", argv[2]); // 2 service name index
258 ServiceWatchForStatus(argv[2], ServiceStatusChangeTest); // 2 service name index