nus-yam/ex-repair huggingface dataset:
Program: 194330
Project: 194330
Buggy source:
@Override public void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,String receiverPermission,int appOp,BroadcastReceiver resultReceiver,Handler scheduler,int initialCode,String initialData,Bundle initialExtras){
  IIntentReceiver rd=null;
  if (resultReceiver != null) {
    if (mPackageInfo != null) {
      if (scheduler == null) {
        scheduler=mMainThread.getHandler();
      }
      rd=mPackageInfo.getReceiverDispatcher(resultReceiver,getOuterContext(),scheduler,mMainThread.getInstrumentation(),false);
    }
 else {
      if (scheduler == null) {
        scheduler=mMainThread.getHandler();
      }
      rd=new LoadedApk.ReceiverDispatcher(resultReceiver,getOuterContext(),scheduler,null,false).getIIntentReceiver();
    }
  }
  String resolvedType=intent.resolveTypeIfNeeded(getContentResolver());
  String[] receiverPermissions=receiverPermission == null ? null : new String[]{receiverPermission};
  try {
    intent.prepareToLeaveProcess();
    ActivityManagerNative.getDefault().broadcastIntent(mMainThread.getApplicationThread(),intent,resolvedType,rd,initialCode,initialData,initialExtras,receiverPermissions,appOp,null,true,false,user.getIdentifier());
  }
 catch (  RemoteException e) {
    throw new RuntimeException("String_Node_Str",e);
  }
}

Fixed version (ground truth):
@Override public void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,String receiverPermission,int appOp,Bundle options,BroadcastReceiver resultReceiver,Handler scheduler,int initialCode,String initialData,Bundle initialExtras){
  IIntentReceiver rd=null;
  if (resultReceiver != null) {
    if (mPackageInfo != null) {
      if (scheduler == null) {
        scheduler=mMainThread.getHandler();
      }
      rd=mPackageInfo.getReceiverDispatcher(resultReceiver,getOuterContext(),scheduler,mMainThread.getInstrumentation(),false);
    }
 else {
      if (scheduler == null) {
        scheduler=mMainThread.getHandler();
      }
      rd=new LoadedApk.ReceiverDispatcher(resultReceiver,getOuterContext(),scheduler,null,false).getIIntentReceiver();
    }
  }
  String resolvedType=intent.resolveTypeIfNeeded(getContentResolver());
  String[] receiverPermissions=receiverPermission == null ? null : new String[]{receiverPermission};
  try {
    intent.prepareToLeaveProcess();
    ActivityManagerNative.getDefault().broadcastIntent(mMainThread.getApplicationThread(),intent,resolvedType,rd,initialCode,initialData,initialExtras,receiverPermissions,appOp,options,true,false,user.getIdentifier());
  }
 catch (  RemoteException e) {
    throw new RuntimeException("String_Node_Str",e);
  }
}
Program: 194331
Project: 194331
Buggy source:
/** 
 * Similar to above but takes an appOp as well, to enforce restrictions.
 * @see #sendOrderedBroadcastAsUser(Intent,UserHandle,String,BroadcastReceiver,Handler,int,String,Bundle)
 * @hide
 */
public abstract void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,@Nullable String receiverPermission,int appOp,BroadcastReceiver resultReceiver,@Nullable Handler scheduler,int initialCode,@Nullable String initialData,@Nullable Bundle initialExtras);

Fixed version (ground truth):
/** 
 * Similar to above but takes an appOp as well, to enforce restrictions, and an options Bundle.
 * @see #sendOrderedBroadcastAsUser(Intent,UserHandle,String,BroadcastReceiver,Handler,int,String,Bundle)
 * @hide
 */
public abstract void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,@Nullable String receiverPermission,int appOp,@Nullable Bundle options,BroadcastReceiver resultReceiver,@Nullable Handler scheduler,int initialCode,@Nullable String initialData,@Nullable Bundle initialExtras);
Program: 194332
Project: 194332
Buggy source:
/** 
 * @hide 
 */
@Override public void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,String receiverPermission,int appOp,BroadcastReceiver resultReceiver,Handler scheduler,int initialCode,String initialData,Bundle initialExtras){
  mBase.sendOrderedBroadcastAsUser(intent,user,receiverPermission,appOp,resultReceiver,scheduler,initialCode,initialData,initialExtras);
}

Fixed version (ground truth):
/** 
 * @hide 
 */
@Override public void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,String receiverPermission,int appOp,Bundle options,BroadcastReceiver resultReceiver,Handler scheduler,int initialCode,String initialData,Bundle initialExtras){
  mBase.sendOrderedBroadcastAsUser(intent,user,receiverPermission,appOp,options,resultReceiver,scheduler,initialCode,initialData,initialExtras);
}
Program: 194333
Project: 194333
Buggy source:
@Override public void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,String receiverPermission,int appOp,BroadcastReceiver resultReceiver,Handler scheduler,int initialCode,String initialData,Bundle initialExtras){
  IIntentReceiver rd=null;
  if (resultReceiver != null) {
    if (mPackageInfo != null) {
      if (scheduler == null) {
        scheduler=mMainThread.getHandler();
      }
      rd=mPackageInfo.getReceiverDispatcher(resultReceiver,getOuterContext(),scheduler,mMainThread.getInstrumentation(),false);
    }
 else {
      if (scheduler == null) {
        scheduler=mMainThread.getHandler();
      }
      rd=new LoadedApk.ReceiverDispatcher(resultReceiver,getOuterContext(),scheduler,null,false).getIIntentReceiver();
    }
  }
  String resolvedType=intent.resolveTypeIfNeeded(getContentResolver());
  String[] receiverPermissions=receiverPermission == null ? null : new String[]{receiverPermission};
  try {
    intent.prepareToLeaveProcess();
    ActivityManagerNative.getDefault().broadcastIntent(mMainThread.getApplicationThread(),intent,resolvedType,rd,initialCode,initialData,initialExtras,receiverPermissions,appOp,null,true,false,user.getIdentifier());
  }
 catch (  RemoteException e) {
    throw new RuntimeException("String_Node_Str",e);
  }
}

Fixed version (ground truth):
@Override public void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,String receiverPermission,int appOp,Bundle options,BroadcastReceiver resultReceiver,Handler scheduler,int initialCode,String initialData,Bundle initialExtras){
  IIntentReceiver rd=null;
  if (resultReceiver != null) {
    if (mPackageInfo != null) {
      if (scheduler == null) {
        scheduler=mMainThread.getHandler();
      }
      rd=mPackageInfo.getReceiverDispatcher(resultReceiver,getOuterContext(),scheduler,mMainThread.getInstrumentation(),false);
    }
 else {
      if (scheduler == null) {
        scheduler=mMainThread.getHandler();
      }
      rd=new LoadedApk.ReceiverDispatcher(resultReceiver,getOuterContext(),scheduler,null,false).getIIntentReceiver();
    }
  }
  String resolvedType=intent.resolveTypeIfNeeded(getContentResolver());
  String[] receiverPermissions=receiverPermission == null ? null : new String[]{receiverPermission};
  try {
    intent.prepareToLeaveProcess();
    ActivityManagerNative.getDefault().broadcastIntent(mMainThread.getApplicationThread(),intent,resolvedType,rd,initialCode,initialData,initialExtras,receiverPermissions,appOp,options,true,false,user.getIdentifier());
  }
 catch (  RemoteException e) {
    throw new RuntimeException("String_Node_Str",e);
  }
}
Program: 194334
Project: 194334
Buggy source:
/** 
 * Similar to above but takes an appOp as well, to enforce restrictions.
 * @see #sendOrderedBroadcastAsUser(Intent,UserHandle,String,BroadcastReceiver,Handler,int,String,Bundle)
 * @hide
 */
public abstract void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,@Nullable String receiverPermission,int appOp,BroadcastReceiver resultReceiver,@Nullable Handler scheduler,int initialCode,@Nullable String initialData,@Nullable Bundle initialExtras);

Fixed version (ground truth):
/** 
 * Similar to above but takes an appOp as well, to enforce restrictions, and an options Bundle.
 * @see #sendOrderedBroadcastAsUser(Intent,UserHandle,String,BroadcastReceiver,Handler,int,String,Bundle)
 * @hide
 */
public abstract void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,@Nullable String receiverPermission,int appOp,@Nullable Bundle options,BroadcastReceiver resultReceiver,@Nullable Handler scheduler,int initialCode,@Nullable String initialData,@Nullable Bundle initialExtras);
Program: 194335
Project: 194335
Buggy source:
/** 
 * @hide 
 */
@Override public void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,String receiverPermission,int appOp,BroadcastReceiver resultReceiver,Handler scheduler,int initialCode,String initialData,Bundle initialExtras){
  mBase.sendOrderedBroadcastAsUser(intent,user,receiverPermission,appOp,resultReceiver,scheduler,initialCode,initialData,initialExtras);
}

Fixed version (ground truth):
/** 
 * @hide 
 */
@Override public void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,String receiverPermission,int appOp,Bundle options,BroadcastReceiver resultReceiver,Handler scheduler,int initialCode,String initialData,Bundle initialExtras){
  mBase.sendOrderedBroadcastAsUser(intent,user,receiverPermission,appOp,options,resultReceiver,scheduler,initialCode,initialData,initialExtras);
}
Program: 194336
Project: 194336
Buggy source:
@Override public void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,String receiverPermission,int appOp,BroadcastReceiver resultReceiver,Handler scheduler,int initialCode,String initialData,Bundle initialExtras){
  IIntentReceiver rd=null;
  if (resultReceiver != null) {
    if (mPackageInfo != null) {
      if (scheduler == null) {
        scheduler=mMainThread.getHandler();
      }
      rd=mPackageInfo.getReceiverDispatcher(resultReceiver,getOuterContext(),scheduler,mMainThread.getInstrumentation(),false);
    }
 else {
      if (scheduler == null) {
        scheduler=mMainThread.getHandler();
      }
      rd=new LoadedApk.ReceiverDispatcher(resultReceiver,getOuterContext(),scheduler,null,false).getIIntentReceiver();
    }
  }
  String resolvedType=intent.resolveTypeIfNeeded(getContentResolver());
  String[] receiverPermissions=receiverPermission == null ? null : new String[]{receiverPermission};
  try {
    intent.prepareToLeaveProcess();
    ActivityManagerNative.getDefault().broadcastIntent(mMainThread.getApplicationThread(),intent,resolvedType,rd,initialCode,initialData,initialExtras,receiverPermissions,appOp,null,true,false,user.getIdentifier());
  }
 catch (  RemoteException e) {
    throw new RuntimeException("String_Node_Str",e);
  }
}

Fixed version (ground truth):
@Override public void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,String receiverPermission,int appOp,Bundle options,BroadcastReceiver resultReceiver,Handler scheduler,int initialCode,String initialData,Bundle initialExtras){
  IIntentReceiver rd=null;
  if (resultReceiver != null) {
    if (mPackageInfo != null) {
      if (scheduler == null) {
        scheduler=mMainThread.getHandler();
      }
      rd=mPackageInfo.getReceiverDispatcher(resultReceiver,getOuterContext(),scheduler,mMainThread.getInstrumentation(),false);
    }
 else {
      if (scheduler == null) {
        scheduler=mMainThread.getHandler();
      }
      rd=new LoadedApk.ReceiverDispatcher(resultReceiver,getOuterContext(),scheduler,null,false).getIIntentReceiver();
    }
  }
  String resolvedType=intent.resolveTypeIfNeeded(getContentResolver());
  String[] receiverPermissions=receiverPermission == null ? null : new String[]{receiverPermission};
  try {
    intent.prepareToLeaveProcess();
    ActivityManagerNative.getDefault().broadcastIntent(mMainThread.getApplicationThread(),intent,resolvedType,rd,initialCode,initialData,initialExtras,receiverPermissions,appOp,options,true,false,user.getIdentifier());
  }
 catch (  RemoteException e) {
    throw new RuntimeException("String_Node_Str",e);
  }
}
Program: 194337
Project: 194337
Buggy source:
/** 
 * Similar to above but takes an appOp as well, to enforce restrictions.
 * @see #sendOrderedBroadcastAsUser(Intent,UserHandle,String,BroadcastReceiver,Handler,int,String,Bundle)
 * @hide
 */
public abstract void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,@Nullable String receiverPermission,int appOp,BroadcastReceiver resultReceiver,@Nullable Handler scheduler,int initialCode,@Nullable String initialData,@Nullable Bundle initialExtras);

Fixed version (ground truth):
/** 
 * Similar to above but takes an appOp as well, to enforce restrictions, and an options Bundle.
 * @see #sendOrderedBroadcastAsUser(Intent,UserHandle,String,BroadcastReceiver,Handler,int,String,Bundle)
 * @hide
 */
public abstract void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,@Nullable String receiverPermission,int appOp,@Nullable Bundle options,BroadcastReceiver resultReceiver,@Nullable Handler scheduler,int initialCode,@Nullable String initialData,@Nullable Bundle initialExtras);
Program: 194338
Project: 194338
Buggy source:
/** 
 * @hide 
 */
@Override public void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,String receiverPermission,int appOp,BroadcastReceiver resultReceiver,Handler scheduler,int initialCode,String initialData,Bundle initialExtras){
  mBase.sendOrderedBroadcastAsUser(intent,user,receiverPermission,appOp,resultReceiver,scheduler,initialCode,initialData,initialExtras);
}

Fixed version (ground truth):
/** 
 * @hide 
 */
@Override public void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,String receiverPermission,int appOp,Bundle options,BroadcastReceiver resultReceiver,Handler scheduler,int initialCode,String initialData,Bundle initialExtras){
  mBase.sendOrderedBroadcastAsUser(intent,user,receiverPermission,appOp,options,resultReceiver,scheduler,initialCode,initialData,initialExtras);
}
Program: 194339
Project: 194339
Buggy source:
@Override public void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,String receiverPermission,int appOp,BroadcastReceiver resultReceiver,Handler scheduler,int initialCode,String initialData,Bundle initialExtras){
  IIntentReceiver rd=null;
  if (resultReceiver != null) {
    if (mPackageInfo != null) {
      if (scheduler == null) {
        scheduler=mMainThread.getHandler();
      }
      rd=mPackageInfo.getReceiverDispatcher(resultReceiver,getOuterContext(),scheduler,mMainThread.getInstrumentation(),false);
    }
 else {
      if (scheduler == null) {
        scheduler=mMainThread.getHandler();
      }
      rd=new LoadedApk.ReceiverDispatcher(resultReceiver,getOuterContext(),scheduler,null,false).getIIntentReceiver();
    }
  }
  String resolvedType=intent.resolveTypeIfNeeded(getContentResolver());
  String[] receiverPermissions=receiverPermission == null ? null : new String[]{receiverPermission};
  try {
    intent.prepareToLeaveProcess();
    ActivityManagerNative.getDefault().broadcastIntent(mMainThread.getApplicationThread(),intent,resolvedType,rd,initialCode,initialData,initialExtras,receiverPermissions,appOp,null,true,false,user.getIdentifier());
  }
 catch (  RemoteException e) {
    throw new RuntimeException("String_Node_Str",e);
  }
}

Fixed version (ground truth):
@Override public void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,String receiverPermission,int appOp,Bundle options,BroadcastReceiver resultReceiver,Handler scheduler,int initialCode,String initialData,Bundle initialExtras){
  IIntentReceiver rd=null;
  if (resultReceiver != null) {
    if (mPackageInfo != null) {
      if (scheduler == null) {
        scheduler=mMainThread.getHandler();
      }
      rd=mPackageInfo.getReceiverDispatcher(resultReceiver,getOuterContext(),scheduler,mMainThread.getInstrumentation(),false);
    }
 else {
      if (scheduler == null) {
        scheduler=mMainThread.getHandler();
      }
      rd=new LoadedApk.ReceiverDispatcher(resultReceiver,getOuterContext(),scheduler,null,false).getIIntentReceiver();
    }
  }
  String resolvedType=intent.resolveTypeIfNeeded(getContentResolver());
  String[] receiverPermissions=receiverPermission == null ? null : new String[]{receiverPermission};
  try {
    intent.prepareToLeaveProcess();
    ActivityManagerNative.getDefault().broadcastIntent(mMainThread.getApplicationThread(),intent,resolvedType,rd,initialCode,initialData,initialExtras,receiverPermissions,appOp,options,true,false,user.getIdentifier());
  }
 catch (  RemoteException e) {
    throw new RuntimeException("String_Node_Str",e);
  }
}
Program: 194340
Project: 194340
Buggy source:
/** 
 * Similar to above but takes an appOp as well, to enforce restrictions.
 * @see #sendOrderedBroadcastAsUser(Intent,UserHandle,String,BroadcastReceiver,Handler,int,String,Bundle)
 * @hide
 */
public abstract void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,@Nullable String receiverPermission,int appOp,BroadcastReceiver resultReceiver,@Nullable Handler scheduler,int initialCode,@Nullable String initialData,@Nullable Bundle initialExtras);

Fixed version (ground truth):
/** 
 * Similar to above but takes an appOp as well, to enforce restrictions, and an options Bundle.
 * @see #sendOrderedBroadcastAsUser(Intent,UserHandle,String,BroadcastReceiver,Handler,int,String,Bundle)
 * @hide
 */
public abstract void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,@Nullable String receiverPermission,int appOp,@Nullable Bundle options,BroadcastReceiver resultReceiver,@Nullable Handler scheduler,int initialCode,@Nullable String initialData,@Nullable Bundle initialExtras);
Program: 194341
Project: 194341
Buggy source:
/** 
 * @hide 
 */
@Override public void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,String receiverPermission,int appOp,BroadcastReceiver resultReceiver,Handler scheduler,int initialCode,String initialData,Bundle initialExtras){
  mBase.sendOrderedBroadcastAsUser(intent,user,receiverPermission,appOp,resultReceiver,scheduler,initialCode,initialData,initialExtras);
}

Fixed version (ground truth):
/** 
 * @hide 
 */
@Override public void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,String receiverPermission,int appOp,Bundle options,BroadcastReceiver resultReceiver,Handler scheduler,int initialCode,String initialData,Bundle initialExtras){
  mBase.sendOrderedBroadcastAsUser(intent,user,receiverPermission,appOp,options,resultReceiver,scheduler,initialCode,initialData,initialExtras);
}
Program: 194342
Project: 194342
Buggy source:
@Override public void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,String receiverPermission,int appOp,BroadcastReceiver resultReceiver,Handler scheduler,int initialCode,String initialData,Bundle initialExtras){
  IIntentReceiver rd=null;
  if (resultReceiver != null) {
    if (mPackageInfo != null) {
      if (scheduler == null) {
        scheduler=mMainThread.getHandler();
      }
      rd=mPackageInfo.getReceiverDispatcher(resultReceiver,getOuterContext(),scheduler,mMainThread.getInstrumentation(),false);
    }
 else {
      if (scheduler == null) {
        scheduler=mMainThread.getHandler();
      }
      rd=new LoadedApk.ReceiverDispatcher(resultReceiver,getOuterContext(),scheduler,null,false).getIIntentReceiver();
    }
  }
  String resolvedType=intent.resolveTypeIfNeeded(getContentResolver());
  String[] receiverPermissions=receiverPermission == null ? null : new String[]{receiverPermission};
  try {
    intent.prepareToLeaveProcess();
    ActivityManagerNative.getDefault().broadcastIntent(mMainThread.getApplicationThread(),intent,resolvedType,rd,initialCode,initialData,initialExtras,receiverPermissions,appOp,null,true,false,user.getIdentifier());
  }
 catch (  RemoteException e) {
    throw new RuntimeException("String_Node_Str",e);
  }
}

Fixed version (ground truth):
@Override public void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,String receiverPermission,int appOp,Bundle options,BroadcastReceiver resultReceiver,Handler scheduler,int initialCode,String initialData,Bundle initialExtras){
  IIntentReceiver rd=null;
  if (resultReceiver != null) {
    if (mPackageInfo != null) {
      if (scheduler == null) {
        scheduler=mMainThread.getHandler();
      }
      rd=mPackageInfo.getReceiverDispatcher(resultReceiver,getOuterContext(),scheduler,mMainThread.getInstrumentation(),false);
    }
 else {
      if (scheduler == null) {
        scheduler=mMainThread.getHandler();
      }
      rd=new LoadedApk.ReceiverDispatcher(resultReceiver,getOuterContext(),scheduler,null,false).getIIntentReceiver();
    }
  }
  String resolvedType=intent.resolveTypeIfNeeded(getContentResolver());
  String[] receiverPermissions=receiverPermission == null ? null : new String[]{receiverPermission};
  try {
    intent.prepareToLeaveProcess();
    ActivityManagerNative.getDefault().broadcastIntent(mMainThread.getApplicationThread(),intent,resolvedType,rd,initialCode,initialData,initialExtras,receiverPermissions,appOp,options,true,false,user.getIdentifier());
  }
 catch (  RemoteException e) {
    throw new RuntimeException("String_Node_Str",e);
  }
}
Program: 194343
Project: 194343
Buggy source:
/** 
 * Similar to above but takes an appOp as well, to enforce restrictions.
 * @see #sendOrderedBroadcastAsUser(Intent,UserHandle,String,BroadcastReceiver,Handler,int,String,Bundle)
 * @hide
 */
public abstract void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,@Nullable String receiverPermission,int appOp,BroadcastReceiver resultReceiver,@Nullable Handler scheduler,int initialCode,@Nullable String initialData,@Nullable Bundle initialExtras);

Fixed version (ground truth):
/** 
 * Similar to above but takes an appOp as well, to enforce restrictions, and an options Bundle.
 * @see #sendOrderedBroadcastAsUser(Intent,UserHandle,String,BroadcastReceiver,Handler,int,String,Bundle)
 * @hide
 */
public abstract void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,@Nullable String receiverPermission,int appOp,@Nullable Bundle options,BroadcastReceiver resultReceiver,@Nullable Handler scheduler,int initialCode,@Nullable String initialData,@Nullable Bundle initialExtras);
Program: 194344
Project: 194344
Buggy source:
/** 
 * @hide 
 */
@Override public void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,String receiverPermission,int appOp,BroadcastReceiver resultReceiver,Handler scheduler,int initialCode,String initialData,Bundle initialExtras){
  mBase.sendOrderedBroadcastAsUser(intent,user,receiverPermission,appOp,resultReceiver,scheduler,initialCode,initialData,initialExtras);
}

Fixed version (ground truth):
/** 
 * @hide 
 */
@Override public void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,String receiverPermission,int appOp,Bundle options,BroadcastReceiver resultReceiver,Handler scheduler,int initialCode,String initialData,Bundle initialExtras){
  mBase.sendOrderedBroadcastAsUser(intent,user,receiverPermission,appOp,options,resultReceiver,scheduler,initialCode,initialData,initialExtras);
}
Program: 194345
Project: 194345
Buggy source:
@Override public void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,String receiverPermission,int appOp,BroadcastReceiver resultReceiver,Handler scheduler,int initialCode,String initialData,Bundle initialExtras){
  IIntentReceiver rd=null;
  if (resultReceiver != null) {
    if (mPackageInfo != null) {
      if (scheduler == null) {
        scheduler=mMainThread.getHandler();
      }
      rd=mPackageInfo.getReceiverDispatcher(resultReceiver,getOuterContext(),scheduler,mMainThread.getInstrumentation(),false);
    }
 else {
      if (scheduler == null) {
        scheduler=mMainThread.getHandler();
      }
      rd=new LoadedApk.ReceiverDispatcher(resultReceiver,getOuterContext(),scheduler,null,false).getIIntentReceiver();
    }
  }
  String resolvedType=intent.resolveTypeIfNeeded(getContentResolver());
  String[] receiverPermissions=receiverPermission == null ? null : new String[]{receiverPermission};
  try {
    intent.prepareToLeaveProcess();
    ActivityManagerNative.getDefault().broadcastIntent(mMainThread.getApplicationThread(),intent,resolvedType,rd,initialCode,initialData,initialExtras,receiverPermissions,appOp,null,true,false,user.getIdentifier());
  }
 catch (  RemoteException e) {
    throw new RuntimeException("String_Node_Str",e);
  }
}

Fixed version (ground truth):
@Override public void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,String receiverPermission,int appOp,Bundle options,BroadcastReceiver resultReceiver,Handler scheduler,int initialCode,String initialData,Bundle initialExtras){
  IIntentReceiver rd=null;
  if (resultReceiver != null) {
    if (mPackageInfo != null) {
      if (scheduler == null) {
        scheduler=mMainThread.getHandler();
      }
      rd=mPackageInfo.getReceiverDispatcher(resultReceiver,getOuterContext(),scheduler,mMainThread.getInstrumentation(),false);
    }
 else {
      if (scheduler == null) {
        scheduler=mMainThread.getHandler();
      }
      rd=new LoadedApk.ReceiverDispatcher(resultReceiver,getOuterContext(),scheduler,null,false).getIIntentReceiver();
    }
  }
  String resolvedType=intent.resolveTypeIfNeeded(getContentResolver());
  String[] receiverPermissions=receiverPermission == null ? null : new String[]{receiverPermission};
  try {
    intent.prepareToLeaveProcess();
    ActivityManagerNative.getDefault().broadcastIntent(mMainThread.getApplicationThread(),intent,resolvedType,rd,initialCode,initialData,initialExtras,receiverPermissions,appOp,options,true,false,user.getIdentifier());
  }
 catch (  RemoteException e) {
    throw new RuntimeException("String_Node_Str",e);
  }
}
Program: 194346
Project: 194346
Buggy source:
/** 
 * Similar to above but takes an appOp as well, to enforce restrictions.
 * @see #sendOrderedBroadcastAsUser(Intent,UserHandle,String,BroadcastReceiver,Handler,int,String,Bundle)
 * @hide
 */
public abstract void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,@Nullable String receiverPermission,int appOp,BroadcastReceiver resultReceiver,@Nullable Handler scheduler,int initialCode,@Nullable String initialData,@Nullable Bundle initialExtras);

Fixed version (ground truth):
/** 
 * Similar to above but takes an appOp as well, to enforce restrictions, and an options Bundle.
 * @see #sendOrderedBroadcastAsUser(Intent,UserHandle,String,BroadcastReceiver,Handler,int,String,Bundle)
 * @hide
 */
public abstract void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,@Nullable String receiverPermission,int appOp,@Nullable Bundle options,BroadcastReceiver resultReceiver,@Nullable Handler scheduler,int initialCode,@Nullable String initialData,@Nullable Bundle initialExtras);
Program: 194347
Project: 194347
Buggy source:
/** 
 * @hide 
 */
@Override public void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,String receiverPermission,int appOp,BroadcastReceiver resultReceiver,Handler scheduler,int initialCode,String initialData,Bundle initialExtras){
  mBase.sendOrderedBroadcastAsUser(intent,user,receiverPermission,appOp,resultReceiver,scheduler,initialCode,initialData,initialExtras);
}

Fixed version (ground truth):
/** 
 * @hide 
 */
@Override public void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,String receiverPermission,int appOp,Bundle options,BroadcastReceiver resultReceiver,Handler scheduler,int initialCode,String initialData,Bundle initialExtras){
  mBase.sendOrderedBroadcastAsUser(intent,user,receiverPermission,appOp,options,resultReceiver,scheduler,initialCode,initialData,initialExtras);
}
Program: 194348
Project: 194348
Buggy source:
@Override public void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,String receiverPermission,int appOp,BroadcastReceiver resultReceiver,Handler scheduler,int initialCode,String initialData,Bundle initialExtras){
  IIntentReceiver rd=null;
  if (resultReceiver != null) {
    if (mPackageInfo != null) {
      if (scheduler == null) {
        scheduler=mMainThread.getHandler();
      }
      rd=mPackageInfo.getReceiverDispatcher(resultReceiver,getOuterContext(),scheduler,mMainThread.getInstrumentation(),false);
    }
 else {
      if (scheduler == null) {
        scheduler=mMainThread.getHandler();
      }
      rd=new LoadedApk.ReceiverDispatcher(resultReceiver,getOuterContext(),scheduler,null,false).getIIntentReceiver();
    }
  }
  String resolvedType=intent.resolveTypeIfNeeded(getContentResolver());
  String[] receiverPermissions=receiverPermission == null ? null : new String[]{receiverPermission};
  try {
    intent.prepareToLeaveProcess();
    ActivityManagerNative.getDefault().broadcastIntent(mMainThread.getApplicationThread(),intent,resolvedType,rd,initialCode,initialData,initialExtras,receiverPermissions,appOp,null,true,false,user.getIdentifier());
  }
 catch (  RemoteException e) {
    throw new RuntimeException("String_Node_Str",e);
  }
}

Fixed version (ground truth):
@Override public void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,String receiverPermission,int appOp,Bundle options,BroadcastReceiver resultReceiver,Handler scheduler,int initialCode,String initialData,Bundle initialExtras){
  IIntentReceiver rd=null;
  if (resultReceiver != null) {
    if (mPackageInfo != null) {
      if (scheduler == null) {
        scheduler=mMainThread.getHandler();
      }
      rd=mPackageInfo.getReceiverDispatcher(resultReceiver,getOuterContext(),scheduler,mMainThread.getInstrumentation(),false);
    }
 else {
      if (scheduler == null) {
        scheduler=mMainThread.getHandler();
      }
      rd=new LoadedApk.ReceiverDispatcher(resultReceiver,getOuterContext(),scheduler,null,false).getIIntentReceiver();
    }
  }
  String resolvedType=intent.resolveTypeIfNeeded(getContentResolver());
  String[] receiverPermissions=receiverPermission == null ? null : new String[]{receiverPermission};
  try {
    intent.prepareToLeaveProcess();
    ActivityManagerNative.getDefault().broadcastIntent(mMainThread.getApplicationThread(),intent,resolvedType,rd,initialCode,initialData,initialExtras,receiverPermissions,appOp,options,true,false,user.getIdentifier());
  }
 catch (  RemoteException e) {
    throw new RuntimeException("String_Node_Str",e);
  }
}
Program: 194349
Project: 194349
Buggy source:
/** 
 * Similar to above but takes an appOp as well, to enforce restrictions.
 * @see #sendOrderedBroadcastAsUser(Intent,UserHandle,String,BroadcastReceiver,Handler,int,String,Bundle)
 * @hide
 */
public abstract void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,@Nullable String receiverPermission,int appOp,BroadcastReceiver resultReceiver,@Nullable Handler scheduler,int initialCode,@Nullable String initialData,@Nullable Bundle initialExtras);

Fixed version (ground truth):
/** 
 * Similar to above but takes an appOp as well, to enforce restrictions, and an options Bundle.
 * @see #sendOrderedBroadcastAsUser(Intent,UserHandle,String,BroadcastReceiver,Handler,int,String,Bundle)
 * @hide
 */
public abstract void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,@Nullable String receiverPermission,int appOp,@Nullable Bundle options,BroadcastReceiver resultReceiver,@Nullable Handler scheduler,int initialCode,@Nullable String initialData,@Nullable Bundle initialExtras);
Program: 194350
Project: 194350
Buggy source:
/** 
 * @hide 
 */
@Override public void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,String receiverPermission,int appOp,BroadcastReceiver resultReceiver,Handler scheduler,int initialCode,String initialData,Bundle initialExtras){
  mBase.sendOrderedBroadcastAsUser(intent,user,receiverPermission,appOp,resultReceiver,scheduler,initialCode,initialData,initialExtras);
}

Fixed version (ground truth):
/** 
 * @hide 
 */
@Override public void sendOrderedBroadcastAsUser(Intent intent,UserHandle user,String receiverPermission,int appOp,Bundle options,BroadcastReceiver resultReceiver,Handler scheduler,int initialCode,String initialData,Bundle initialExtras){
  mBase.sendOrderedBroadcastAsUser(intent,user,receiverPermission,appOp,options,resultReceiver,scheduler,initialCode,initialData,initialExtras);
}
Program: 194352
Project: 194352
Buggy source:
@Override public boolean onPreferenceChange(Preference preference,Object newValue){
  if (preference == mEnabledSwitch) {
    setGlobal(DEMO_MODE_ALLOWED,newValue == Boolean.TRUE ? 1 : 0);
  }
 else   if (preference == mOnSwitch) {
    if (newValue == Boolean.TRUE) {
      startDemoMode();
    }
 else {
      stopDemoMode();
    }
  }
 else {
    return false;
  }
  return true;
}

Fixed version (ground truth):
@Override public boolean onPreferenceChange(Preference preference,Object newValue){
  if (preference == mEnabledSwitch) {
    if (newValue != Boolean.TRUE) {
      mOnSwitch.setChecked(false);
      stopDemoMode();
    }
    setGlobal(DEMO_MODE_ALLOWED,newValue == Boolean.TRUE ? 1 : 0);
  }
 else   if (preference == mOnSwitch) {
    if (newValue == Boolean.TRUE) {
      startDemoMode();
    }
 else {
      stopDemoMode();
    }
  }
 else {
    return false;
  }
  return true;
}
Program: 194355
Project: 194355
Buggy source:
@Override public boolean onPreferenceChange(Preference preference,Object newValue){
  if (preference == mEnabledSwitch) {
    setGlobal(DEMO_MODE_ALLOWED,newValue == Boolean.TRUE ? 1 : 0);
  }
 else   if (preference == mOnSwitch) {
    if (newValue == Boolean.TRUE) {
      startDemoMode();
    }
 else {
      stopDemoMode();
    }
  }
 else {
    return false;
  }
  return true;
}

Fixed version (ground truth):
@Override public boolean onPreferenceChange(Preference preference,Object newValue){
  if (preference == mEnabledSwitch) {
    if (newValue != Boolean.TRUE) {
      mOnSwitch.setChecked(false);
      stopDemoMode();
    }
    setGlobal(DEMO_MODE_ALLOWED,newValue == Boolean.TRUE ? 1 : 0);
  }
 else   if (preference == mOnSwitch) {
    if (newValue == Boolean.TRUE) {
      startDemoMode();
    }
 else {
      stopDemoMode();
    }
  }
 else {
    return false;
  }
  return true;
}
Program: 194357
Project: 194357
Buggy source:
@Override public boolean onPreferenceChange(Preference preference,Object newValue){
  if (preference == mEnabledSwitch) {
    setGlobal(DEMO_MODE_ALLOWED,newValue == Boolean.TRUE ? 1 : 0);
  }
 else   if (preference == mOnSwitch) {
    if (newValue == Boolean.TRUE) {
      startDemoMode();
    }
 else {
      stopDemoMode();
    }
  }
 else {
    return false;
  }
  return true;
}

Fixed version (ground truth):
@Override public boolean onPreferenceChange(Preference preference,Object newValue){
  if (preference == mEnabledSwitch) {
    if (newValue != Boolean.TRUE) {
      mOnSwitch.setChecked(false);
      stopDemoMode();
    }
    setGlobal(DEMO_MODE_ALLOWED,newValue == Boolean.TRUE ? 1 : 0);
  }
 else   if (preference == mOnSwitch) {
    if (newValue == Boolean.TRUE) {
      startDemoMode();
    }
 else {
      stopDemoMode();
    }
  }
 else {
    return false;
  }
  return true;
}
Program: 194360
Project: 194360
Buggy source:
@Override public boolean onPreferenceChange(Preference preference,Object newValue){
  if (preference == mEnabledSwitch) {
    setGlobal(DEMO_MODE_ALLOWED,newValue == Boolean.TRUE ? 1 : 0);
  }
 else   if (preference == mOnSwitch) {
    if (newValue == Boolean.TRUE) {
      startDemoMode();
    }
 else {
      stopDemoMode();
    }
  }
 else {
    return false;
  }
  return true;
}

Fixed version (ground truth):
@Override public boolean onPreferenceChange(Preference preference,Object newValue){
  if (preference == mEnabledSwitch) {
    if (newValue != Boolean.TRUE) {
      mOnSwitch.setChecked(false);
      stopDemoMode();
    }
    setGlobal(DEMO_MODE_ALLOWED,newValue == Boolean.TRUE ? 1 : 0);
  }
 else   if (preference == mOnSwitch) {
    if (newValue == Boolean.TRUE) {
      startDemoMode();
    }
 else {
      stopDemoMode();
    }
  }
 else {
    return false;
  }
  return true;
}
Program: 194362
Project: 194362
Buggy source:
/** 
 * Return whether the given   {@link WifiInfo} is for this access point. 
 */
private boolean isInfoForThisAccessPoint(WifiInfo info){
  if (networkId != WifiConfiguration.INVALID_NETWORK_ID) {
    return networkId == info.getNetworkId();
  }
 else {
    return ssid.equals(removeDoubleQuotes(info.getSSID()));
  }
}

Fixed version (ground truth):
/** 
 * Return whether the given   {@link WifiInfo} is for this access point. 
 */
private boolean isInfoForThisAccessPoint(WifiInfo info){
  if (isPasspoint() == false && networkId != WifiConfiguration.INVALID_NETWORK_ID) {
    return networkId == info.getNetworkId();
  }
 else {
    return ssid.equals(removeDoubleQuotes(info.getSSID()));
  }
}
Program: 194364
Project: 194364
Buggy source:
/** 
 * Return whether the given   {@link WifiInfo} is for this access point. 
 */
private boolean isInfoForThisAccessPoint(WifiInfo info){
  if (networkId != WifiConfiguration.INVALID_NETWORK_ID) {
    return networkId == info.getNetworkId();
  }
 else {
    return ssid.equals(removeDoubleQuotes(info.getSSID()));
  }
}

Fixed version (ground truth):
/** 
 * Return whether the given   {@link WifiInfo} is for this access point. 
 */
private boolean isInfoForThisAccessPoint(WifiInfo info){
  if (isPasspoint() == false && networkId != WifiConfiguration.INVALID_NETWORK_ID) {
    return networkId == info.getNetworkId();
  }
 else {
    return ssid.equals(removeDoubleQuotes(info.getSSID()));
  }
}
Program: 194365
Project: 194365
Buggy source:
/** 
 * Return whether the given   {@link WifiInfo} is for this access point. 
 */
private boolean isInfoForThisAccessPoint(WifiInfo info){
  if (networkId != WifiConfiguration.INVALID_NETWORK_ID) {
    return networkId == info.getNetworkId();
  }
 else {
    return ssid.equals(removeDoubleQuotes(info.getSSID()));
  }
}

Fixed version (ground truth):
/** 
 * Return whether the given   {@link WifiInfo} is for this access point. 
 */
private boolean isInfoForThisAccessPoint(WifiInfo info){
  if (isPasspoint() == false && networkId != WifiConfiguration.INVALID_NETWORK_ID) {
    return networkId == info.getNetworkId();
  }
 else {
    return ssid.equals(removeDoubleQuotes(info.getSSID()));
  }
}
Program: 194367
Project: 194367
Buggy source:
@Override public boolean onPreferenceChange(Preference preference,Object newValue){
  if (preference == mEnabledSwitch) {
    setGlobal(DEMO_MODE_ALLOWED,newValue == Boolean.TRUE ? 1 : 0);
  }
 else   if (preference == mOnSwitch) {
    if (newValue == Boolean.TRUE) {
      startDemoMode();
    }
 else {
      stopDemoMode();
    }
  }
 else {
    return false;
  }
  return true;
}

Fixed version (ground truth):
@Override public boolean onPreferenceChange(Preference preference,Object newValue){
  if (preference == mEnabledSwitch) {
    if (newValue != Boolean.TRUE) {
      mOnSwitch.setChecked(false);
      stopDemoMode();
    }
    setGlobal(DEMO_MODE_ALLOWED,newValue == Boolean.TRUE ? 1 : 0);
  }
 else   if (preference == mOnSwitch) {
    if (newValue == Boolean.TRUE) {
      startDemoMode();
    }
 else {
      stopDemoMode();
    }
  }
 else {
    return false;
  }
  return true;
}
Program: 194369
Project: 194369
Buggy source:
@Override public boolean onPreferenceChange(Preference preference,Object newValue){
  if (preference == mEnabledSwitch) {
    setGlobal(DEMO_MODE_ALLOWED,newValue == Boolean.TRUE ? 1 : 0);
  }
 else   if (preference == mOnSwitch) {
    if (newValue == Boolean.TRUE) {
      startDemoMode();
    }
 else {
      stopDemoMode();
    }
  }
 else {
    return false;
  }
  return true;
}

Fixed version (ground truth):
@Override public boolean onPreferenceChange(Preference preference,Object newValue){
  if (preference == mEnabledSwitch) {
    if (newValue != Boolean.TRUE) {
      mOnSwitch.setChecked(false);
      stopDemoMode();
    }
    setGlobal(DEMO_MODE_ALLOWED,newValue == Boolean.TRUE ? 1 : 0);
  }
 else   if (preference == mOnSwitch) {
    if (newValue == Boolean.TRUE) {
      startDemoMode();
    }
 else {
      stopDemoMode();
    }
  }
 else {
    return false;
  }
  return true;
}
Program: 194371
Project: 194371
Buggy source:
@Override public boolean onPreferenceChange(Preference preference,Object newValue){
  if (preference == mEnabledSwitch) {
    setGlobal(DEMO_MODE_ALLOWED,newValue == Boolean.TRUE ? 1 : 0);
  }
 else   if (preference == mOnSwitch) {
    if (newValue == Boolean.TRUE) {
      startDemoMode();
    }
 else {
      stopDemoMode();
    }
  }
 else {
    return false;
  }
  return true;
}

Fixed version (ground truth):
@Override public boolean onPreferenceChange(Preference preference,Object newValue){
  if (preference == mEnabledSwitch) {
    if (newValue != Boolean.TRUE) {
      mOnSwitch.setChecked(false);
      stopDemoMode();
    }
    setGlobal(DEMO_MODE_ALLOWED,newValue == Boolean.TRUE ? 1 : 0);
  }
 else   if (preference == mOnSwitch) {
    if (newValue == Boolean.TRUE) {
      startDemoMode();
    }
 else {
      stopDemoMode();
    }
  }
 else {
    return false;
  }
  return true;
}
Program: 194375
Project: 194375
Buggy source:
/** 
 * Return whether the given   {@link WifiInfo} is for this access point. 
 */
private boolean isInfoForThisAccessPoint(WifiInfo info){
  if (networkId != WifiConfiguration.INVALID_NETWORK_ID) {
    return networkId == info.getNetworkId();
  }
 else {
    return ssid.equals(removeDoubleQuotes(info.getSSID()));
  }
}

Fixed version (ground truth):
/** 
 * Return whether the given   {@link WifiInfo} is for this access point. 
 */
private boolean isInfoForThisAccessPoint(WifiInfo info){
  if (isPasspoint() == false && networkId != WifiConfiguration.INVALID_NETWORK_ID) {
    return networkId == info.getNetworkId();
  }
 else {
    return ssid.equals(removeDoubleQuotes(info.getSSID()));
  }
}
Program: 194376
Project: 194376
Buggy source:
/** 
 * Make a shallow copy of this package settings.
 */
public void copyFrom(PackageSettingBase base){
  grantedPermissions=base.grantedPermissions;
  gids=base.gids;
  primaryCpuAbiString=base.primaryCpuAbiString;
  secondaryCpuAbiString=base.secondaryCpuAbiString;
  cpuAbiOverrideString=base.cpuAbiOverrideString;
  timeStamp=base.timeStamp;
  firstInstallTime=base.firstInstallTime;
  lastUpdateTime=base.lastUpdateTime;
  signatures=base.signatures;
  permissionsFixed=base.permissionsFixed;
  haveGids=base.haveGids;
  userState.clear();
  for (int i=0; i < base.userState.size(); i++) {
    userState.put(base.userState.keyAt(i),base.userState.valueAt(i));
  }
  installStatus=base.installStatus;
  keySetData=base.keySetData;
}

Fixed version (ground truth):
/** 
 * Make a shallow copy of this package settings.
 */
public void copyFrom(PackageSettingBase base){
  grantedPermissions=base.grantedPermissions;
  gids=base.gids;
  primaryCpuAbiString=base.primaryCpuAbiString;
  secondaryCpuAbiString=base.secondaryCpuAbiString;
  cpuAbiOverrideString=base.cpuAbiOverrideString;
  timeStamp=base.timeStamp;
  firstInstallTime=base.firstInstallTime;
  lastUpdateTime=base.lastUpdateTime;
  signatures=base.signatures;
  permissionsFixed=base.permissionsFixed;
  haveGids=base.haveGids;
  userState.clear();
  for (int i=0; i < base.userState.size(); i++) {
    userState.put(base.userState.keyAt(i),base.userState.valueAt(i));
  }
  installStatus=base.installStatus;
  keySetData=base.keySetData;
  installerPackageName=base.installerPackageName;
}
Program: 194377
Project: 194377
Buggy source:
private void runPostCollapseRunnables(){
  int size=mPostCollapseRunnables.size();
  for (int i=0; i < size; i++) {
    mPostCollapseRunnables.get(i).run();
  }
  mPostCollapseRunnables.clear();
}

Fixed version (ground truth):
private void runPostCollapseRunnables(){
  ArrayList<Runnable> clonedList=new ArrayList<>(mPostCollapseRunnables);
  mPostCollapseRunnables.clear();
  int size=clonedList.size();
  for (int i=0; i < size; i++) {
    clonedList.get(i).run();
  }
}
Program: 194378
Project: 194378
Buggy source:
private boolean shouldForceHide(WindowState win){
  final WindowState imeTarget=mService.mInputMethodTarget;
  final boolean showImeOverKeyguard=imeTarget != null && imeTarget.isVisibleNow() && ((imeTarget.getAttrs().flags & FLAG_SHOW_WHEN_LOCKED) != 0 || !mPolicy.canBeForceHidden(imeTarget,imeTarget.mAttrs));
  final WindowState winShowWhenLocked=(WindowState)mPolicy.getWinShowWhenLockedLw();
  final AppWindowToken appShowWhenLocked=winShowWhenLocked == null ? null : winShowWhenLocked.mAppToken;
  final boolean hideWhenLocked=!(((win.mIsImWindow || imeTarget == win) && showImeOverKeyguard) || (appShowWhenLocked != null && (appShowWhenLocked == win.mAppToken || (win.mAttrs.flags & FLAG_SHOW_WHEN_LOCKED) != 0 && win.isAnimatingLw() || (win.mAttrs.privateFlags & PRIVATE_FLAG_SYSTEM_ERROR) != 0)));
  boolean keyguardOn=mPolicy.isKeyguardShowingOrOccluded() && mForceHiding != KEYGUARD_ANIMATING_OUT;
  return keyguardOn && hideWhenLocked && (win.getDisplayId() == Display.DEFAULT_DISPLAY);
}

Fixed version (ground truth):
private boolean shouldForceHide(WindowState win){
  final WindowState imeTarget=mService.mInputMethodTarget;
  final boolean showImeOverKeyguard=imeTarget != null && imeTarget.isVisibleNow() && ((imeTarget.getAttrs().flags & FLAG_SHOW_WHEN_LOCKED) != 0 || !mPolicy.canBeForceHidden(imeTarget,imeTarget.mAttrs));
  final WindowState winShowWhenLocked=(WindowState)mPolicy.getWinShowWhenLockedLw();
  final AppWindowToken appShowWhenLocked=winShowWhenLocked == null ? null : winShowWhenLocked.mAppToken;
  boolean allowWhenLocked=false;
  allowWhenLocked|=(win.mIsImWindow || imeTarget == win) && showImeOverKeyguard;
  allowWhenLocked|=(win.mAttrs.flags & FLAG_SHOW_WHEN_LOCKED) != 0 && win.mTurnOnScreen;
  if (appShowWhenLocked != null) {
    allowWhenLocked|=appShowWhenLocked == win.mAppToken || (win.mAttrs.flags & FLAG_SHOW_WHEN_LOCKED) != 0 && win.isAnimatingLw() || (win.mAttrs.privateFlags & PRIVATE_FLAG_SYSTEM_ERROR) != 0;
  }
  boolean keyguardOn=mPolicy.isKeyguardShowingOrOccluded() && mForceHiding != KEYGUARD_ANIMATING_OUT;
  return keyguardOn && !allowWhenLocked && (win.getDisplayId() == Display.DEFAULT_DISPLAY);
}
Program: 194379
Project: 194379
Buggy source:
public boolean isVisible(StatusBarNotification sbn){
  if (!sbn.getNotification().isGroupChild()) {
    return true;
  }
  NotificationGroup group=mGroupMap.get(sbn.getGroupKey());
  if (group != null && group.expanded) {
    return true;
  }
  return false;
}

Fixed version (ground truth):
public boolean isVisible(StatusBarNotification sbn){
  if (!sbn.getNotification().isGroupChild()) {
    return true;
  }
  NotificationGroup group=mGroupMap.get(sbn.getGroupKey());
  if (group != null && (group.expanded || group.summary == null)) {
    return true;
  }
  return false;
}
Program: 194380
Project: 194380
Buggy source:
@Override public void startAccessPoint(WifiConfiguration wifiConfig,String wlanIface){
  mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL,TAG);
  try {
    wifiFirmwareReload(wlanIface,"String_Node_Str");
    if (wifiConfig == null) {
      mConnector.execute("String_Node_Str","String_Node_Str",wlanIface);
    }
 else {
      mConnector.execute("String_Node_Str","String_Node_Str",wlanIface,wifiConfig.SSID,"String_Node_Str",Integer.toString(wifiConfig.apChannel),getSecurityType(wifiConfig),new SensitiveArg(wifiConfig.preSharedKey));
    }
    mConnector.execute("String_Node_Str","String_Node_Str");
  }
 catch (  NativeDaemonConnectorException e) {
    throw e.rethrowAsParcelableException();
  }
}

Fixed version (ground truth):
@Override public void startAccessPoint(WifiConfiguration wifiConfig,String wlanIface){
  mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL,TAG);
  try {
    if (wifiConfig == null) {
      mConnector.execute("String_Node_Str","String_Node_Str",wlanIface);
    }
 else {
      mConnector.execute("String_Node_Str","String_Node_Str",wlanIface,wifiConfig.SSID,"String_Node_Str",Integer.toString(wifiConfig.apChannel),getSecurityType(wifiConfig),new SensitiveArg(wifiConfig.preSharedKey));
    }
    mConnector.execute("String_Node_Str","String_Node_Str");
  }
 catch (  NativeDaemonConnectorException e) {
    throw e.rethrowAsParcelableException();
  }
}
Program: 194381
Project: 194381
Buggy source:
private void onViewAddedInternal(View child){
  mStackScrollAlgorithm.notifyChildrenChanged(this);
  ((ExpandableView)child).setOnHeightChangedListener(this);
  generateAddAnimation(child,false);
  updateAnimationState(child);
  if (canChildBeDismissed(child)) {
    mDismissView.showClearButton();
  }
}

Fixed version (ground truth):
private void onViewAddedInternal(View child){
  updateHideSensitiveForChild(child);
  mStackScrollAlgorithm.notifyChildrenChanged(this);
  ((ExpandableView)child).setOnHeightChangedListener(this);
  generateAddAnimation(child,false);
  updateAnimationState(child);
  if (canChildBeDismissed(child)) {
    mDismissView.showClearButton();
  }
}