WIFIP@PManager クラスのソースコードを確認するとhttps://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/wifi/java/android/net/wifi/p2p/WifiP2pManager.java
メソッド setDeviceName があることがわかりますが、wifip2pman を取得したときに Android コードWifiP2pManager wifip2pman = (WifiP2pManager)getActivity().getSystemService(Context.WIFI_P2P_SERVICE);
で setDeviceName メソッドが提供されません!?!?