nus-yam/ex-repair huggingface dataset:
Program: 195344
Project: 195344
Buggy source:
@Override public void calculateRemaining(BatterySipper app,BatteryStats stats,long rawRealtimeUs,long rawUptimeUs,int statsType){
  final long idleTimeMs=stats.getWifiControllerActivity(BatteryStats.CONTROLLER_IDLE_TIME,statsType);
  final long rxTimeMs=stats.getWifiControllerActivity(BatteryStats.CONTROLLER_RX_TIME,statsType);
  final long txTimeMs=stats.getWifiControllerActivity(BatteryStats.CONTROLLER_TX_TIME,statsType);
  app.wifiRunningTimeMs=idleTimeMs + rxTimeMs + txTimeMs;
  double powerDrain=stats.getWifiControllerActivity(BatteryStats.CONTROLLER_POWER_DRAIN,statsType) / (1000 * 60 * 60);
  if (powerDrain == 0) {
    powerDrain=((idleTimeMs * mIdleCurrentMa) + (txTimeMs * mTxCurrentMa) + (rxTimeMs * mRxCurrentMa)) / (1000 * 60 * 60);
  }
  app.wifiPowerMah=Math.max(0,powerDrain - mTotalAppPowerDrain);
}

Fixed version (ground truth):
@Override public void calculateRemaining(BatterySipper app,BatteryStats stats,long rawRealtimeUs,long rawUptimeUs,int statsType){
  final long idleTimeMs=stats.getWifiControllerActivity(BatteryStats.CONTROLLER_IDLE_TIME,statsType);
  final long rxTimeMs=stats.getWifiControllerActivity(BatteryStats.CONTROLLER_RX_TIME,statsType);
  final long txTimeMs=stats.getWifiControllerActivity(BatteryStats.CONTROLLER_TX_TIME,statsType);
  app.wifiRunningTimeMs=idleTimeMs + rxTimeMs + txTimeMs;
  double powerDrain=stats.getWifiControllerActivity(BatteryStats.CONTROLLER_POWER_DRAIN,statsType) / (1000 * 60 * 60);
  if (powerDrain == 0) {
    powerDrain=((idleTimeMs * mIdleCurrentMa) + (txTimeMs * mTxCurrentMa) + (rxTimeMs * mRxCurrentMa)) / (1000 * 60 * 60);
  }
  app.wifiPowerMah=Math.max(0,powerDrain - mTotalAppPowerDrain);
  if (DEBUG) {
    Log.d(TAG,"String_Node_Str" + BatteryStatsHelper.makemAh(app.wifiPowerMah));
  }
}
Program: 195345
Project: 195345
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid for decryption and verification. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityForOriginationEnd(Date)
 */
public Builder setKeyValidityForConsumptionEnd(Date endDate){
  mKeyValidityForConsumptionEnd=endDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid for decryption and verification. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityForOriginationEnd(Date)
 */
public Builder setKeyValidityForConsumptionEnd(Date endDate){
  mKeyValidityForConsumptionEnd=endDate;
  return this;
}
Program: 195346
Project: 195346
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityStart(Date)
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @see #setKeyValidityForOriginationEnd(Date)
 */
public Builder setKeyValidityEnd(Date endDate){
  setKeyValidityForOriginationEnd(endDate);
  setKeyValidityForConsumptionEnd(endDate);
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityStart(Date)
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @see #setKeyValidityForOriginationEnd(Date)
 */
public Builder setKeyValidityEnd(Date endDate){
  setKeyValidityForOriginationEnd(endDate);
  setKeyValidityForConsumptionEnd(endDate);
  return this;
}
Program: 195347
Project: 195347
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid for encryption and signing. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityForConsumptionEnd(Date)
 */
public Builder setKeyValidityForOriginationEnd(Date endDate){
  mKeyValidityForOriginationEnd=endDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid for encryption and signing. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityForConsumptionEnd(Date)
 */
public Builder setKeyValidityForOriginationEnd(Date endDate){
  mKeyValidityForOriginationEnd=endDate;
  return this;
}
Program: 195348
Project: 195348
Buggy source:
/** 
 * Sets the time instant before which the key is not yet valid. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityEnd(Date)
 */
public Builder setKeyValidityStart(Date startDate){
  mKeyValidityStart=startDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant before which the key is not yet valid. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityEnd(Date)
 */
public Builder setKeyValidityStart(Date startDate){
  mKeyValidityStart=startDate;
  return this;
}
Program: 195349
Project: 195349
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid for decryption and verification. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityForOriginationEnd(Date)
 * @hide
 */
public Builder setKeyValidityForConsumptionEnd(Date endDate){
  mKeyValidityForConsumptionEnd=endDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid for decryption and verification. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityForOriginationEnd(Date)
 * @hide
 */
public Builder setKeyValidityForConsumptionEnd(Date endDate){
  mKeyValidityForConsumptionEnd=endDate;
  return this;
}
Program: 195350
Project: 195350
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityStart(Date)
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @see #setKeyValidityForOriginationEnd(Date)
 * @hide
 */
public Builder setKeyValidityEnd(Date endDate){
  setKeyValidityForOriginationEnd(endDate);
  setKeyValidityForConsumptionEnd(endDate);
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityStart(Date)
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @see #setKeyValidityForOriginationEnd(Date)
 * @hide
 */
public Builder setKeyValidityEnd(Date endDate){
  setKeyValidityForOriginationEnd(endDate);
  setKeyValidityForConsumptionEnd(endDate);
  return this;
}
Program: 195351
Project: 195351
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid for encryption and signing. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @hide
 */
public Builder setKeyValidityForOriginationEnd(Date endDate){
  mKeyValidityForOriginationEnd=endDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid for encryption and signing. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @hide
 */
public Builder setKeyValidityForOriginationEnd(Date endDate){
  mKeyValidityForOriginationEnd=endDate;
  return this;
}
Program: 195352
Project: 195352
Buggy source:
/** 
 * Sets the time instant before which the key is not yet valid. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityEnd(Date)
 * @hide
 */
public Builder setKeyValidityStart(Date startDate){
  mKeyValidityStart=startDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant before which the key is not yet valid. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityEnd(Date)
 * @hide
 */
public Builder setKeyValidityStart(Date startDate){
  mKeyValidityStart=startDate;
  return this;
}
Program: 195353
Project: 195353
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid for decryption and verification. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityForOriginationEnd(Date)
 * @hide
 */
public Builder setKeyValidityForConsumptionEnd(Date endDate){
  mKeyValidityForConsumptionEnd=endDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid for decryption and verification. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityForOriginationEnd(Date)
 * @hide
 */
public Builder setKeyValidityForConsumptionEnd(Date endDate){
  mKeyValidityForConsumptionEnd=endDate;
  return this;
}
Program: 195354
Project: 195354
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityStart(Date)
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @see #setKeyValidityForOriginationEnd(Date)
 * @hide
 */
public Builder setKeyValidityEnd(Date endDate){
  setKeyValidityForOriginationEnd(endDate);
  setKeyValidityForConsumptionEnd(endDate);
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityStart(Date)
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @see #setKeyValidityForOriginationEnd(Date)
 * @hide
 */
public Builder setKeyValidityEnd(Date endDate){
  setKeyValidityForOriginationEnd(endDate);
  setKeyValidityForConsumptionEnd(endDate);
  return this;
}
Program: 195355
Project: 195355
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid for encryption and signing. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @hide
 */
public Builder setKeyValidityForOriginationEnd(Date endDate){
  mKeyValidityForOriginationEnd=endDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid for encryption and signing. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @hide
 */
public Builder setKeyValidityForOriginationEnd(Date endDate){
  mKeyValidityForOriginationEnd=endDate;
  return this;
}
Program: 195356
Project: 195356
Buggy source:
/** 
 * Sets the time instant before which the key is not yet valid. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityEnd(Date)
 * @hide
 */
public Builder setKeyValidityStart(Date startDate){
  mKeyValidityStart=startDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant before which the key is not yet valid. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityEnd(Date)
 * @hide
 */
public Builder setKeyValidityStart(Date startDate){
  mKeyValidityStart=startDate;
  return this;
}
Program: 195357
Project: 195357
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid for decryption and verification. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityForOriginationEnd(Date)
 */
public Builder setKeyValidityForConsumptionEnd(Date endDate){
  mKeyValidityForConsumptionEnd=endDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid for decryption and verification. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityForOriginationEnd(Date)
 */
public Builder setKeyValidityForConsumptionEnd(Date endDate){
  mKeyValidityForConsumptionEnd=endDate;
  return this;
}
Program: 195358
Project: 195358
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityStart(Date)
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @see #setKeyValidityForOriginationEnd(Date)
 */
public Builder setKeyValidityEnd(Date endDate){
  setKeyValidityForOriginationEnd(endDate);
  setKeyValidityForConsumptionEnd(endDate);
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityStart(Date)
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @see #setKeyValidityForOriginationEnd(Date)
 */
public Builder setKeyValidityEnd(Date endDate){
  setKeyValidityForOriginationEnd(endDate);
  setKeyValidityForConsumptionEnd(endDate);
  return this;
}
Program: 195359
Project: 195359
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid for encryption and signing. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityForConsumptionEnd(Date)
 */
public Builder setKeyValidityForOriginationEnd(Date endDate){
  mKeyValidityForOriginationEnd=endDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid for encryption and signing. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityForConsumptionEnd(Date)
 */
public Builder setKeyValidityForOriginationEnd(Date endDate){
  mKeyValidityForOriginationEnd=endDate;
  return this;
}
Program: 195360
Project: 195360
Buggy source:
/** 
 * Sets the time instant before which the key is not yet valid. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityEnd(Date)
 */
public Builder setKeyValidityStart(Date startDate){
  mKeyValidityStart=startDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant before which the key is not yet valid. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityEnd(Date)
 */
public Builder setKeyValidityStart(Date startDate){
  mKeyValidityStart=startDate;
  return this;
}
Program: 195361
Project: 195361
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid for decryption and verification. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityForOriginationEnd(Date)
 * @hide
 */
public Builder setKeyValidityForConsumptionEnd(Date endDate){
  mKeyValidityForConsumptionEnd=endDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid for decryption and verification. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityForOriginationEnd(Date)
 * @hide
 */
public Builder setKeyValidityForConsumptionEnd(Date endDate){
  mKeyValidityForConsumptionEnd=endDate;
  return this;
}
Program: 195362
Project: 195362
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityStart(Date)
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @see #setKeyValidityForOriginationEnd(Date)
 * @hide
 */
public Builder setKeyValidityEnd(Date endDate){
  setKeyValidityForOriginationEnd(endDate);
  setKeyValidityForConsumptionEnd(endDate);
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityStart(Date)
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @see #setKeyValidityForOriginationEnd(Date)
 * @hide
 */
public Builder setKeyValidityEnd(Date endDate){
  setKeyValidityForOriginationEnd(endDate);
  setKeyValidityForConsumptionEnd(endDate);
  return this;
}
Program: 195363
Project: 195363
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid for encryption and signing. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @hide
 */
public Builder setKeyValidityForOriginationEnd(Date endDate){
  mKeyValidityForOriginationEnd=endDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid for encryption and signing. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @hide
 */
public Builder setKeyValidityForOriginationEnd(Date endDate){
  mKeyValidityForOriginationEnd=endDate;
  return this;
}
Program: 195364
Project: 195364
Buggy source:
/** 
 * Sets the time instant before which the key is not yet valid. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityEnd(Date)
 * @hide
 */
public Builder setKeyValidityStart(Date startDate){
  mKeyValidityStart=startDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant before which the key is not yet valid. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityEnd(Date)
 * @hide
 */
public Builder setKeyValidityStart(Date startDate){
  mKeyValidityStart=startDate;
  return this;
}
Program: 195365
Project: 195365
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid for decryption and verification. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityForOriginationEnd(Date)
 * @hide
 */
public Builder setKeyValidityForConsumptionEnd(Date endDate){
  mKeyValidityForConsumptionEnd=endDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid for decryption and verification. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityForOriginationEnd(Date)
 * @hide
 */
public Builder setKeyValidityForConsumptionEnd(Date endDate){
  mKeyValidityForConsumptionEnd=endDate;
  return this;
}
Program: 195366
Project: 195366
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityStart(Date)
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @see #setKeyValidityForOriginationEnd(Date)
 * @hide
 */
public Builder setKeyValidityEnd(Date endDate){
  setKeyValidityForOriginationEnd(endDate);
  setKeyValidityForConsumptionEnd(endDate);
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityStart(Date)
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @see #setKeyValidityForOriginationEnd(Date)
 * @hide
 */
public Builder setKeyValidityEnd(Date endDate){
  setKeyValidityForOriginationEnd(endDate);
  setKeyValidityForConsumptionEnd(endDate);
  return this;
}
Program: 195367
Project: 195367
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid for encryption and signing. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @hide
 */
public Builder setKeyValidityForOriginationEnd(Date endDate){
  mKeyValidityForOriginationEnd=endDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid for encryption and signing. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @hide
 */
public Builder setKeyValidityForOriginationEnd(Date endDate){
  mKeyValidityForOriginationEnd=endDate;
  return this;
}
Program: 195368
Project: 195368
Buggy source:
/** 
 * Sets the time instant before which the key is not yet valid. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityEnd(Date)
 * @hide
 */
public Builder setKeyValidityStart(Date startDate){
  mKeyValidityStart=startDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant before which the key is not yet valid. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityEnd(Date)
 * @hide
 */
public Builder setKeyValidityStart(Date startDate){
  mKeyValidityStart=startDate;
  return this;
}
Program: 195369
Project: 195369
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid for decryption and verification. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityForOriginationEnd(Date)
 */
public Builder setKeyValidityForConsumptionEnd(Date endDate){
  mKeyValidityForConsumptionEnd=endDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid for decryption and verification. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityForOriginationEnd(Date)
 */
public Builder setKeyValidityForConsumptionEnd(Date endDate){
  mKeyValidityForConsumptionEnd=endDate;
  return this;
}
Program: 195370
Project: 195370
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityStart(Date)
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @see #setKeyValidityForOriginationEnd(Date)
 */
public Builder setKeyValidityEnd(Date endDate){
  setKeyValidityForOriginationEnd(endDate);
  setKeyValidityForConsumptionEnd(endDate);
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityStart(Date)
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @see #setKeyValidityForOriginationEnd(Date)
 */
public Builder setKeyValidityEnd(Date endDate){
  setKeyValidityForOriginationEnd(endDate);
  setKeyValidityForConsumptionEnd(endDate);
  return this;
}
Program: 195371
Project: 195371
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid for encryption and signing. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityForConsumptionEnd(Date)
 */
public Builder setKeyValidityForOriginationEnd(Date endDate){
  mKeyValidityForOriginationEnd=endDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid for encryption and signing. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityForConsumptionEnd(Date)
 */
public Builder setKeyValidityForOriginationEnd(Date endDate){
  mKeyValidityForOriginationEnd=endDate;
  return this;
}
Program: 195372
Project: 195372
Buggy source:
/** 
 * Sets the time instant before which the key is not yet valid. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityEnd(Date)
 */
public Builder setKeyValidityStart(Date startDate){
  mKeyValidityStart=startDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant before which the key is not yet valid. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityEnd(Date)
 */
public Builder setKeyValidityStart(Date startDate){
  mKeyValidityStart=startDate;
  return this;
}
Program: 195373
Project: 195373
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid for decryption and verification. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityForOriginationEnd(Date)
 * @hide
 */
public Builder setKeyValidityForConsumptionEnd(Date endDate){
  mKeyValidityForConsumptionEnd=endDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid for decryption and verification. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityForOriginationEnd(Date)
 * @hide
 */
public Builder setKeyValidityForConsumptionEnd(Date endDate){
  mKeyValidityForConsumptionEnd=endDate;
  return this;
}
Program: 195374
Project: 195374
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityStart(Date)
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @see #setKeyValidityForOriginationEnd(Date)
 * @hide
 */
public Builder setKeyValidityEnd(Date endDate){
  setKeyValidityForOriginationEnd(endDate);
  setKeyValidityForConsumptionEnd(endDate);
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityStart(Date)
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @see #setKeyValidityForOriginationEnd(Date)
 * @hide
 */
public Builder setKeyValidityEnd(Date endDate){
  setKeyValidityForOriginationEnd(endDate);
  setKeyValidityForConsumptionEnd(endDate);
  return this;
}
Program: 195375
Project: 195375
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid for encryption and signing. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @hide
 */
public Builder setKeyValidityForOriginationEnd(Date endDate){
  mKeyValidityForOriginationEnd=endDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid for encryption and signing. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @hide
 */
public Builder setKeyValidityForOriginationEnd(Date endDate){
  mKeyValidityForOriginationEnd=endDate;
  return this;
}
Program: 195376
Project: 195376
Buggy source:
/** 
 * Sets the time instant before which the key is not yet valid. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityEnd(Date)
 * @hide
 */
public Builder setKeyValidityStart(Date startDate){
  mKeyValidityStart=startDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant before which the key is not yet valid. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityEnd(Date)
 * @hide
 */
public Builder setKeyValidityStart(Date startDate){
  mKeyValidityStart=startDate;
  return this;
}
Program: 195377
Project: 195377
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid for decryption and verification. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityForOriginationEnd(Date)
 * @hide
 */
public Builder setKeyValidityForConsumptionEnd(Date endDate){
  mKeyValidityForConsumptionEnd=endDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid for decryption and verification. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityForOriginationEnd(Date)
 * @hide
 */
public Builder setKeyValidityForConsumptionEnd(Date endDate){
  mKeyValidityForConsumptionEnd=endDate;
  return this;
}
Program: 195378
Project: 195378
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityStart(Date)
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @see #setKeyValidityForOriginationEnd(Date)
 * @hide
 */
public Builder setKeyValidityEnd(Date endDate){
  setKeyValidityForOriginationEnd(endDate);
  setKeyValidityForConsumptionEnd(endDate);
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityStart(Date)
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @see #setKeyValidityForOriginationEnd(Date)
 * @hide
 */
public Builder setKeyValidityEnd(Date endDate){
  setKeyValidityForOriginationEnd(endDate);
  setKeyValidityForConsumptionEnd(endDate);
  return this;
}
Program: 195379
Project: 195379
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid for encryption and signing. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @hide
 */
public Builder setKeyValidityForOriginationEnd(Date endDate){
  mKeyValidityForOriginationEnd=endDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid for encryption and signing. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @hide
 */
public Builder setKeyValidityForOriginationEnd(Date endDate){
  mKeyValidityForOriginationEnd=endDate;
  return this;
}
Program: 195380
Project: 195380
Buggy source:
/** 
 * Sets the time instant before which the key is not yet valid. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityEnd(Date)
 * @hide
 */
public Builder setKeyValidityStart(Date startDate){
  mKeyValidityStart=startDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant before which the key is not yet valid. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityEnd(Date)
 * @hide
 */
public Builder setKeyValidityStart(Date startDate){
  mKeyValidityStart=startDate;
  return this;
}
Program: 195381
Project: 195381
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid for decryption and verification. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityForOriginationEnd(Date)
 */
public Builder setKeyValidityForConsumptionEnd(Date endDate){
  mKeyValidityForConsumptionEnd=endDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid for decryption and verification. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityForOriginationEnd(Date)
 */
public Builder setKeyValidityForConsumptionEnd(Date endDate){
  mKeyValidityForConsumptionEnd=endDate;
  return this;
}
Program: 195382
Project: 195382
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityStart(Date)
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @see #setKeyValidityForOriginationEnd(Date)
 */
public Builder setKeyValidityEnd(Date endDate){
  setKeyValidityForOriginationEnd(endDate);
  setKeyValidityForConsumptionEnd(endDate);
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityStart(Date)
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @see #setKeyValidityForOriginationEnd(Date)
 */
public Builder setKeyValidityEnd(Date endDate){
  setKeyValidityForOriginationEnd(endDate);
  setKeyValidityForConsumptionEnd(endDate);
  return this;
}
Program: 195383
Project: 195383
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid for encryption and signing. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityForConsumptionEnd(Date)
 */
public Builder setKeyValidityForOriginationEnd(Date endDate){
  mKeyValidityForOriginationEnd=endDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid for encryption and signing. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityForConsumptionEnd(Date)
 */
public Builder setKeyValidityForOriginationEnd(Date endDate){
  mKeyValidityForOriginationEnd=endDate;
  return this;
}
Program: 195384
Project: 195384
Buggy source:
/** 
 * Sets the time instant before which the key is not yet valid. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityEnd(Date)
 */
public Builder setKeyValidityStart(Date startDate){
  mKeyValidityStart=startDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant before which the key is not yet valid. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityEnd(Date)
 */
public Builder setKeyValidityStart(Date startDate){
  mKeyValidityStart=startDate;
  return this;
}
Program: 195385
Project: 195385
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid for decryption and verification. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityForOriginationEnd(Date)
 * @hide
 */
public Builder setKeyValidityForConsumptionEnd(Date endDate){
  mKeyValidityForConsumptionEnd=endDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid for decryption and verification. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityForOriginationEnd(Date)
 * @hide
 */
public Builder setKeyValidityForConsumptionEnd(Date endDate){
  mKeyValidityForConsumptionEnd=endDate;
  return this;
}
Program: 195386
Project: 195386
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityStart(Date)
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @see #setKeyValidityForOriginationEnd(Date)
 * @hide
 */
public Builder setKeyValidityEnd(Date endDate){
  setKeyValidityForOriginationEnd(endDate);
  setKeyValidityForConsumptionEnd(endDate);
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityStart(Date)
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @see #setKeyValidityForOriginationEnd(Date)
 * @hide
 */
public Builder setKeyValidityEnd(Date endDate){
  setKeyValidityForOriginationEnd(endDate);
  setKeyValidityForConsumptionEnd(endDate);
  return this;
}
Program: 195387
Project: 195387
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid for encryption and signing. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @hide
 */
public Builder setKeyValidityForOriginationEnd(Date endDate){
  mKeyValidityForOriginationEnd=endDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid for encryption and signing. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @hide
 */
public Builder setKeyValidityForOriginationEnd(Date endDate){
  mKeyValidityForOriginationEnd=endDate;
  return this;
}
Program: 195388
Project: 195388
Buggy source:
/** 
 * Sets the time instant before which the key is not yet valid. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityEnd(Date)
 * @hide
 */
public Builder setKeyValidityStart(Date startDate){
  mKeyValidityStart=startDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant before which the key is not yet valid. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityEnd(Date)
 * @hide
 */
public Builder setKeyValidityStart(Date startDate){
  mKeyValidityStart=startDate;
  return this;
}
Program: 195389
Project: 195389
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid for decryption and verification. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityForOriginationEnd(Date)
 * @hide
 */
public Builder setKeyValidityForConsumptionEnd(Date endDate){
  mKeyValidityForConsumptionEnd=endDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid for decryption and verification. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityForOriginationEnd(Date)
 * @hide
 */
public Builder setKeyValidityForConsumptionEnd(Date endDate){
  mKeyValidityForConsumptionEnd=endDate;
  return this;
}
Program: 195390
Project: 195390
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityStart(Date)
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @see #setKeyValidityForOriginationEnd(Date)
 * @hide
 */
public Builder setKeyValidityEnd(Date endDate){
  setKeyValidityForOriginationEnd(endDate);
  setKeyValidityForConsumptionEnd(endDate);
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityStart(Date)
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @see #setKeyValidityForOriginationEnd(Date)
 * @hide
 */
public Builder setKeyValidityEnd(Date endDate){
  setKeyValidityForOriginationEnd(endDate);
  setKeyValidityForConsumptionEnd(endDate);
  return this;
}
Program: 195391
Project: 195391
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid for encryption and signing. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @hide
 */
public Builder setKeyValidityForOriginationEnd(Date endDate){
  mKeyValidityForOriginationEnd=endDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid for encryption and signing. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @hide
 */
public Builder setKeyValidityForOriginationEnd(Date endDate){
  mKeyValidityForOriginationEnd=endDate;
  return this;
}
Program: 195392
Project: 195392
Buggy source:
/** 
 * Sets the time instant before which the key is not yet valid. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityEnd(Date)
 * @hide
 */
public Builder setKeyValidityStart(Date startDate){
  mKeyValidityStart=startDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant before which the key is not yet valid. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityEnd(Date)
 * @hide
 */
public Builder setKeyValidityStart(Date startDate){
  mKeyValidityStart=startDate;
  return this;
}
Program: 195393
Project: 195393
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid for decryption and verification. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityForOriginationEnd(Date)
 */
public Builder setKeyValidityForConsumptionEnd(Date endDate){
  mKeyValidityForConsumptionEnd=endDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid for decryption and verification. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityForOriginationEnd(Date)
 */
public Builder setKeyValidityForConsumptionEnd(Date endDate){
  mKeyValidityForConsumptionEnd=endDate;
  return this;
}
Program: 195394
Project: 195394
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityStart(Date)
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @see #setKeyValidityForOriginationEnd(Date)
 */
public Builder setKeyValidityEnd(Date endDate){
  setKeyValidityForOriginationEnd(endDate);
  setKeyValidityForConsumptionEnd(endDate);
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityStart(Date)
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @see #setKeyValidityForOriginationEnd(Date)
 */
public Builder setKeyValidityEnd(Date endDate){
  setKeyValidityForOriginationEnd(endDate);
  setKeyValidityForConsumptionEnd(endDate);
  return this;
}
Program: 195395
Project: 195395
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid for encryption and signing. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityForConsumptionEnd(Date)
 */
public Builder setKeyValidityForOriginationEnd(Date endDate){
  mKeyValidityForOriginationEnd=endDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid for encryption and signing. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityForConsumptionEnd(Date)
 */
public Builder setKeyValidityForOriginationEnd(Date endDate){
  mKeyValidityForOriginationEnd=endDate;
  return this;
}
Program: 195396
Project: 195396
Buggy source:
/** 
 * Sets the time instant before which the key is not yet valid. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityEnd(Date)
 */
public Builder setKeyValidityStart(Date startDate){
  mKeyValidityStart=startDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant before which the key is not yet valid. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityEnd(Date)
 */
public Builder setKeyValidityStart(Date startDate){
  mKeyValidityStart=startDate;
  return this;
}
Program: 195397
Project: 195397
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid for decryption and verification. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityForOriginationEnd(Date)
 * @hide
 */
public Builder setKeyValidityForConsumptionEnd(Date endDate){
  mKeyValidityForConsumptionEnd=endDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid for decryption and verification. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityForOriginationEnd(Date)
 * @hide
 */
public Builder setKeyValidityForConsumptionEnd(Date endDate){
  mKeyValidityForConsumptionEnd=endDate;
  return this;
}
Program: 195398
Project: 195398
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityStart(Date)
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @see #setKeyValidityForOriginationEnd(Date)
 * @hide
 */
public Builder setKeyValidityEnd(Date endDate){
  setKeyValidityForOriginationEnd(endDate);
  setKeyValidityForConsumptionEnd(endDate);
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityStart(Date)
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @see #setKeyValidityForOriginationEnd(Date)
 * @hide
 */
public Builder setKeyValidityEnd(Date endDate){
  setKeyValidityForOriginationEnd(endDate);
  setKeyValidityForConsumptionEnd(endDate);
  return this;
}
Program: 195399
Project: 195399
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid for encryption and signing. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @hide
 */
public Builder setKeyValidityForOriginationEnd(Date endDate){
  mKeyValidityForOriginationEnd=endDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid for encryption and signing. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @hide
 */
public Builder setKeyValidityForOriginationEnd(Date endDate){
  mKeyValidityForOriginationEnd=endDate;
  return this;
}
Program: 195400
Project: 195400
Buggy source:
/** 
 * Sets the time instant before which the key is not yet valid. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityEnd(Date)
 * @hide
 */
public Builder setKeyValidityStart(Date startDate){
  mKeyValidityStart=startDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant before which the key is not yet valid. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityEnd(Date)
 * @hide
 */
public Builder setKeyValidityStart(Date startDate){
  mKeyValidityStart=startDate;
  return this;
}
Program: 195401
Project: 195401
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid for decryption and verification. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityForOriginationEnd(Date)
 * @hide
 */
public Builder setKeyValidityForConsumptionEnd(Date endDate){
  mKeyValidityForConsumptionEnd=endDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid for decryption and verification. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityForOriginationEnd(Date)
 * @hide
 */
public Builder setKeyValidityForConsumptionEnd(Date endDate){
  mKeyValidityForConsumptionEnd=endDate;
  return this;
}
Program: 195402
Project: 195402
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityStart(Date)
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @see #setKeyValidityForOriginationEnd(Date)
 * @hide
 */
public Builder setKeyValidityEnd(Date endDate){
  setKeyValidityForOriginationEnd(endDate);
  setKeyValidityForConsumptionEnd(endDate);
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityStart(Date)
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @see #setKeyValidityForOriginationEnd(Date)
 * @hide
 */
public Builder setKeyValidityEnd(Date endDate){
  setKeyValidityForOriginationEnd(endDate);
  setKeyValidityForConsumptionEnd(endDate);
  return this;
}
Program: 195403
Project: 195403
Buggy source:
/** 
 * Sets the time instant after which the key is no longer valid for encryption and signing. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @hide
 */
public Builder setKeyValidityForOriginationEnd(Date endDate){
  mKeyValidityForOriginationEnd=endDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant after which the key is no longer valid for encryption and signing. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityForConsumptionEnd(Date)
 * @hide
 */
public Builder setKeyValidityForOriginationEnd(Date endDate){
  mKeyValidityForOriginationEnd=endDate;
  return this;
}
Program: 195404
Project: 195404
Buggy source:
/** 
 * Sets the time instant before which the key is not yet valid. <b>By default, the key is valid at any instant.
 * @see #setKeyValidityEnd(Date)
 * @hide
 */
public Builder setKeyValidityStart(Date startDate){
  mKeyValidityStart=startDate;
  return this;
}

Fixed version (ground truth):
/** 
 * Sets the time instant before which the key is not yet valid. <p>By default, the key is valid at any instant.
 * @see #setKeyValidityEnd(Date)
 * @hide
 */
public Builder setKeyValidityStart(Date startDate){
  mKeyValidityStart=startDate;
  return this;
}
Program: 195405
Project: 195405
Buggy source:
private List<ResolveInfo> filterCandidatesWithDomainPreferedActivitiesLPr(List<ResolveInfo> candidates){
  if (DEBUG_PREFERRED) {
    Slog.v("String_Node_Str","String_Node_Str" + candidates.size());
  }
  final int userId=UserHandle.getCallingUserId();
  ArrayList<ResolveInfo> result=new ArrayList<ResolveInfo>();
  ArrayList<ResolveInfo> neverList=new ArrayList<ResolveInfo>();
  ArrayList<ResolveInfo> matchAllList=new ArrayList<ResolveInfo>();
synchronized (mPackages) {
    final int count=candidates.size();
    for (int n=0; n < count; n++) {
      ResolveInfo info=candidates.get(n);
      String packageName=info.activityInfo.packageName;
      PackageSetting ps=mSettings.mPackages.get(packageName);
      if (ps != null) {
        int status=getDomainVerificationStatusLPr(ps,userId);
        if (status == INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ALWAYS) {
          result.add(info);
        }
 else         if (status == INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_NEVER) {
          neverList.add(info);
        }
        if (info.handleAllWebDataURI) {
          matchAllList.add(info);
        }
      }
    }
    if (result.size() == 0) {
      result.addAll(candidates);
    }
    result.removeAll(neverList);
    result.removeAll(matchAllList);
    if (result.size() == 0) {
      result.addAll(matchAllList);
    }
  }
  if (DEBUG_PREFERRED) {
    Slog.v("String_Node_Str","String_Node_Str" + result.size());
  }
  return result;
}

Fixed version (ground truth):
private List<ResolveInfo> filterCandidatesWithDomainPreferedActivitiesLPr(List<ResolveInfo> candidates){
  if (DEBUG_PREFERRED) {
    Slog.v("String_Node_Str","String_Node_Str" + candidates.size());
  }
  final int userId=UserHandle.getCallingUserId();
  ArrayList<ResolveInfo> result=new ArrayList<ResolveInfo>();
  ArrayList<ResolveInfo> neverList=new ArrayList<ResolveInfo>();
  ArrayList<ResolveInfo> matchAllList=new ArrayList<ResolveInfo>();
synchronized (mPackages) {
    final int count=candidates.size();
    for (int n=0; n < count; n++) {
      ResolveInfo info=candidates.get(n);
      String packageName=info.activityInfo.packageName;
      PackageSetting ps=mSettings.mPackages.get(packageName);
      if (ps != null) {
        int status=getDomainVerificationStatusLPr(ps,userId);
        if (status == INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ALWAYS || status == INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_UNDEFINED) {
          result.add(info);
        }
 else         if (status == INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_NEVER) {
          neverList.add(info);
        }
        if (info.handleAllWebDataURI) {
          matchAllList.add(info);
        }
      }
    }
    if (result.size() == 0) {
      result.addAll(candidates);
    }
    result.removeAll(neverList);
    result.removeAll(matchAllList);
    if (result.size() == 0) {
      result.addAll(matchAllList);
    }
  }
  if (DEBUG_PREFERRED) {
    Slog.v("String_Node_Str","String_Node_Str" + result.size());
  }
  return result;
}