Lines Matching refs:file
4 * you may not use this file except in compliance with the License.
97 FILE* file = fopen(VIBRATOR_PLAYMODE_PATH.c_str(), "w");
98 if (file == nullptr) {
102 if (fprintf(file, "%s\n", modeName.c_str()) < 0) {
105 if (fclose(file) < 0) {
113 FILE* file = fopen(VIBRATOR_ACTIVATEMODE_PATH.c_str(), "w");
114 if (file == nullptr) {
118 if (fprintf(file, "%d\n", value) < 0) {
121 if (fclose(file) < 0) {
128 FILE* file = fopen(VIBRATOR_DURATIONMODE_PATH.c_str(), "w");
129 if (file == nullptr) {
133 if (fprintf(file, "%d\n", time) < 0) {
136 if (fclose(file) < 0) {