Lines Matching refs:server
92 MtpServer* server = new MtpServer(getMtpDatabase(env, javaDatabase), controlFd, in android_mtp_MtpServer_setup() local
110 env->SetLongField(thiz, field_MtpServer_nativeContext, (jlong)server); in android_mtp_MtpServer_setup()
116 MtpServer* server = getMtpServer(env, thiz); in android_mtp_MtpServer_run() local
117 if (server) in android_mtp_MtpServer_run()
118 server->run(); in android_mtp_MtpServer_run()
128 MtpServer* server = getMtpServer(env, thiz); in android_mtp_MtpServer_cleanup() local
129 if (server) { in android_mtp_MtpServer_cleanup()
130 delete server; in android_mtp_MtpServer_cleanup()
142 MtpServer* server = getMtpServer(env, thiz); in android_mtp_MtpServer_send_object_added() local
143 if (server) in android_mtp_MtpServer_send_object_added()
144 server->sendObjectAdded(handle); in android_mtp_MtpServer_send_object_added()
154 MtpServer* server = getMtpServer(env, thiz); in android_mtp_MtpServer_send_object_removed() local
155 if (server) in android_mtp_MtpServer_send_object_removed()
156 server->sendObjectRemoved(handle); in android_mtp_MtpServer_send_object_removed()
166 MtpServer* server = getMtpServer(env, thiz); in android_mtp_MtpServer_send_object_info_changed() local
167 if (server) in android_mtp_MtpServer_send_object_info_changed()
168 server->sendObjectInfoChanged(handle); in android_mtp_MtpServer_send_object_info_changed()
178 MtpServer* server = getMtpServer(env, thiz); in android_mtp_MtpServer_send_device_property_changed() local
179 if (server) in android_mtp_MtpServer_send_device_property_changed()
180 server->sendDevicePropertyChanged(property); in android_mtp_MtpServer_send_device_property_changed()
190 MtpServer* server = getMtpServer(env, thiz); in android_mtp_MtpServer_add_storage() local
191 if (server) { in android_mtp_MtpServer_add_storage()
204 server->addStorage(storage); in android_mtp_MtpServer_add_storage()
221 MtpServer* server = getMtpServer(env, thiz); in android_mtp_MtpServer_remove_storage() local
222 if (server) { in android_mtp_MtpServer_remove_storage()
223 MtpStorage* storage = server->getStorage(storageId); in android_mtp_MtpServer_remove_storage()
225 server->removeStorage(storage); in android_mtp_MtpServer_remove_storage()