| | | |
Offset 325, 15 lines modified | Offset 325, 15 lines modified |
325 | ········final·StringBuilder·sb·=·new·StringBuilder(); | 325 | ········final·StringBuilder·sb·=·new·StringBuilder(); |
326 | ········sb.append("··mSettableParameters:·"); | 326 | ········sb.append("··mSettableParameters:·"); |
327 | ········sb.append(this.mSettableParameters); | 327 | ········sb.append(this.mSettableParameters); |
328 | ········printWriter.println(sb.toString()); | 328 | ········printWriter.println(sb.toString()); |
329 | ········this.mHal.dump(fileDescriptor,·printWriter,·array); | 329 | ········this.mHal.dump(fileDescriptor,·printWriter,·array); |
330 | ····} | 330 | ····} |
331 | ···· | 331 | ···· |
332 | ····public·boolean·enableAndConfigure(final·short·n,·final·ConfigRequest·configRequest,·final·boolean·b,·final·boolean·b2,·final·boolean·b3,·final·boolean·b4)·{ | 332 | ····public·boolean·enableAndConfigure(final·short·n,·final·ConfigRequest·configRequest,·final·boolean·b,·final·boolean·b2,·final·boolean·b3,·final·boolean·b4,·final·boolean·enableRanging)·{ |
333 | ········final·boolean·mDbg·=·this.mDbg; | 333 | ········final·boolean·mDbg·=·this.mDbg; |
334 | ········final·String·s·=·"WifiAwareNativeApi"; | 334 | ········final·String·s·=·"WifiAwareNativeApi"; |
335 | ········if·(mDbg)·{ | 335 | ········if·(mDbg)·{ |
336 | ············final·StringBuilder·sb·=·new·StringBuilder(); | 336 | ············final·StringBuilder·sb·=·new·StringBuilder(); |
337 | ············sb.append("enableAndConfigure:·transactionId="); | 337 | ············sb.append("enableAndConfigure:·transactionId="); |
338 | ············sb.append(n); | 338 | ············sb.append(n); |
339 | ············sb.append(",·configRequest="); | 339 | ············sb.append(",·configRequest="); |
Offset 353, 15 lines modified | Offset 353, 14 lines modified |
353 | ········if·(wifiNanIface·==·null)·{ | 353 | ········if·(wifiNanIface·==·null)·{ |
354 | ············Log.e(s,·"enableAndConfigure:·null·interface"); | 354 | ············Log.e(s,·"enableAndConfigure:·null·interface"); |
355 | ············return·false; | 355 | ············return·false; |
356 | ········} | 356 | ········} |
357 | ········final·com.android.wifi.x.android.hardware.wifi.V1_2.IWifiNanIface·mockableCastTo_1_2·=·this.mockableCastTo_1_2(wifiNanIface); | 357 | ········final·com.android.wifi.x.android.hardware.wifi.V1_2.IWifiNanIface·mockableCastTo_1_2·=·this.mockableCastTo_1_2(wifiNanIface); |
358 | ········final·com.android.wifi.x.android.hardware.wifi.V1_4.IWifiNanIface·mockableCastTo_1_3·=·this.mockableCastTo_1_4(wifiNanIface); | 358 | ········final·com.android.wifi.x.android.hardware.wifi.V1_4.IWifiNanIface·mockableCastTo_1_3·=·this.mockableCastTo_1_4(wifiNanIface); |
359 | ········final·NanConfigRequestSupplemental·nanConfigRequestSupplemental·=·new·NanConfigRequestSupplemental(); | 359 | ········final·NanConfigRequestSupplemental·nanConfigRequestSupplemental·=·new·NanConfigRequestSupplemental(); |
360 | ········final·boolean·enableRanging·=·true; | |
361 | ········if·(mockableCastTo_1_2·!=·null·||·mockableCastTo_1_3·!=·null)·{ | 360 | ········if·(mockableCastTo_1_2·!=·null·||·mockableCastTo_1_3·!=·null)·{ |
362 | ············nanConfigRequestSupplemental.discoveryBeaconIntervalMs·=·0; | 361 | ············nanConfigRequestSupplemental.discoveryBeaconIntervalMs·=·0; |
363 | ············nanConfigRequestSupplemental.numberOfSpatialStreamsInDiscovery·=·0; | 362 | ············nanConfigRequestSupplemental.numberOfSpatialStreamsInDiscovery·=·0; |
364 | ············nanConfigRequestSupplemental.enableDiscoveryWindowEarlyTermination·=·false; | 363 | ············nanConfigRequestSupplemental.enableDiscoveryWindowEarlyTermination·=·false; |
365 | ············nanConfigRequestSupplemental.enableRanging·=·enableRanging; | 364 | ············nanConfigRequestSupplemental.enableRanging·=·enableRanging; |
366 | ········} | 365 | ········} |
367 | ········final·NanBandSpecificConfig·nanBandSpecificConfig·=·new·NanBandSpecificConfig(); | 366 | ········final·NanBandSpecificConfig·nanBandSpecificConfig·=·new·NanBandSpecificConfig(); |
Offset 369, 93 lines modified | Offset 368, 94 lines modified |
369 | ········nanBandSpecificConfig.rssiClose·=·b5; | 368 | ········nanBandSpecificConfig.rssiClose·=·b5; |
370 | ········nanBandSpecificConfig.rssiMiddle·=·70; | 369 | ········nanBandSpecificConfig.rssiMiddle·=·70; |
371 | ········nanBandSpecificConfig.rssiCloseProximity·=·b5; | 370 | ········nanBandSpecificConfig.rssiCloseProximity·=·b5; |
372 | ········nanBandSpecificConfig.dwellTimeMs·=·-56; | 371 | ········nanBandSpecificConfig.dwellTimeMs·=·-56; |
373 | ········nanBandSpecificConfig.scanPeriodSec·=·20; | 372 | ········nanBandSpecificConfig.scanPeriodSec·=·20; |
374 | ········final·int[]·mDiscoveryWindowInterval·=·configRequest.mDiscoveryWindowInterval; | 373 | ········final·int[]·mDiscoveryWindowInterval·=·configRequest.mDiscoveryWindowInterval; |
375 | ········final·int·n2·=·mDiscoveryWindowInterval[0]; | 374 | ········final·int·n2·=·mDiscoveryWindowInterval[0]; |
376 | ········final·String·s2·=·s; | |
377 | ········final·int·n3·=·-1; | 375 | ········final·int·n3·=·-1; |
| 376 | ········final·String·s2·=·s; |
| 377 | ········final·int·validDiscoveryWindowIntervalVal·=·1; |
378 | ········if·(n2·==·n3)·{ | 378 | ········if·(n2·==·n3)·{ |
379 | ············nanBandSpecificConfig.validDiscoveryWindowIntervalVal·=·false; | 379 | ············nanBandSpecificConfig.validDiscoveryWindowIntervalVal·=·false; |
380 | ········} | 380 | ········} |
381 | ········else·{ | 381 | ········else·{ |
382 | ············nanBandSpecificConfig.validDiscoveryWindowIntervalVal·=·true; | 382 | ············nanBandSpecificConfig.validDiscoveryWindowIntervalVal·=·(validDiscoveryWindowIntervalVal·!=·0); |
383 | ············nanBandSpecificConfig.discoveryWindowIntervalVal·=·(byte)mDiscoveryWindowInterval[0]; | 383 | ············nanBandSpecificConfig.discoveryWindowIntervalVal·=·(byte)mDiscoveryWindowInterval[0]; |
384 | ········} | 384 | ········} |
385 | ········final·NanBandSpecificConfig·nanBandSpecificConfig2·=·new·NanBandSpecificConfig(); | 385 | ········final·NanBandSpecificConfig·nanBandSpecificConfig2·=·new·NanBandSpecificConfig(); |
386 | ········final·byte·b6·=·60; | 386 | ········final·byte·b6·=·60; |
387 | ········nanBandSpecificConfig2.rssiClose·=·b6; | 387 | ········nanBandSpecificConfig2.rssiClose·=·b6; |
388 | ········nanBandSpecificConfig2.rssiMiddle·=·75; | 388 | ········nanBandSpecificConfig2.rssiMiddle·=·75; |
389 | ········nanBandSpecificConfig2.rssiCloseProximity·=·b6; | 389 | ········nanBandSpecificConfig2.rssiCloseProximity·=·b6; |
390 | ········nanBandSpecificConfig2.dwellTimeMs·=·-56; | 390 | ········nanBandSpecificConfig2.dwellTimeMs·=·-56; |
391 | ········nanBandSpecificConfig2.scanPeriodSec·=·20; | 391 | ········nanBandSpecificConfig2.scanPeriodSec·=·20; |
392 | ········final·int[]·mDiscoveryWindowInterval2·=·configRequest.mDiscoveryWindowInterval; | 392 | ········final·int[]·mDiscoveryWindowInterval2·=·configRequest.mDiscoveryWindowInterval; |
393 | ········final·IWifiNanIface·wifiNanIface2·=·wifiNanIface; | 393 | ········if·(mDiscoveryWindowInterval2[validDiscoveryWindowIntervalVal]·==·-1)·{ |
394 | ········final·int·validDiscoveryWindowIntervalVal·=·1; | |
395 | ········if·(mDiscoveryWindowInterval2[validDiscoveryWindowIntervalVal]·==·n3)·{ | |
396 | ············nanBandSpecificConfig2.validDiscoveryWindowIntervalVal·=·false; | 394 | ············nanBandSpecificConfig2.validDiscoveryWindowIntervalVal·=·false; |
397 | ········} | 395 | ········} |
398 | ········else·{ | 396 | ········else·{ |
399 | ············nanBandSpecificConfig2.validDiscoveryWindowIntervalVal·=·(validDiscoveryWindowIntervalVal·!=·0); | 397 | ············final·int·validDiscoveryWindowIntervalVal2·=·1; |
400 | ············nanBandSpecificConfig2.discoveryWindowIntervalVal·=·(byte)mDiscoveryWindowInterval2[validDiscoveryWindowIntervalVal]; | 398 | ············nanBandSpecificConfig2.validDiscoveryWindowIntervalVal·=·(validDiscoveryWindowIntervalVal2·!=·0); |
| 399 | ············nanBandSpecificConfig2.discoveryWindowIntervalVal·=·(byte)mDiscoveryWindowInterval2[validDiscoveryWindowIntervalVal2]; |
401 | ········} | 400 | ········} |
402 | ········final·NanBandSpecificConfig·nanBandSpecificConfig3·=·new·NanBandSpecificConfig(); | 401 | ········final·NanBandSpecificConfig·nanBandSpecificConfig3·=·new·NanBandSpecificConfig(); |
403 | ········final·byte·b7·=·60; | 402 | ········final·byte·b7·=·60; |
404 | ········nanBandSpecificConfig3.rssiClose·=·b7; | 403 | ········nanBandSpecificConfig3.rssiClose·=·b7; |
405 | ········nanBandSpecificConfig3.rssiMiddle·=·75; | 404 | ········nanBandSpecificConfig3.rssiMiddle·=·75; |
406 | ········nanBandSpecificConfig3.rssiCloseProximity·=·b7; | 405 | ········nanBandSpecificConfig3.rssiCloseProximity·=·b7; |
407 | ········nanBandSpecificConfig3.dwellTimeMs·=·-56; | 406 | ········nanBandSpecificConfig3.dwellTimeMs·=·-56; |
408 | ········nanBandSpecificConfig3.scanPeriodSec·=·20; | 407 | ········nanBandSpecificConfig3.scanPeriodSec·=·20; |
409 | ········final·int[]·mDiscoveryWindowInterval3·=·configRequest.mDiscoveryWindowInterval; | 408 | ········final·int[]·mDiscoveryWindowInterval3·=·configRequest.mDiscoveryWindowInterval; |
410 | ········final·byte·b8·=·2; | 409 | ········final·IWifiNanIface·wifiNanIface2·=·wifiNanIface; |
411 | ········final·com.android.wifi.x.android.hardware.wifi.V1_2.IWifiNanIface·wifiNanIface3·=·mockableCastTo_1_2; | 410 | ········if·(mDiscoveryWindowInterval3[2]·==·-1)·{ |
412 | ········if·(mDiscoveryWindowInterval3[b8]·==·n3)·{ | |
413 | ············nanBandSpecificConfig3.validDiscoveryWindowIntervalVal·=·false; | 411 | ············nanBandSpecificConfig3.validDiscoveryWindowIntervalVal·=·false; |
414 | ········} | 412 | ········} |
415 | ········else·{ | 413 | ········else·{ |
416 | ············nanBandSpecificConfig3.validDiscoveryWindowIntervalVal·=·true; | 414 | ············nanBandSpecificConfig3.validDiscoveryWindowIntervalVal·=·true; |
417 | ············nanBandSpecificConfig3.discoveryWindowIntervalVal·=·(byte)mDiscoveryWindowInterval3[b8]; | 415 | ············nanBandSpecificConfig3.discoveryWindowIntervalVal·=·(byte)mDiscoveryWindowInterval3[2]; |
418 | ········} | 416 | ········} |
419 | ········final·String·s3·=·"mac_random_interval_sec"; | 417 | ········final·String·s3·=·"mac_random_interval_sec"; |
420 | ········String·s4·=·null; | 418 | ········String·s4·=·null; |
421 | ········Label_2187:·{ | 419 | ········Label_2216:·{ |
422 | ············if·(!b2)·{ | 420 | ············if·(!b2)·{ |
423 | ················break·Label_2187; | 421 | ················break·Label_2216; |
424 | ············} | 422 | ············} |
425 | ············Label_1450:·{ | 423 | ············Label_1480:·{ |
426 | ················if·(mockableCastTo_1_3·==·null)·{ | 424 | ················if·(mockableCastTo_1_3·==·null)·{ |
427 | ····················break·Label_1450; | 425 | ····················break·Label_1480; |
428 | ················} | 426 | ················} |
429 | ················try·{ | 427 | ················try·{ |
430 | ····················try·{ | 428 | ····················try·{ |
431 | ························final·NanEnableRequest·nanEnableRequest·=·new·NanEnableRequest(); | 429 | ························final·NanEnableRequest·nanEnableRequest·=·new·NanEnableRequest(); |
432 | ························final·boolean[]·operateInBand·=·nanEnableRequest.operateInBand; | 430 | ························final·boolean[]·operateInBand·=·nanEnableRequest.operateInBand; |
433 | ························final·int·n4·=·1; | 431 | ························final·int·n4·=·1; |
434 | ························operateInBand[0]·=·(n4·!=·0); | 432 | ························operateInBand[0]·=·(n4·!=·0); |
435 | ························final·boolean[]·operateInBand2·=·nanEnableRequest.operateInBand; | 433 | ························final·boolean[]·operateInBand2·=·nanEnableRequest.operateInBand; |
436 | ························try·{ | 434 | ························try·{ |
437 | ····························operateInBand2[n4]·=·configRequest.mSupport5gBand; | 435 | ····························operateInBand2[n4]·=·configRequest.mSupport5gBand; |
438 | ····························final·boolean[]·operateInBand3·=·nanEnableRequest.operateInBand; | 436 | ····························final·boolean[]·operateInBand3·=·nanEnableRequest.operateInBand; |
439 | ····························try·{ | 437 | ····························try·{ |
440 | ································operateInBand3[b8]·=·configRequest.mSupport6gBand; | 438 | ································final·boolean·mSupport6gBand·=·configRequest.mSupport6gBand; |
| 439 | ································final·byte·hopCountMax·=·2; |
| 440 | ································operateInBand3[hopCountMax]·=·mSupport6gBand; |
441 | ································final·NanEnableRequest·nanEnableRequest2·=·nanEnableRequest; | 441 | ································final·NanEnableRequest·nanEnableRequest2·=·nanEnableRequest; |
442 | ································try·{ | 442 | ································try·{ |
443 | ····································nanEnableRequest2.hopCountMax·=·b8; | 443 | ····································nanEnableRequest2.hopCountMax·=·hopCountMax; |
444 | ····································final·com.android.wifi.x.android.hardware.wifi.V1_4.NanConfigRequest·configParams·=·nanEnableRequest.configParams; | 444 | ····································final·com.android.wifi.x.android.hardware.wifi.V1_4.NanConfigRequest·configParams·=·nanEnableRequest.configParams; |
445 | ····································try·{ | 445 | ····································try·{ |
446 | ········································configParams.masterPref·=·(byte)configRequest.mMasterPreference; | 446 | ········································configParams.masterPref·=·(byte)configRequest.mMasterPreference; |
447 | ········································nanEnableRequest.configParams.disableDiscoveryAddressChangeIndication·=·!b; | 447 | ········································nanEnableRequest.configParams.disableDiscoveryAddressChangeIndication·=·!b; |
448 | ········································nanEnableRequest.configParams.disableStartedClusterIndication·=·!b; | 448 | ········································nanEnableRequest.configParams.disableStartedClusterIndication·=·!b; |
449 | ········································nanEnableRequest.configParams.disableJoinedClusterIndication·=·!b; | 449 | ········································nanEnableRequest.configParams.disableJoinedClusterIndication·=·!b; |
450 | ········································final·com.android.wifi.x.android.hardware.wifi.V1_4.NanConfigRequest·configParams2·=·nanEnableRequest.configParams; | 450 | ········································final·com.android.wifi.x.android.hardware.wifi.V1_4.NanConfigRequest·configParams2·=·nanEnableRequest.configParams; |
451 | ········································final·boolean·b9·=·true; | 451 | ········································final·boolean·b8·=·true; |
452 | ········································configParams2.includePublishServiceIdsInBeacon·=·b9; | 452 | ········································configParams2.includePublishServiceIdsInBeacon·=·b8; |
453 | ········································nanEnableRequest.configParams.numberOfPublishServiceIdsInBeacon·=·0; | 453 | ········································nanEnableRequest.configParams.numberOfPublishServiceIdsInBeacon·=·0; |
454 | ········································nanEnableRequest.configParams.includeSubscribeServiceIdsInBeacon·=·b9; | 454 | ········································nanEnableRequest.configParams.includeSubscribeServiceIdsInBeacon·=·b8; |
455 | ········································nanEnableRequest.configParams.numberOfSubscribeServiceIdsInBeacon·=·0; | 455 | ········································nanEnableRequest.configParams.numberOfSubscribeServiceIdsInBeacon·=·0; |
456 | ········································nanEnableRequest.configParams.rssiWindowSize·=·8; | 456 | ········································nanEnableRequest.configParams.rssiWindowSize·=·8; |
457 | ········································final·com.android.wifi.x.android.hardware.wifi.V1_4.NanConfigRequest·configParams3·=·nanEnableRequest.configParams; | 457 | ········································final·com.android.wifi.x.android.hardware.wifi.V1_4.NanConfigRequest·configParams3·=·nanEnableRequest.configParams; |
458 | ········································try·{ | 458 | ········································try·{ |
459 | ············································final·Object·value·=·this.mSettableParameters.get(s3); | 459 | ············································final·Object·value·=·this.mSettableParameters.get(s3); |
460 | ············································try·{ | 460 | ············································try·{ |
461 | ················································final·Integer·n5·=·(Integer)value; | 461 | ················································final·Integer·n5·=·(Integer)value; |
Offset 467, 15 lines modified | Offset 467, 15 lines modified |
467 | ························································final·com.android.wifi.x.android.hardware.wifi.V1_4.NanConfigRequest·configParams5·=·nanEnableRequest.configParams; | 467 | ························································final·com.android.wifi.x.android.hardware.wifi.V1_4.NanConfigRequest·configParams5·=·nanEnableRequest.configParams; |
468 | ························································try·{ | 468 | ························································try·{ |
469 | ····························································final·NanBandSpecificConfig[]·bandSpecificConfig·=·configParams5.bandSpecificConfig; | 469 | ····························································final·NanBandSpecificConfig[]·bandSpecificConfig·=·configParams5.bandSpecificConfig; |
470 | ····························································final·int·validClusterIdVals·=·1; | 470 | ····························································final·int·validClusterIdVals·=·1; |
471 | ····························································bandSpecificConfig[validClusterIdVals]·=·nanBandSpecificConfig2; | 471 | ····························································bandSpecificConfig[validClusterIdVals]·=·nanBandSpecificConfig2; |
472 | ····························································final·com.android.wifi.x.android.hardware.wifi.V1_4.NanConfigRequest·configParams6·=·nanEnableRequest.configParams; | 472 | ····························································final·com.android.wifi.x.android.hardware.wifi.V1_4.NanConfigRequest·configParams6·=·nanEnableRequest.configParams; |
473 | ····························································try·{ | 473 | ····························································try·{ |
474 | ································································configParams6.bandSpecificConfig[b8]·=·nanBandSpecificConfig3; | 474 | ································································configParams6.bandSpecificConfig[2]·=·nanBandSpecificConfig3; |
475 | ································································nanEnableRequest.debugConfigs.validClusterIdVals·=·(validClusterIdVals·!=·0); | 475 | ································································nanEnableRequest.debugConfigs.validClusterIdVals·=·(validClusterIdVals·!=·0); |
476 | ································································final·NanDebugConfig·debugConfigs·=·nanEnableRequest.debugConfigs; | 476 | ································································final·NanDebugConfig·debugConfigs·=·nanEnableRequest.debugConfigs; |
477 | ································································try·{ | 477 | ································································try·{ |
478 | ····································································debugConfigs.clusterIdTopRangeVal·=·(short)configRequest.mClusterHigh; | 478 | ····································································debugConfigs.clusterIdTopRangeVal·=·(short)configRequest.mClusterHigh; |
479 | ····································································final·NanDebugConfig·debugConfigs2·=·nanEnableRequest.debugConfigs; | 479 | ····································································final·NanDebugConfig·debugConfigs2·=·nanEnableRequest.debugConfigs; |
480 | ····································································try·{ | 480 | ····································································try·{ |
481 | ········································································debugConfigs2.clusterIdBottomRangeVal·=·(short)configRequest.mClusterLow; | 481 | ········································································debugConfigs2.clusterIdBottomRangeVal·=·(short)configRequest.mClusterLow; |
Offset 491, 311 lines modified | Offset 491, 305 lines modified |
491 | ········································································try·{ | 491 | ········································································try·{ |
492 | ············································································debugConfigs3.discoveryChannelMhzVal[0]·=·0; | 492 | ············································································debugConfigs3.discoveryChannelMhzVal[0]·=·0; |
493 | ············································································final·NanDebugConfig·debugConfigs4·=·nanEnableRequest.debugConfigs; | 493 | ············································································final·NanDebugConfig·debugConfigs4·=·nanEnableRequest.debugConfigs; |
494 | ············································································try·{ | 494 | ············································································try·{ |
495 | ················································································debugConfigs4.discoveryChannelMhzVal[1]·=·0; | 495 | ················································································debugConfigs4.discoveryChannelMhzVal[1]·=·0; |
496 | ················································································final·NanDebugConfig·debugConfigs5·=·nanEnableRequest.debugConfigs; | 496 | ················································································final·NanDebugConfig·debugConfigs5·=·nanEnableRequest.debugConfigs; |
497 | ················································································try·{ | 497 | ················································································try·{ |
498 | ····················································································debugConfigs5.discoveryChannelMhzVal[b8]·=·0; | 498 | ····················································································debugConfigs5.discoveryChannelMhzVal[2]·=·0; |
499 | ····················································································nanEnableRequest.debugConfigs.validUseBeaconsInBandVal·=·false; | 499 | ····················································································nanEnableRequest.debugConfigs.validUseBeaconsInBandVal·=·false; |
500 | ····················································································final·NanDebugConfig·debugConfigs6·=·nanEnableRequest.debugConfigs; | 500 | ····················································································final·NanDebugConfig·debugConfigs6·=·nanEnableRequest.debugConfigs; |
501 | ····················································································try·{ | 501 | ····················································································try·{ |
502 | ························································································final·boolean[]·useBeaconsInBandVal·=·debugConfigs6.useBeaconsInBandVal; | 502 | ························································································final·boolean[]·useBeaconsInBandVal·=·debugConfigs6.useBeaconsInBandVal; |
503 | ························································································final·int·n6·=·1; | 503 | ························································································final·int·n6·=·1; |
504 | ························································································useBeaconsInBandVal[0]·=·(n6·!=·0); | 504 | ························································································useBeaconsInBandVal[0]·=·(n6·!=·0); |
505 | ························································································final·NanDebugConfig·debugConfigs7·=·nanEnableRequest.debugConfigs; | 505 | ························································································final·NanDebugConfig·debugConfigs7·=·nanEnableRequest.debugConfigs; |
506 | ························································································try·{ | 506 | ························································································try·{ |
507 | ····························································································debugConfigs7.useBeaconsInBandVal[n6]·=·(n6·!=·0); | 507 | ····························································································debugConfigs7.useBeaconsInBandVal[n6]·=·(n6·!=·0); |
508 | ····························································································final·NanDebugConfig·debugConfigs8·=·nanEnableRequest.debugConfigs; | 508 | ····························································································final·NanDebugConfig·debugConfigs8·=·nanEnableRequest.debugConfigs; |
509 | ····························································································try·{ | 509 | ····························································································try·{ |
510 | ································································································debugConfigs8.useBeaconsInBandVal[b8]·=·(n6·!=·0); | 510 | ································································································debugConfigs8.useBeaconsInBandVal[2]·=·(n6·!=·0); |
511 | ································································································nanEnableRequest.debugConfigs.validUseSdfInBandVal·=·false; | 511 | ································································································nanEnableRequest.debugConfigs.validUseSdfInBandVal·=·false; |
512 | ································································································final·NanDebugConfig·debugConfigs9·=·nanEnableRequest.debugConfigs; | 512 | ································································································final·NanDebugConfig·debugConfigs9·=·nanEnableRequest.debugConfigs; |
513 | ································································································try·{ | 513 | ································································································try·{ |
514 | ····································································································debugConfigs9.useSdfInBandVal[0]·=·(n6·!=·0); | 514 | ····································································································debugConfigs9.useSdfInBandVal[0]·=·(n6·!=·0); |
515 | ····································································································final·NanDebugConfig·debugConfigs10·=·nanEnableRequest.debugConfigs; | 515 | ····································································································final·NanDebugConfig·debugConfigs10·=·nanEnableRequest.debugConfigs; |
516 | ····································································································try·{ | 516 | ····································································································try·{ |
517 | ········································································································debugConfigs10.useSdfInBandVal[n6]·=·(n6·!=·0); | 517 | ········································································································debugConfigs10.useSdfInBandVal[n6]·=·(n6·!=·0); |
518 | ········································································································final·NanDebugConfig·debugConfigs11·=·nanEnableRequest.debugConfigs; | 518 | ········································································································final·NanDebugConfig·debugConfigs11·=·nanEnableRequest.debugConfigs; |
519 | ········································································································try·{ | 519 | ········································································································try·{ |
520 | ············································································································debugConfigs11.useSdfInBandVal[b8]·=·(n6·!=·0); | 520 | ············································································································debugConfigs11.useSdfInBandVal[2]·=·(n6·!=·0); |
521 | ············································································································this.updateConfigForPowerSettings14(nanEnableRequest.configParams,·nanConfigRequestSupplemental,·b3,·b4); | 521 | ············································································································this.updateConfigForPowerSettings14(nanEnableRequest.configParams,·nanConfigRequestSupplemental,·b3,·b4); |
522 | ············································································································WifiStatus·wifiStatus·=·mockableCastTo_1_3.enableRequest_1_4(n,·nanEnableRequest,·nanConfigRequestSupplemental); | 522 | ············································································································WifiStatus·wifiStatus·=·mockableCastTo_1_3.enableRequest_1_4(n,·nanEnableRequest,·nanConfigRequestSupplemental); |
523 | ············································································································Label_2730:·{ | 523 | ············································································································Label_2758:·{ |
524 | ················································································································break·Label_2730; | 524 | ················································································································break·Label_2758; |
525 | ················································································································try·{ | 525 | ················································································································try·{ |
526 | ····················································································································final·com.android.wifi.x.android.hardware.wifi.V1_0.NanEnableRequest·nanEnableRequest3·=·new·com.android.wifi.x.android.hardware.wifi.V1_0.NanEnableRequest(); | 526 | ····················································································································final·com.android.wifi.x.android.hardware.wifi.V1_0.NanEnableRequest·nanEnableRequest3·=·new·com.android.wifi.x.android.hardware.wifi.V1_0.NanEnableRequest(); |
527 | ····················································································································final·boolean[]·operateInBand4·=·nanEnableRequest3.operateInBand; | 527 | ····················································································································final·boolean[]·operateInBand4·=·nanEnableRequest3.operateInBand; |
528 | ····················································································································final·int·n7·=·1; | 528 | ····················································································································final·int·n7·=·1; |
529 | ····················································································································operateInBand4[0]·=·(n7·!=·0); | 529 | ····················································································································operateInBand4[0]·=·(n7·!=·0); |
530 | ····················································································································final·boolean[]·operateInBand5·=·nanEnableRequest3.operateInBand; | 530 | ····················································································································final·boolean[]·operateInBand5·=·nanEnableRequest3.operateInBand; |
531 | ····················································································································try·{ | 531 | ····················································································································try·{ |
532 | ························································································································operateInBand5[n7]·=·configRequest.mSupport5gBand; | 532 | ························································································································operateInBand5[n7]·=·configRequest.mSupport5gBand; |
533 | ························································································································final·com.android.wifi.x.android.hardware.wifi.V1_0.NanEnableRequest·nanEnableRequest4·=·nanEnableRequest3; | 533 | ························································································································nanEnableRequest3.hopCountMax·=·2; |
| 534 | ························································································································final·NanConfigRequest·configParams7·=·nanEnableRequest3.configParams; |
534 | ························································································································try·{ | 535 | ························································································································try·{ |
535 | ····························································································································nanEnableRequest4.hopCountMax·=·b8; | 536 | ····························································································································configParams7.masterPref·=·(byte)configRequest.mMasterPreference; |
536 | ····························································································································final·NanConfigRequest·configParams7·=·nanEnableRequest3.configParams; | 537 | ····························································································································nanEnableRequest3.configParams.disableDiscoveryAddressChangeIndication·=·!b; |
| 538 | ····························································································································nanEnableRequest3.configParams.disableStartedClusterIndication·=·!b; |
| 539 | ····························································································································nanEnableRequest3.configParams.disableJoinedClusterIndication·=·!b; |
| 540 | ····························································································································final·NanConfigRequest·configParams8·=·nanEnableRequest3.configParams; |
| 541 | ····························································································································final·boolean·b9·=·true; |
| 542 | ····························································································································configParams8.includePublishServiceIdsInBeacon·=·b9; |
| 543 | ····························································································································nanEnableRequest3.configParams.numberOfPublishServiceIdsInBeacon·=·0; |
| 544 | ····························································································································nanEnableRequest3.configParams.includeSubscribeServiceIdsInBeacon·=·b9; |
| 545 | ····························································································································nanEnableRequest3.configParams.numberOfSubscribeServiceIdsInBeacon·=·0; |
| 546 | ····························································································································nanEnableRequest3.configParams.rssiWindowSize·=·8; |
| 547 | ····························································································································final·NanConfigRequest·configParams9·=·nanEnableRequest3.configParams; |
537 | ····························································································································try·{ | 548 | ····························································································································try·{ |
538 | ································································································································configParams7.masterPref·=·(byte)configRequest.mMasterPreference; | 549 | ································································································································final·Object·value2·=·this.mSettableParameters.get(s3); |
539 | ································································································································nanEnableRequest3.configParams.disableDiscoveryAddressChangeIndication·=·!b; | |
540 | ································································································································nanEnableRequest3.configParams.disableStartedClusterIndication·=·!b; | |
541 | ································································································································nanEnableRequest3.configParams.disableJoinedClusterIndication·=·!b; | |
542 | ································································································································final·NanConfigRequest·configParams8·=·nanEnableRequest3.configParams; | |
543 | ································································································································final·boolean·b10·=·true; | |
544 | ································································································································configParams8.includePublishServiceIdsInBeacon·=·b10; | |
545 | ································································································································nanEnableRequest3.configParams.numberOfPublishServiceIdsInBeacon·=·0; | |
546 | ································································································································nanEnableRequest3.configParams.includeSubscribeServiceIdsInBeacon·=·b10; | |
547 | ································································································································nanEnableRequest3.configParams.numberOfSubscribeServiceIdsInBeacon·=·0; | |
548 | ································································································································nanEnableRequest3.configParams.rssiWindowSize·=·8; | |
549 | ································································································································final·NanConfigRequest·configParams9·=·nanEnableRequest3.configParams; | |
550 | ································································································································try·{ | 550 | ································································································································try·{ |
551 | ····································································································································final·Object·value2·=·this.mSettableParameters.get(s3); | 551 | ····································································································································final·Integer·n8·=·(Integer)value2; |
552 | ····································································································································try·{ | 552 | ····································································································································try·{ |
553 | ········································································································································final·Integer·n8·=·(Integer)value2; | 553 | ········································································································································configParams9.macAddressRandomizationIntervalSec·=·n8; |
| 554 | ········································································································································final·NanConfigRequest·configParams10·=·nanEnableRequest3.configParams; |
554 | ········································································································································try·{ | 555 | ········································································································································try·{ |
555 | ············································································································································configParams9.macAddressRandomizationIntervalSec·=·n8; | 556 | ············································································································································configParams10.bandSpecificConfig[0]·=·nanBandSpecificConfig; |
556 | ············································································································································final·NanConfigRequest·configParams10·=·nanEnableRequest3.configParams; | 557 | ············································································································································final·NanConfigRequest·configParams11·=·nanEnableRequest3.configParams; |
557 | ············································································································································try·{ | 558 | ············································································································································try·{ |
558 | ················································································································································configParams10.bandSpecificConfig[0]·=·nanBandSpecificConfig; | 559 | ················································································································································final·NanBandSpecificConfig[]·bandSpecificConfig2·=·configParams11.bandSpecificConfig; |
559 | ················································································································································final·NanConfigRequest·configParams11·=·nanEnableRequest3.configParams; | 560 | ················································································································································final·int·validClusterIdVals2·=·1; |
| 561 | ················································································································································bandSpecificConfig2[validClusterIdVals2]·=·nanBandSpecificConfig2; |
| 562 | ················································································································································nanEnableRequest3.debugConfigs.validClusterIdVals·=·(validClusterIdVals2·!=·0); |
| 563 | ················································································································································final·com.android.wifi.x.android.hardware.wifi.V1_0.NanDebugConfig·debugConfigs12·=·nanEnableRequest3.debugConfigs; |
560 | ················································································································································try·{ | 564 | ················································································································································try·{ |
561 | ····················································································································································final·NanBandSpecificConfig[]·bandSpecificConfig2·=·configParams11.bandSpecificConfig; | 565 | ····················································································································································debugConfigs12.clusterIdTopRangeVal·=·(short)configRequest.mClusterHigh; |
562 | ····················································································································································final·int·validClusterIdVals2·=·1; | 566 | ····················································································································································final·com.android.wifi.x.android.hardware.wifi.V1_0.NanDebugConfig·debugConfigs13·=·nanEnableRequest3.debugConfigs; |
563 | ····················································································································································bandSpecificConfig2[validClusterIdVals2]·=·nanBandSpecificConfig2; | |
564 | ····················································································································································nanEnableRequest3.debugConfigs.validClusterIdVals·=·(validClusterIdVals2·!=·0); | |
565 | ····················································································································································final·com.android.wifi.x.android.hardware.wifi.V1_0.NanDebugConfig·debugConfigs12·=·nanEnableRequest3.debugConfigs; | |
566 | ····················································································································································try·{ | 567 | ····················································································································································try·{ |
567 | ························································································································································debugConfigs12.clusterIdTopRangeVal·=·(short)configRequest.mClusterHigh; | 568 | ························································································································································debugConfigs13.clusterIdBottomRangeVal·=·(short)configRequest.mClusterLow; |
568 | ························································································································································final·com.android.wifi.x.android.hardware.wifi.V1_0.NanDebugConfig·debugConfigs13·=·nanEnableRequest3.debugConfigs; | 569 | ························································································································································nanEnableRequest3.debugConfigs.validIntfAddrVal·=·false; |
| 570 | ························································································································································nanEnableRequest3.debugConfigs.validOuiVal·=·false; |
| 571 | ························································································································································nanEnableRequest3.debugConfigs.ouiVal·=·0; |
| 572 | ························································································································································nanEnableRequest3.debugConfigs.validRandomFactorForceVal·=·false; |
| 573 | ························································································································································nanEnableRequest3.debugConfigs.randomFactorForceVal·=·0; |
| 574 | ························································································································································nanEnableRequest3.debugConfigs.validHopCountForceVal·=·false; |
| 575 | ························································································································································nanEnableRequest3.debugConfigs.hopCountForceVal·=·0; |
| 576 | ························································································································································nanEnableRequest3.debugConfigs.validDiscoveryChannelVal·=·false; |
| 577 | ························································································································································final·com.android.wifi.x.android.hardware.wifi.V1_0.NanDebugConfig·debugConfigs14·=·nanEnableRequest3.debugConfigs; |
569 | ························································································································································try·{ | 578 | ························································································································································try·{ |
570 | ····························································································································································debugConfigs13.clusterIdBottomRangeVal·=·(short)configRequest.mClusterLow; | 579 | ····························································································································································debugConfigs14.discoveryChannelMhzVal[0]·=·0; |
571 | ····························································································································································nanEnableRequest3.debugConfigs.validIntfAddrVal·=·false; | 580 | ····························································································································································final·com.android.wifi.x.android.hardware.wifi.V1_0.NanDebugConfig·debugConfigs15·=·nanEnableRequest3.debugConfigs; |
572 | ····························································································································································nanEnableRequest3.debugConfigs.validOuiVal·=·false; | |
573 | ····························································································································································nanEnableRequest3.debugConfigs.ouiVal·=·0; | |
574 | ····························································································································································nanEnableRequest3.debugConfigs.validRandomFactorForceVal·=·false; | |
575 | ····························································································································································nanEnableRequest3.debugConfigs.randomFactorForceVal·=·0; | |
576 | ····························································································································································nanEnableRequest3.debugConfigs.validHopCountForceVal·=·false; | |
577 | ····························································································································································nanEnableRequest3.debugConfigs.hopCountForceVal·=·0; | |
578 | ····························································································································································nanEnableRequest3.debugConfigs.validDiscoveryChannelVal·=·false; | |
579 | ····························································································································································final·com.android.wifi.x.android.hardware.wifi.V1_0.NanDebugConfig·debugConfigs14·=·nanEnableRequest3.debugConfigs; | |
580 | ····························································································································································try·{ | 581 | ····························································································································································try·{ |
581 | ································································································································································debugConfigs14.discoveryChannelMhzVal[0]·=·0; | 582 | ································································································································································final·int[]·discoveryChannelMhzVal·=·debugConfigs15.discoveryChannelMhzVal; |
582 | ································································································································································final·com.android.wifi.x.android.hardware.wifi.V1_0.NanDebugConfig·debugConfigs15·=·nanEnableRequest3.debugConfigs; | 583 | ································································································································································final·int·n9·=·1; |
| 584 | ································································································································································discoveryChannelMhzVal[n9]·=·0; |
| 585 | ································································································································································nanEnableRequest3.debugConfigs.validUseBeaconsInBandVal·=·false; |
| 586 | ································································································································································final·com.android.wifi.x.android.hardware.wifi.V1_0.NanDebugConfig·debugConfigs16·=·nanEnableRequest3.debugConfigs; |
583 | ································································································································································try·{ | 587 | ································································································································································try·{ |
584 | ····································································································································································final·int[]·discoveryChannelMhzVal·=·debugConfigs15.discoveryChannelMhzVal; | 588 | ····································································································································································debugConfigs16.useBeaconsInBandVal[0]·=·(n9·!=·0); |
585 | ····································································································································································final·int·n9·=·1; | 589 | ····································································································································································final·com.android.wifi.x.android.hardware.wifi.V1_0.NanDebugConfig·debugConfigs17·=·nanEnableRequest3.debugConfigs; |
586 | ····································································································································································discoveryChannelMhzVal[n9]·=·0; | |
587 | ····································································································································································nanEnableRequest3.debugConfigs.validUseBeaconsInBandVal·=·false; | |
588 | ····································································································································································final·com.android.wifi.x.android.hardware.wifi.V1_0.NanDebugConfig·debugConfigs16·=·nanEnableRequest3.debugConfigs; | |
589 | ····································································································································································try·{ | 590 | ····································································································································································try·{ |
590 | ········································································································································································debugConfigs16.useBeaconsInBandVal[0]·=·(n9·!=·0); | 591 | ········································································································································································debugConfigs17.useBeaconsInBandVal[n9]·=·(n9·!=·0); |
591 | ········································································································································································final·com.android.wifi.x.android.hardware.wifi.V1_0.NanDebugConfig·debugConfigs17·=·nanEnableRequest3.debugConfigs; | 592 | ········································································································································································nanEnableRequest3.debugConfigs.validUseSdfInBandVal·=·false; |
| 593 | ········································································································································································final·com.android.wifi.x.android.hardware.wifi.V1_0.NanDebugConfig·debugConfigs18·=·nanEnableRequest3.debugConfigs; |
592 | ········································································································································································try·{ | 594 | ········································································································································································try·{ |
593 | ············································································································································································debugConfigs17.useBeaconsInBandVal[n9]·=·(n9·!=·0); | 595 | ············································································································································································debugConfigs18.useSdfInBandVal[0]·=·(n9·!=·0); |
594 | ············································································································································································nanEnableRequest3.debugConfigs.validUseSdfInBandVal·=·false; | 596 | ············································································································································································final·com.android.wifi.x.android.hardware.wifi.V1_0.NanDebugConfig·debugConfigs19·=·nanEnableRequest3.debugConfigs; |
595 | ············································································································································································final·com.android.wifi.x.android.hardware.wifi.V1_0.NanDebugConfig·debugConfigs18·=·nanEnableRequest3.debugConfigs; | |
596 | ············································································································································································try·{ | 597 | ············································································································································································try·{ |
597 | ················································································································································································debugConfigs18.useSdfInBandVal[0]·=·(n9·!=·0); | 598 | ················································································································································································debugConfigs19.useSdfInBandVal[n9]·=·(n9·!=·0); |
598 | ················································································································································································final·com.android.wifi.x.android.hardware.wifi.V1_0.NanDebugConfig·debugConfigs19·=·nanEnableRequest3.debugConfigs; | 599 | ················································································································································································this.updateConfigForPowerSettings(nanEnableRequest3.configParams,·nanConfigRequestSupplemental,·b3,·b4); |
| 600 | ················································································································································································if·(mockableCastTo_1_2·!=·null)·{ |
| 601 | ····················································································································································································wifiStatus·=·mockableCastTo_1_2.enableRequest_1_2(n,·nanEnableRequest3,·nanConfigRequestSupplemental); |
| 602 | ····················································································································································································break·Label_2758; |
| 603 | ················································································································································································} |
| 604 | ················································································································································································wifiStatus·=·wifiNanIface2.enableRequest(n,·nanEnableRequest3); |
| 605 | ················································································································································································break·Label_2758; |
599 | ················································································································································································try·{ | 606 | ················································································································································································try·{ |
600 | ····················································································································································································debugConfigs19.useSdfInBandVal[n9]·=·(n9·!=·0); | 607 | ····················································································································································································final·com.android.wifi.x.android.hardware.wifi.V1_4.NanConfigRequest·nanConfigRequest·=·new·com.android.wifi.x.android.hardware.wifi.V1_4.NanConfigRequest(); |
601 | ····················································································································································································this.updateConfigForPowerSettings(nanEnableRequest3.configParams,·nanConfigRequestSupplemental,·b3,·b4); | 608 | ····················································································································································································nanConfigRequest.masterPref·=·(byte)configRequest.mMasterPreference; |
602 | ····················································································································································································if·(wifiNanIface3·!=·null)·{ | 609 | ····················································································································································································nanConfigRequest.disableDiscoveryAddressChangeIndication·=·!b; |
603 | ························································································································································································wifiStatus·=·wifiNanIface3.enableRequest_1_2(n,·nanEnableRequest3,·nanConfigRequestSupplemental); | 610 | ····················································································································································································nanConfigRequest.disableStartedClusterIndication·=·!b; |
604 | ························································································································································································break·Label_2730; | 611 | ····················································································································································································nanConfigRequest.disableJoinedClusterIndication·=·!b; |
605 | ····················································································································································································} | 612 | ····················································································································································································final·boolean·b10·=·true; |
606 | ····················································································································································································wifiStatus·=·wifiNanIface2.enableRequest(n,·nanEnableRequest3); | 613 | ····················································································································································································nanConfigRequest.includePublishServiceIdsInBeacon·=·b10; |
607 | ····················································································································································································break·Label_2730; | 614 | ····················································································································································································nanConfigRequest.numberOfPublishServiceIdsInBeacon·=·0; |
| 615 | ····················································································································································································final·com.android.wifi.x.android.hardware.wifi.V1_4.NanConfigRequest·nanConfigRequest2·=·nanConfigRequest; |
608 | ····················································································································································································try·{ | 616 | ····················································································································································································try·{ |
609 | ························································································································································································final·com.android.wifi.x.android.hardware.wifi.V1_4.NanConfigRequest·nanConfigRequest·=·new·com.android.wifi.x.android.hardware.wifi.V1_4.NanConfigRequest(); | 617 | ························································································································································································nanConfigRequest2.includeSubscribeServiceIdsInBeacon·=·b10; |
610 | ························································································································································································nanConfigRequest.masterPref·=·(byte)configRequest.mMasterPreference; | 618 | ························································································································································································final·com.android.wifi.x.android.hardware.wifi.V1_4.NanConfigRequest·nanConfigRequest3·=·nanConfigRequest; |
611 | ························································································································································································nanConfigRequest.disableDiscoveryAddressChangeIndication·=·!b; | |
612 | ························································································································································································nanConfigRequest.disableStartedClusterIndication·=·!b; | |
613 | ························································································································································································nanConfigRequest.disableJoinedClusterIndication·=·!b; | |
614 | ························································································································································································final·boolean·b11·=·true; | |
615 | ························································································································································································nanConfigRequest.includePublishServiceIdsInBeacon·=·b11; | |
616 | ························································································································································································nanConfigRequest.numberOfPublishServiceIdsInBeacon·=·0; | |
617 | ························································································································································································final·com.android.wifi.x.android.hardware.wifi.V1_4.NanConfigRequest·nanConfigRequest2·=·nanConfigRequest; | |
618 | ························································································································································································try·{ | 619 | ························································································································································································try·{ |
619 | ····························································································································································································nanConfigRequest2.includeSubscribeServiceIdsInBeacon·=·b11; | 620 | ····························································································································································································nanConfigRequest3.numberOfSubscribeServiceIdsInBeacon·=·0; |
620 | ····························································································································································································final·com.android.wifi.x.android.hardware.wifi.V1_4.NanConfigRequest·nanConfigRequest3·=·nanConfigRequest; | 621 | ····························································································································································································nanConfigRequest.rssiWindowSize·=·8; |
| 622 | ····························································································································································································final·Object·value3·=·this.mSettableParameters.get(s3); |
621 | ····························································································································································································try·{ | 623 | ····························································································································································································try·{ |
622 | ································································································································································································nanConfigRequest3.numberOfSubscribeServiceIdsInBeacon·=·0; | 624 | ································································································································································································final·Integer·n10·=·(Integer)value3; |
623 | ································································································································································································nanConfigRequest.rssiWindowSize·=·8; | |
624 | ································································································································································································final·Object·value3·=·this.mSettableParameters.get(s3); | |
625 | ································································································································································································try·{ | 625 | ································································································································································································try·{ |
626 | ····································································································································································································final·Integer·n10·=·(Integer)value3; | 626 | ····································································································································································································nanConfigRequest.macAddressRandomizationIntervalSec·=·n10; |
627 | ····································································································································································································try·{ | 627 | ····································································································································································································nanConfigRequest.bandSpecificConfig[0]·=·nanBandSpecificConfig; |
628 | ········································································································································································································nanConfigRequest.macAddressRandomizationIntervalSec·=·n10; | 628 | ····································································································································································································nanConfigRequest.bandSpecificConfig[1]·=·nanBandSpecificConfig2; |
629 | ········································································································································································································nanConfigRequest.bandSpecificConfig[0]·=·nanBandSpecificConfig; | 629 | ····································································································································································································nanConfigRequest.bandSpecificConfig[2]·=·nanBandSpecificConfig3; |
630 | ········································································································································································································nanConfigRequest.bandSpecificConfig[1]·=·nanBandSpecificConfig2; | 630 | ····································································································································································································this.updateConfigForPowerSettings14(nanConfigRequest,·nanConfigRequestSupplemental,·b3,·b4); |
631 | ········································································································································································································nanConfigRequest.bandSpecificConfig[b8]·=·nanBandSpecificConfig3; | 631 | ····································································································································································································wifiStatus·=·mockableCastTo_1_3.configRequest_1_4(n,·nanConfigRequest,·nanConfigRequestSupplemental); |
632 | ········································································································································································································this.updateConfigForPowerSettings14(nanConfigRequest,·nanConfigRequestSupplemental,·b3,·b4); | 632 | ····································································································································································································break·Label_2758; |
633 | ········································································································································································································wifiStatus·=·mockableCastTo_1_3.configRequest_1_4(n,·nanConfigRequest,·nanConfigRequestSupplemental); | 633 | ····································································································································································································Label_2491:·{ |
634 | ········································································································································································································break·Label_2730; | 634 | ········································································································································································································try·{ |
635 | ········································································································································································································Label_2463:·{ | 635 | ············································································································································································································final·NanConfigRequest·nanConfigRequest4·=·new·NanConfigRequest(); |
| 636 | ············································································································································································································nanConfigRequest4.masterPref·=·(byte)configRequest.mMasterPreference; |
| 637 | ············································································································································································································nanConfigRequest4.disableDiscoveryAddressChangeIndication·=·!b; |
| 638 | ············································································································································································································nanConfigRequest4.disableStartedClusterIndication·=·!b; |
| 639 | ············································································································································································································nanConfigRequest4.disableJoinedClusterIndication·=·!b; |
| 640 | ············································································································································································································final·boolean·b11·=·true; |
| 641 | ············································································································································································································nanConfigRequest4.includePublishServiceIdsInBeacon·=·b11; |
| 642 | ············································································································································································································nanConfigRequest4.numberOfPublishServiceIdsInBeacon·=·0; |
| 643 | ············································································································································································································final·NanConfigRequest·nanConfigRequest5·=·nanConfigRequest4; |
636 | ············································································································································································································try·{ | 644 | ············································································································································································································try·{ |
637 | ················································································································································································································final·NanConfigRequest·nanConfigRequest4·=·new·NanConfigRequest(); | 645 | ················································································································································································································nanConfigRequest5.includeSubscribeServiceIdsInBeacon·=·b11; |
638 | ················································································································································································································nanConfigRequest4.masterPref·=·(byte)configRequest.mMasterPreference; | 646 | ················································································································································································································final·NanConfigRequest·nanConfigRequest6·=·nanConfigRequest4; |
639 | ················································································································································································································nanConfigRequest4.disableDiscoveryAddressChangeIndication·=·!b; | |
640 | ················································································································································································································nanConfigRequest4.disableStartedClusterIndication·=·!b; | |
641 | ················································································································································································································nanConfigRequest4.disableJoinedClusterIndication·=·!b; | |
642 | ················································································································································································································final·boolean·b12·=·true; | |
643 | ················································································································································································································nanConfigRequest4.includePublishServiceIdsInBeacon·=·b12; | |
644 | ················································································································································································································nanConfigRequest4.numberOfPublishServiceIdsInBeacon·=·0; | |
645 | ················································································································································································································final·NanConfigRequest·nanConfigRequest5·=·nanConfigRequest4; | |
646 | ················································································································································································································try·{ | 647 | ················································································································································································································try·{ |
647 | ····················································································································································································································nanConfigRequest5.includeSubscribeServiceIdsInBeacon·=·b12; | 648 | ····················································································································································································································nanConfigRequest6.numberOfSubscribeServiceIdsInBeacon·=·0; |
648 | ····················································································································································································································final·NanConfigRequest·nanConfigRequest6·=·nanConfigRequest4; | 649 | ····················································································································································································································nanConfigRequest4.rssiWindowSize·=·8; |
| 650 | ····················································································································································································································final·Object·value4·=·this.mSettableParameters.get(s3); |
649 | ····················································································································································································································try·{ | 651 | ····················································································································································································································try·{ |
650 | ························································································································································································································nanConfigRequest6.numberOfSubscribeServiceIdsInBeacon·=·0; | 652 | ························································································································································································································final·Integer·n11·=·(Integer)value4; |
651 | ························································································································································································································nanConfigRequest4.rssiWindowSize·=·8; | |
652 | ························································································································································································································final·Object·value4·=·this.mSettableParameters.get(s3); | |
653 | ························································································································································································································try·{ | 653 | ························································································································································································································try·{ |
654 | ····························································································································································································································final·Integer·n11·=·(Integer)value4; | 654 | ····························································································································································································································nanConfigRequest4.macAddressRandomizationIntervalSec·=·n11; |
| 655 | ····························································································································································································································nanConfigRequest4.bandSpecificConfig[0]·=·nanBandSpecificConfig; |
| 656 | ····························································································································································································································nanConfigRequest4.bandSpecificConfig[1]·=·nanBandSpecificConfig2; |
| 657 | ····························································································································································································································this.updateConfigForPowerSettings(nanConfigRequest4,·nanConfigRequestSupplemental,·b3,·b4); |
| 658 | ····························································································································································································································if·(mockableCastTo_1_2·!=·null)·{ |
| 659 | ································································································································································································································wifiStatus·=·mockableCastTo_1_2.configRequest_1_2(n,·nanConfigRequest4,·nanConfigRequestSupplemental); |
| 660 | ····························································································································································································································} |
| 661 | ····························································································································································································································else·{ |
| 662 | ································································································································································································································final·IWifiNanIface·wifiNanIface3; |
| 663 | ································································································································································································································wifiStatus·=·wifiNanIface3.configRequest(n,·nanConfigRequest4); |
| 664 | ····························································································································································································································} |
655 | ····························································································································································································································try·{ | 665 | ····························································································································································································································try·{ |
656 | ································································································································································································································nanConfigRequest4.macAddressRandomizationIntervalSec·=·n11; | 666 | ································································································································································································································if·(wifiStatus.code·==·0)·{ |
657 | ································································································································································································································nanConfigRequest4.bandSpecificConfig[0]·=·nanBandSpecificConfig; | 667 | ····································································································································································································································return·true; |
658 | ································································································································································································································nanConfigRequest4.bandSpecificConfig[1]·=·nanBandSpecificConfig2; | |
659 | ································································································································································································································this.updateConfigForPowerSettings(nanConfigRequest4,·nanConfigRequestSupplemental,·b3,·b4); | |
660 | ································································································································································································································final·com.android.wifi.x.android.hardware.wifi.V1_2.IWifiNanIface·wifiNanIface4; | |
661 | ································································································································································································································if·(wifiNanIface4·!=·null)·{ | |
662 | ····································································································································································································································wifiStatus·=·wifiNanIface4.configRequest_1_2(n,·nanConfigRequest4,·nanConfigRequestSupplemental); | |
663 | ································································································································································································································} | |
664 | ································································································································································································································else·{ | |
665 | ····································································································································································································································final·IWifiNanIface·wifiNanIface5; | |
666 | ····································································································································································································································wifiStatus·=·wifiNanIface5.configRequest(n,·nanConfigRequest4); | |
667 | ································································································································································································································} | 668 | ································································································································································································································} |
668 | ································································································································································································································try·{ | 669 | ································································································································································································································try·{ |
669 | ····································································································································································································································if·(wifiStatus.code·==·0)·{ | 670 | ····································································································································································································································final·StringBuilder·sb2·=·new·StringBuilder(); |
670 | ········································································································································································································································return·true; | 671 | ····································································································································································································································sb2.append("enableAndConfigure:·error:·"); |
671 | ····································································································································································································································} | 672 | ····································································································································································································································sb2.append(statusString(wifiStatus)); |
| 673 | ····································································································································································································································final·String·string·=·sb2.toString(); |
| 674 | ····································································································································································································································s4·=·s2; |
| 675 | ····································································································································································································································final·String·s5·=·s2; |
672 | ····································································································································································································································try·{ | 676 | ····································································································································································································································try·{ |
673 | ········································································································································································································································final·StringBuilder·sb2·=·new·StringBuilder(); | 677 | ········································································································································································································································Log.e(s5,·string); |
674 | ········································································································································································································································sb2.append("enableAndConfigure:·error:·"); | 678 | ········································································································································································································································return·false; |
675 | ········································································································································································································································sb2.append(statusString(wifiStatus)); | |
676 | ········································································································································································································································final·String·string·=·sb2.toString(); | |
677 | ········································································································································································································································s4·=·s2; | |
678 | ········································································································································································································································final·String·s5·=·s2; | |
679 | ········································································································································································································································try·{ | |
680 | ············································································································································································································································Log.e(s5,·string); | |
681 | ············································································································································································································································return·false; | |
682 | ········································································································································································································································} | |
683 | ········································································································································································································································catch·(RemoteException·ex)·{} | |
684 | ····································································································································································································································} | |
685 | ····································································································································································································································catch·(RemoteException·ex)·{ | |
686 | ········································································································································································································································s4·=·s2; | |
687 | ····································································································································································································································} | 679 | ····································································································································································································································} |
| 680 | ····································································································································································································································catch·(RemoteException·ex)·{} |
| 681 | ································································································································································································································} |
| 682 | ································································································································································································································catch·(RemoteException·ex)·{ |
| 683 | ····································································································································································································································s4·=·s2; |
688 | ································································································································································································································} | 684 | ································································································································································································································} |
689 | ································································································································································································································catch·(RemoteException·ex2)·{} | |
690 | ····························································································································································································································} | 685 | ····························································································································································································································} |
691 | ····························································································································································································································catch·(RemoteException·ex3)·{} | 686 | ····························································································································································································································catch·(RemoteException·ex2)·{} |
692 | ························································································································································································································} | 687 | ························································································································································································································} |
693 | ························································································································································································································catch·(RemoteException·ex4)·{} | 688 | ························································································································································································································catch·(RemoteException·ex3)·{} |
694 | ····················································································································································································································} | 689 | ····················································································································································································································} |
695 | ····················································································································································································································catch·(RemoteException·ex5)·{} | 690 | ····················································································································································································································catch·(RemoteException·ex4)·{} |
696 | ················································································································································································································} | 691 | ················································································································································································································} |
697 | ················································································································································································································catch·(RemoteException·ex6)·{} | 692 | ················································································································································································································catch·(RemoteException·ex5)·{} |
698 | ············································································································································································································} | 693 | ············································································································································································································} |
699 | ············································································································································································································catch·(RemoteException·ex7)·{} | 694 | ············································································································································································································catch·(RemoteException·ex6)·{} |
700 | ········································································································································································································} | 695 | ········································································································································································································} |
| 696 | ········································································································································································································catch·(RemoteException·ex7)·{} |
701 | ····································································································································································································} | 697 | ····································································································································································································} |
702 | ····································································································································································································catch·(RemoteException·ex8)·{} | |
703 | ································································································································································································} | 698 | ································································································································································································} |
704 | ································································································································································································catch·(RemoteException·ex9)·{} | 699 | ································································································································································································catch·(RemoteException·ex8)·{} |
705 | ····························································································································································································} | 700 | ····························································································································································································} |
706 | ····························································································································································································catch·(RemoteException·ex10)·{} | 701 | ····························································································································································································catch·(RemoteException·ex9)·{} |
707 | ························································································································································································} | 702 | ························································································································································································} |
708 | ························································································································································································catch·(RemoteException·ex11)·{} | 703 | ························································································································································································catch·(RemoteException·ex10)·{} |
709 | ····················································································································································································} | 704 | ····················································································································································································} |
710 | ····················································································································································································catch·(RemoteException·ex12)·{} | 705 | ····················································································································································································catch·(RemoteException·ex11)·{} |
711 | ····················································································································································································final·com.android.wifi.x.android.hardware.wifi.V1_2.IWifiNanIface·wifiNanIface4·=·wifiNanIface3; | |
712 | ····················································································································································································final·IWifiNanIface·wifiNanIface5·=·wifiNanIface2; | |
713 | ················································································································································································} | 706 | ················································································································································································} |
714 | ················································································································································································//·iftrue(Label_2463:,·mockableCastTo_1_3·==·null) | 707 | ················································································································································································catch·(RemoteException·ex12)·{} |
715 | ················································································································································································catch·(RemoteException·ex13)·{} | 708 | ················································································································································································final·IWifiNanIface·wifiNanIface3·=·wifiNanIface2; |
716 | ············································································································································································} | 709 | ············································································································································································} |
717 | ············································································································································································catch·(RemoteException·ex14)·{} | 710 | ············································································································································································//·iftrue(Label_2491:,·mockableCastTo_1_3·==·null) |
| 711 | ············································································································································································catch·(RemoteException·ex13)·{} |
718 | ········································································································································································} | 712 | ········································································································································································} |
719 | ········································································································································································catch·(RemoteException·ex15)·{} | 713 | ········································································································································································catch·(RemoteException·ex14)·{} |
720 | ····································································································································································} | 714 | ····································································································································································} |
721 | ····································································································································································catch·(RemoteException·ex16)·{} | 715 | ····································································································································································catch·(RemoteException·ex15)·{} |
722 | ································································································································································} | 716 | ································································································································································} |
723 | ································································································································································catch·(RemoteException·ex17)·{} | 717 | ································································································································································catch·(RemoteException·ex16)·{} |
724 | ····························································································································································} | 718 | ····························································································································································} |
725 | ····························································································································································catch·(RemoteException·ex18)·{} | 719 | ····························································································································································catch·(RemoteException·ex17)·{} |
726 | ························································································································································} | 720 | ························································································································································} |
727 | ························································································································································catch·(RemoteException·ex19)·{} | 721 | ························································································································································catch·(RemoteException·ex18)·{} |
728 | ····················································································································································} | 722 | ····················································································································································} |
729 | ····················································································································································catch·(RemoteException·ex20)·{} | 723 | ····················································································································································catch·(RemoteException·ex19)·{} |
730 | ················································································································································} | 724 | ················································································································································} |
731 | ················································································································································catch·(RemoteException·ex21)·{} | 725 | ················································································································································catch·(RemoteException·ex20)·{} |
732 | ············································································································································} | 726 | ············································································································································} |
733 | ············································································································································catch·(RemoteException·ex22)·{} | 727 | ············································································································································catch·(RemoteException·ex21)·{} |
734 | ········································································································································} | 728 | ········································································································································} |
735 | ········································································································································catch·(RemoteException·ex23)·{} | 729 | ········································································································································catch·(RemoteException·ex22)·{} |
736 | ····································································································································} | 730 | ····································································································································} |
737 | ····································································································································catch·(RemoteException·ex24)·{} | 731 | ····································································································································catch·(RemoteException·ex23)·{} |
738 | ································································································································} | 732 | ································································································································} |
739 | ································································································································catch·(RemoteException·ex25)·{} | 733 | ································································································································catch·(RemoteException·ex24)·{} |
740 | ····························································································································} | 734 | ····························································································································} |
741 | ····························································································································catch·(RemoteException·ex26)·{} | 735 | ····························································································································catch·(RemoteException·ex25)·{} |
742 | ························································································································} | 736 | ························································································································} |
743 | ························································································································catch·(RemoteException·ex27)·{} | 737 | ························································································································catch·(RemoteException·ex26)·{} |
744 | ····················································································································} | 738 | ····················································································································} |
745 | ····················································································································catch·(RemoteException·ex28)·{} | 739 | ····················································································································catch·(RemoteException·ex27)·{} |
746 | ················································································································} | 740 | ················································································································} |
747 | ················································································································catch·(RemoteException·ex29)·{} | 741 | ················································································································catch·(RemoteException·ex28)·{} |
748 | ············································································································} | 742 | ············································································································} |
749 | ········································································································} | 743 | ········································································································} |
750 | ········································································································catch·(RemoteException·ex30)·{} | 744 | ········································································································catch·(RemoteException·ex29)·{} |
751 | ····································································································} | 745 | ····································································································} |
752 | ····································································································catch·(RemoteException·ex31)·{} | 746 | ····································································································catch·(RemoteException·ex30)·{} |
753 | ································································································} | 747 | ································································································} |
754 | ································································································catch·(RemoteException·ex32)·{} | 748 | ································································································catch·(RemoteException·ex31)·{} |
755 | ····························································································} | 749 | ····························································································} |
756 | ····························································································catch·(RemoteException·ex33)·{} | 750 | ····························································································catch·(RemoteException·ex32)·{} |
757 | ························································································} | 751 | ························································································} |
758 | ························································································catch·(RemoteException·ex34)·{} | 752 | ························································································catch·(RemoteException·ex33)·{} |
759 | ····················································································} | 753 | ····················································································} |
760 | ····················································································catch·(RemoteException·ex35)·{} | 754 | ····················································································catch·(RemoteException·ex34)·{} |
761 | ················································································} | 755 | ················································································} |
762 | ················································································catch·(RemoteException·ex36)·{} | 756 | ················································································catch·(RemoteException·ex35)·{} |
763 | ············································································} | 757 | ············································································} |
764 | ············································································catch·(RemoteException·ex37)·{} | 758 | ············································································catch·(RemoteException·ex36)·{} |
765 | ········································································} | 759 | ········································································} |
766 | ········································································catch·(RemoteException·ex38)·{} | 760 | ········································································catch·(RemoteException·ex37)·{} |
767 | ····································································} | 761 | ····································································} |
768 | ····································································catch·(RemoteException·ex39)·{} | 762 | ····································································catch·(RemoteException·ex38)·{} |
769 | ································································} | 763 | ································································} |
770 | ································································catch·(RemoteException·ex40)·{} | 764 | ································································catch·(RemoteException·ex39)·{} |
771 | ····························································} | 765 | ····························································} |
772 | ····························································catch·(RemoteException·ex41)·{} | 766 | ····························································catch·(RemoteException·ex40)·{} |
773 | ························································} | 767 | ························································} |
774 | ························································catch·(RemoteException·ex42)·{} | 768 | ························································catch·(RemoteException·ex41)·{} |
775 | ····················································} | 769 | ····················································} |
776 | ····················································catch·(RemoteException·ex43)·{} | 770 | ····················································catch·(RemoteException·ex42)·{} |
777 | ················································} | 771 | ················································} |
778 | ················································catch·(RemoteException·ex44)·{} | 772 | ················································catch·(RemoteException·ex43)·{} |
779 | ············································} | 773 | ············································} |
780 | ············································catch·(RemoteException·ex45)·{} | 774 | ············································catch·(RemoteException·ex44)·{} |
781 | ········································} | 775 | ········································} |
782 | ········································catch·(RemoteException·ex46)·{} | 776 | ········································catch·(RemoteException·ex45)·{} |
783 | ····································} | 777 | ····································} |
784 | ····································catch·(RemoteException·ex47)·{} | 778 | ····································catch·(RemoteException·ex46)·{} |
785 | ································} | 779 | ································} |
786 | ································catch·(RemoteException·ex48)·{} | 780 | ································catch·(RemoteException·ex47)·{} |
787 | ····························} | 781 | ····························} |
788 | ····························catch·(RemoteException·ex49)·{} | 782 | ····························catch·(RemoteException·ex48)·{} |
789 | ························} | 783 | ························} |
790 | ························catch·(RemoteException·ex50)·{} | 784 | ························catch·(RemoteException·ex49)·{} |
791 | ····················} | 785 | ····················} |
792 | ····················catch·(RemoteException·ex51)·{} | 786 | ····················catch·(RemoteException·ex50)·{} |
793 | ················} | 787 | ················} |
794 | ················catch·(RemoteException·ex52)·{} | 788 | ················catch·(RemoteException·ex51)·{} |
795 | ············} | 789 | ············} |
796 | ········} | 790 | ········} |
797 | ········final·StringBuilder·sb3·=·new·StringBuilder(); | 791 | ········final·StringBuilder·sb3·=·new·StringBuilder(); |
798 | ········sb3.append("enableAndConfigure:·exception:·"); | 792 | ········sb3.append("enableAndConfigure:·exception:·"); |
799 | ········final·RemoteException·ex; | 793 | ········final·RemoteException·ex; |
800 | ········sb3.append(ex); | 794 | ········sb3.append(ex); |
801 | ········Log.e(s4,·sb3.toString()); | 795 | ········Log.e(s4,·sb3.toString()); |