auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public int getItemViewType ( int position ) { com.android.dialer.common.LogUtil.enterBlock ( "NewVoicemailAdapter.getItemViewType" ) ; if ( ( ( todayHeaderPosition ) != ( java.lang.Integer.MAX_VALUE ) ) && ( position == ( todayHeaderPosition ) ) ) { return com.android.dialer.voicemail.listui.NewVoicemailAdapter.RowType.HEADER ; } if ( ( ( olderHeaderPosition ) != ( java.lang.Integer.MAX_VALUE ) ) && ( position == ( olderHeaderPosition ) ) ) { return com.android.dialer.voicemail.listui.NewVoicemailAdapter.RowType.HEADER ; } return com.android.dialer.voicemail.listui.NewVoicemailAdapter.RowType.VOICEMAIL_ENTRY ; }

Target:
public int getItemViewType ( int position ) { com.android.dialer.common.LogUtil.enterBlock ( "NewVoicemailAdapter.getItemViewType" ) ; if ( ( ( voicemailAlertPosition ) != ( java.lang.Integer.MAX_VALUE ) ) && ( position == ( voicemailAlertPosition ) ) ) { return com.android.dialer.voicemail.listui.NewVoicemailAdapter.RowType.VOICEMAIL_ALERT ; } if ( ( ( todayHeaderPosition ) != ( java.lang.Integer.MAX_VALUE ) ) && ( position == ( todayHeaderPosition ) ) ) { return com.android.dialer.voicemail.listui.NewVoicemailAdapter.RowType.HEADER ; } if ( ( ( olderHeaderPosition ) != ( java.lang.Integer.MAX_VALUE ) ) && ( position == ( olderHeaderPosition ) ) ) { return com.android.dialer.voicemail.listui.NewVoicemailAdapter.RowType.HEADER ; } return com.android.dialer.voicemail.listui.NewVoicemailAdapter.RowType.VOICEMAIL_ENTRY ; }
Source:
public void onBluetoothPeripheralHandoverComplete ( boolean connected ) { int transport = mBluetoothPeripheralHandover.mTransport ; mBluetoothPeripheralHandover = null ; mBluetoothHeadsetConnected = connected ; if ( ( transport == ( android.bluetooth.BluetoothDevice.TRANSPORT_LE ) ) && ( ! connected ) ) { if ( mHandler.hasMessages ( com.android.nfc.handover.PeripheralHandoverService.MSG_PAUSE_POLLING ) ) { mHandler.removeMessages ( com.android.nfc.handover.PeripheralHandoverService.MSG_PAUSE_POLLING ) ; } mNfcAdapter.resumePolling ( ) ; } disableBluetoothIfNeeded ( ) ; stopSelf ( mStartId ) ; }

Target:
public void onBluetoothPeripheralHandoverComplete ( boolean connected ) { int transport = mBluetoothPeripheralHandover.mTransport ; mBluetoothPeripheralHandover = null ; mBluetoothHeadsetConnected = connected ; if ( ( transport == ( android.bluetooth.BluetoothDevice.TRANSPORT_LE ) ) && ( ! connected ) ) { if ( mHandler.hasMessages ( com.android.nfc.handover.PeripheralHandoverService.MSG_PAUSE_POLLING ) ) { mHandler.removeMessages ( com.android.nfc.handover.PeripheralHandoverService.MSG_PAUSE_POLLING ) ; } mNfcAdapter.resumePolling ( ) ; } disableBluetoothIfNeeded ( ) ; synchronized ( com.android.nfc.handover.PeripheralHandoverService.sLock ) { stopSelf ( mStartId ) ; mStartId = 0 ; } }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { java.lang.String [ ] pkgs = intent.getStringArrayExtra ( Intent.EXTRA_PACKAGES ) ; if ( pkgs != null ) { for ( java.lang.String pkg : pkgs ) { synchronized ( this ) { if ( forceStopPackageLocked ( pkg , ( - 1 ) , false , false , false ) ) { setResultCode ( Activity.RESULT_OK ) ; return ; } } } } }

Target:
public void batteryPowerChanged ( boolean onBattery ) { updateCpuStatsNow ( ) ; synchronized ( this ) { synchronized ( mPidsSelfLocked ) { mOnBattery = ( com.android.server.am.ActivityManagerService.DEBUG_POWER ) ? true : onBattery ; } } }
Source:
static com.android.jack.shrob.spec.ClassSpecification classSpec ( java.lang.String name , @ javax.annotation.Nonnull com.android.jack.shrob.spec.ClassTypeSpecification classType , com.android.jack.shrob.spec.AnnotationSpecification annotation , @ javax.annotation.Nonnull com.android.jack.shrob.spec.ModifierSpecification modifier ) { com.android.jack.shrob.spec.NameSpecification nameSpec ; if ( name.equals ( "*" ) ) { nameSpec = com.android.jack.shrob.proguard.GrammarActions.name ( "**" ) ; } else { nameSpec = com.android.jack.shrob.proguard.GrammarActions.name ( name ) ; } com.android.jack.shrob.spec.ClassSpecification classSpec = new com.android.jack.shrob.spec.ClassSpecification ( nameSpec , classType , annotation ) ; classSpec.setModifier ( modifier ) ; return classSpec ; }

Target:
static com.android.jack.shrob.spec.ClassSpecification classSpec ( java.lang.String name , boolean hasNameNegator , @ javax.annotation.Nonnull com.android.jack.shrob.spec.ClassTypeSpecification classType , com.android.jack.shrob.spec.AnnotationSpecification annotation , @ javax.annotation.Nonnull com.android.jack.shrob.spec.ModifierSpecification modifier ) { com.android.jack.shrob.spec.NameSpecification nameSpec ; if ( name.equals ( "*" ) ) { nameSpec = com.android.jack.shrob.proguard.GrammarActions.name ( "**" ) ; } else { nameSpec = com.android.jack.shrob.proguard.GrammarActions.name ( name ) ; } nameSpec.setNegator ( hasNameNegator ) ; com.android.jack.shrob.spec.ClassSpecification classSpec = new com.android.jack.shrob.spec.ClassSpecification ( nameSpec , classType , annotation ) ; classSpec.setModifier ( modifier ) ; return classSpec ; }
Source:
public void substract ( com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config ) { for ( int i = 0 ; i < ( com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration.INDEX_COUNT ) ; i ++ ) { if ( ( ( config.mQualifiers [ i ] ) != null ) && ( config.mQualifiers [ i ] . isValid ( ) ) ) { mQualifiers [ i ] = null ; } } }

Target:
public void substract ( com.android.ide.common.resources.configuration.FolderConfiguration config ) { for ( int i = 0 ; i < ( com.android.ide.common.resources.configuration.FolderConfiguration.INDEX_COUNT ) ; i ++ ) { if ( ( ( config.mQualifiers [ i ] ) != null ) && ( config.mQualifiers [ i ] . isValid ( ) ) ) { mQualifiers [ i ] = null ; } } }
Source:
public static double max ( double a , double b ) { if ( a != a ) return a ; if ( ( ( a == 0.0 ) && ( b == 0.0 ) ) && ( ( java.lang.Double.doubleToLongBits ( a ) ) == ( java.lang.Math.negativeZeroDoubleBits ) ) ) { return b ; } return a >= b ? a : b ; }

Target:
public static double max ( double a , double b ) { if ( a != a ) return a ; if ( ( ( a == 0.0 ) && ( b == 0.0 ) ) && ( ( java.lang.Double.doubleToRawLongBits ( a ) ) == ( java.lang.Math.negativeZeroDoubleBits ) ) ) { return b ; } return a >= b ? a : b ; }
Source:
synchronized void nAllocationData2D ( long id , int xoff , int yoff , int mip , int face , int w , int h , long [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData2D ( mContext , id , xoff , yoff , mip , face , w , h , d , sizeBytes ) ; }

Target:
native void rsnAllocationRead1D ( long con , long id , int off , int mip , int count , java.lang.Object d , int sizeBytes , int dt ) ;
Source:
private void showPinDialog ( ) { if ( ( mDialogState ) == ( com.android.settings.IccLockSettings.OFF_MODE ) ) { return ; } setDialogValues ( ) ; mPinDialog.showPinDialog ( ) ; }

Target:
private void showPinDialog ( ) { if ( ( mDialogState ) == ( com.android.settings.IccLockSettings.OFF_MODE ) ) { return ; } setDialogValues ( ) ; mPinDialog.showPinDialog ( ) ; final android.widget.EditText editText = mPinDialog.getEditText ( ) ; if ( ( ! ( android.text.TextUtils.isEmpty ( mPin ) ) ) && ( editText != null ) ) { editText.setSelection ( mPin.length ( ) ) ; } }
Source:
protected java.util.Set < com.google.common.reflect.TypeToken < ? super T > > delegate ( ) { com.google.common.collect.ImmutableSet < com.google.common.reflect.TypeToken < ? super T > > result = interfaces ; if ( result == null ) { return interfaces = com.google.common.collect.FluentIterable.from ( allTypes ) . filter ( com.google.common.reflect.TypeToken.TypeFilter.INTERFACE_ONLY ) . toImmutableSet ( ) ; } else { return result ; } }

Target:
protected java.util.Set < com.google.common.reflect.TypeToken < ? super T > > delegate ( ) { com.google.common.collect.ImmutableSet < com.google.common.reflect.TypeToken < ? super T > > result = interfaces ; if ( result == null ) { return interfaces = com.google.common.collect.FluentIterable.from ( allTypes ) . filter ( com.google.common.reflect.TypeToken.TypeFilter.INTERFACE_ONLY ) . toSet ( ) ; } else { return result ; } }
Source:
private void updateNodeProxies ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo vi ) { if ( vi == null ) { return ; } com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode key = vi.getUiViewKey ( ) ; if ( key != null ) { mNodeFactory.create ( vi ) ; } for ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo child : vi.getChildren ( ) ) { updateNodeProxies ( child ) ; } }

Target:
public void showXml ( org.eclipse.swt.events.MouseEvent e ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutPoint p = com.android.ide.eclipse.adt.internal.editors.layout.gle2.ControlPoint.create ( this , e ) . toLayout ( ) ; com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo vi = mViewHierarchy.findViewInfoAt ( p ) ; if ( ( vi == null ) || ( vi.isRoot ( ) ) ) { return ; } org.w3c.dom.Node xmlNode = vi.getXmlNode ( ) ; if ( xmlNode != null ) { boolean found = mLayoutEditor.show ( xmlNode ) ; if ( ! found ) { getDisplay ( ) . beep ( ) ; } } }
Source:
public void test_GetRoundingMode ( ) { java.text.DecimalFormat decimalFormat = ( ( java.text.DecimalFormat ) ( java.text.DecimalFormat.getInstance ( java.util.Locale.US ) ) ) ; assertEquals ( "Incorrect default RoundingMode" , decimalFormat.getRoundingMode ( ) , java.math.RoundingMode.HALF_EVEN ) ; decimalFormat.setRoundingMode ( java.math.RoundingMode.HALF_DOWN ) ; assertEquals ( "Returned incorrect RoundingMode" , decimalFormat.getRoundingMode ( ) , java.math.RoundingMode.HALF_DOWN ) ; }

Target:
public void test_getRoundingMode ( ) { java.text.DecimalFormat decimalFormat = ( ( java.text.DecimalFormat ) ( java.text.DecimalFormat.getInstance ( java.util.Locale.US ) ) ) ; assertEquals ( "Incorrect default RoundingMode" , decimalFormat.getRoundingMode ( ) , java.math.RoundingMode.HALF_EVEN ) ; decimalFormat.setRoundingMode ( java.math.RoundingMode.HALF_DOWN ) ; assertEquals ( "Returned incorrect RoundingMode" , decimalFormat.getRoundingMode ( ) , java.math.RoundingMode.HALF_DOWN ) ; }
Source:
public void addUserDevice ( com.android.sdklib.devices.Device d ) { synchronized ( com.android.sdklib.devices.DeviceManager.sLock ) { if ( ( com.android.sdklib.devices.DeviceManager.mUserDevices ) == null ) { getUserDevices ( ) ; } com.android.sdklib.devices.DeviceManager.mUserDevices.add ( d ) ; } notifyListeners ( ) ; }

Target:
public void addUserDevice ( com.android.sdklib.devices.Device d ) { boolean changed = false ; synchronized ( mLock ) { if ( ( mUserDevices ) == null ) { initUserDevices ( ) ; assert ( mUserDevices ) != null ; } if ( ( mUserDevices ) != null ) { mUserDevices.add ( d ) ; } changed = true ; } if ( changed ) { notifyListeners ( ) ; } }
Source:
public void visitMethodInsn ( int opcode , java.lang.String owner , java.lang.String name , java.lang.String desc ) { if ( ( ! ( considerDesc ( owner ) ) ) && ( ( owner.indexOf ( '/' ) ) != ( - 1 ) ) ) { considerName ( owner ) ; } considerDesc ( desc ) ; }

Target:
public void visitMethodInsn ( int opcode , java.lang.String owner , java.lang.String name , java.lang.String desc , boolean itf ) { if ( ( ! ( considerDesc ( owner ) ) ) && ( ( owner.indexOf ( '/' ) ) != ( - 1 ) ) ) { considerName ( owner ) ; } considerDesc ( desc ) ; }
Source:
public void test_initWithKey ( ) throws java.lang.Exception { javax.crypto.Cipher cipher = javax.crypto.Cipher.getInstance ( ( ( org.apache.harmony.crypto.tests.javax.crypto.CipherTest.algorithm ) + "/ECB/PKCS5Padding" ) ) ; cipher.init ( javax.crypto.Cipher.ENCRYPT_MODE , org.apache.harmony.crypto.tests.javax.crypto.CipherTest.cipherKey ) ; cipher = javax.crypto.Cipher.getInstance ( "DES/CBC/NoPadding" ) ; try { cipher.init ( javax.crypto.Cipher.ENCRYPT_MODE , org.apache.harmony.crypto.tests.javax.crypto.CipherTest.cipherKey ) ; fail ( ) ; } catch ( java.security.InvalidKeyException expected ) { } }

Target:
public void test_initWithKey ( ) throws java.lang.Exception { javax.crypto.Cipher cipher = javax.crypto.Cipher.getInstance ( ( ( org.apache.harmony.crypto.tests.javax.crypto.CipherTest.ALGORITHM_3DES ) + "/ECB/PKCS5Padding" ) ) ; cipher.init ( javax.crypto.Cipher.ENCRYPT_MODE , org.apache.harmony.crypto.tests.javax.crypto.CipherTest.CIPHER_KEY_3DES ) ; cipher = javax.crypto.Cipher.getInstance ( "DES/CBC/NoPadding" ) ; try { cipher.init ( javax.crypto.Cipher.ENCRYPT_MODE , org.apache.harmony.crypto.tests.javax.crypto.CipherTest.CIPHER_KEY_3DES ) ; fail ( ) ; } catch ( java.security.InvalidKeyException expected ) { } }
Source:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , byte [ ] data ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy2DRangeFromUnchecked" ) ; mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , data , data.length ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , byte [ ] data ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy2DRangeFromUnchecked" ) ; mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , data , data.length , Element.DataType.SIGNED_8 ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }
Source:
public byte [ ] getEncoded ( ) { if ( ( info ) != null ) { return org.bouncycastle.jcajce.provider.asymmetric.util.KeyUtil.getEncodedSubjectPublicKeyInfo ( info ) ; } return org.bouncycastle.jcajce.provider.asymmetric.util.KeyUtil.getEncodedSubjectPublicKeyInfo ( new org.bouncycastle.asn1.x509.AlgorithmIdentifier ( org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.dhKeyAgreement , new org.bouncycastle.asn1.pkcs.DHParameter ( dhSpec.getP ( ) , dhSpec.getG ( ) , dhSpec.getL ( ) ) ) , new org.bouncycastle.asn1.DERInteger ( y ) ) ; }

Target:
public byte [ ] getEncoded ( ) { if ( ( info ) != null ) { return org.bouncycastle.jcajce.provider.asymmetric.util.KeyUtil.getEncodedSubjectPublicKeyInfo ( info ) ; } return org.bouncycastle.jcajce.provider.asymmetric.util.KeyUtil.getEncodedSubjectPublicKeyInfo ( new org.bouncycastle.asn1.x509.AlgorithmIdentifier ( org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers.dhKeyAgreement , new org.bouncycastle.asn1.pkcs.DHParameter ( dhSpec.getP ( ) , dhSpec.getG ( ) , dhSpec.getL ( ) ) ) , new org.bouncycastle.asn1.ASN1Integer ( y ) ) ; }
Source:
public void visitProgramMethod ( proguard.optimize.info.ProgramClass programClass , proguard.optimize.info.ProgramMethod programMethod ) { if ( ( ! ( proguard.optimize.info.SideEffectMethodMarker.hasSideEffects ( programMethod ) ) ) && ( ! ( proguard.optimize.info.NoSideEffectMethodMarker.hasNoSideEffects ( programMethod ) ) ) ) { hasSideEffects = ( ( programMethod.getAccessFlags ( ) ) & ( ( ClassConstants.INTERNAL_ACC_NATIVE ) | ( ClassConstants.INTERNAL_ACC_SYNCHRONIZED ) ) ) != 0 ; if ( ! ( hasSideEffects ) ) { programMethod.attributesAccept ( programClass , this ) ; } if ( hasSideEffects ) { proguard.optimize.info.SideEffectMethodMarker.markSideEffects ( programMethod ) ; ( newSideEffectCount ) ++ ; } } }

Target:
public void visitProgramMethod ( proguard.optimize.info.ProgramClass programClass , proguard.optimize.info.ProgramMethod programMethod ) { if ( ( ! ( proguard.optimize.info.SideEffectMethodMarker.hasSideEffects ( programMethod ) ) ) && ( ! ( proguard.optimize.info.NoSideEffectMethodMarker.hasNoSideEffects ( programMethod ) ) ) ) { hasSideEffects = ( ( programMethod.getAccessFlags ( ) ) & ( ( ClassConstants.ACC_NATIVE ) | ( ClassConstants.ACC_SYNCHRONIZED ) ) ) != 0 ; if ( ! ( hasSideEffects ) ) { programMethod.attributesAccept ( programClass , this ) ; } if ( hasSideEffects ) { proguard.optimize.info.SideEffectMethodMarker.markSideEffects ( programMethod ) ; ( newSideEffectCount ) ++ ; } } }
Source:
public void onGetNetworkRegistrationStateComplete ( int result , android.telephony.NetworkRegistrationState state ) { android.telephony.INetworkServiceCallback callback = mCallback.get ( ) ; if ( callback != null ) { try { callback.onGetNetworkRegistrationStateComplete ( result , state ) ; } catch ( android.os.RemoteException e ) { android.telephony.Rlog.e ( android.telephony.NetworkServiceCallback.mTag , "Failed to onGetNetworkRegistrationStateComplete on the remote" ) ; } } }

Target:
public void onGetNetworkRegistrationStateComplete ( int result , android.telephony.NetworkRegistrationState state ) { android.telephony.INetworkServiceCallback callback = mCallback.get ( ) ; if ( callback != null ) { try { callback.onGetNetworkRegistrationStateComplete ( result , state ) ; } catch ( android.os.RemoteException e ) { android.telephony.Rlog.e ( android.telephony.NetworkServiceCallback.mTag , "Failed to onGetNetworkRegistrationStateComplete on the remote" ) ; } } else { android.telephony.Rlog.e ( android.telephony.NetworkServiceCallback.mTag , "Weak reference of callback is null." ) ; } }
Source:
public void dup2_x2 ( ) { super . dup2_x2 ( ) ; producerPop ( ) ; producerPop ( ) ; producerPop ( ) ; producerPop ( ) ; producerPush ( ) ; producerPush ( ) ; producerPush ( ) ; producerPush ( ) ; producerPush ( ) ; producerPush ( ) ; }

Target:
private void producerPop ( ) { producerStack.pop ( ) ; actualProducerStack.pop ( ) ; }
Source:
private android.net.ConnectivityManager.NetworkCallback getCallback ( android.net.NetworkRequest req , java.lang.String name ) { final android.net.ConnectivityManager.NetworkCallback callback ; synchronized ( android.net.ConnectivityManager.sCallbacks ) { callback = android.net.ConnectivityManager.sCallbacks.get ( req ) ; } if ( callback == null ) { android.util.Log.w ( android.net.ConnectivityManager.CallbackHandler.TAG , ( ( "callback not found for " + name ) + " message" ) ) ; } return callback ; }

Target:
private android.net.ConnectivityManager.NetworkCallback getCallback ( android.os.Message msg ) { final android.net.NetworkRequest req = getObject ( msg , android.net.NetworkRequest.class ) ; final android.net.ConnectivityManager.NetworkCallback callback ; synchronized ( android.net.ConnectivityManager.sCallbacks ) { callback = android.net.ConnectivityManager.sCallbacks.get ( req ) ; } if ( callback == null ) { android.util.Log.w ( android.net.ConnectivityManager.CallbackHandler.TAG , ( ( "callback not found for " + ( android.net.ConnectivityManager.getCallbackName ( msg.what ) ) ) + " message" ) ) ; } return callback ; }
Source:
public void afterHandshake ( long session , long ssl , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { byte [ ] negotiated = org.conscrypt.NativeCrypto.SSL_get0_alpn_selected ( ssl ) ; assertEquals ( "spdy/2" , new java.lang.String ( negotiated ) ) ; super . afterHandshake ( session , ssl , c , sock , fd , callback ) ; }

Target:
public void afterHandshake ( long session , long ssl , long context , java.net.Socket socket , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { byte [ ] negotiated = org.conscrypt.NativeCrypto.SSL_get0_alpn_selected ( ssl ) ; assertEquals ( "spdy/2" , new java.lang.String ( negotiated ) ) ; super . afterHandshake ( session , ssl , context , socket , fd , callback ) ; }
Source:
private static synchronized com.google.devtools.common.options.OptionsData getOptionsDataInternal ( com.google.common.collect.ImmutableList < java.lang.Class < ? extends com.google.devtools.common.options.OptionsBase > > optionsClasses ) { com.google.devtools.common.options.OptionsData result = com.google.devtools.common.options.OptionsParser.optionsData.get ( optionsClasses ) ; if ( result == null ) { result = com.google.devtools.common.options.OptionsData.from ( optionsClasses ) ; com.google.devtools.common.options.OptionsParser.optionsData.put ( optionsClasses , result ) ; } return result ; }

Target:
private static synchronized com.google.devtools.common.options.OptionsData getOptionsDataInternal ( com.google.common.collect.ImmutableList < java.lang.Class < ? extends com.google.devtools.common.options.OptionsBase > > optionsClasses ) throws com.google.devtools.common.options.OptionsParser.ConstructionException { com.google.devtools.common.options.OptionsData result = com.google.devtools.common.options.OptionsParser.optionsData.get ( optionsClasses ) ; if ( result == null ) { try { result = com.google.devtools.common.options.OptionsData.from ( optionsClasses ) ; } catch ( java.lang.Exception e ) { throw new com.google.devtools.common.options.OptionsParser.ConstructionException ( e.getMessage ( ) , e ) ; } com.google.devtools.common.options.OptionsParser.optionsData.put ( optionsClasses , result ) ; } return result ; }
Source:
protected void setUp ( ) { myThreads = new java.util.ArrayList < > ( ) ; initialThreadGroup = java.lang.Thread.currentThread ( ) . getThreadGroup ( ) ; java.lang.ThreadGroup rootThreadGroup = initialThreadGroup ; while ( ( rootThreadGroup.getParent ( ) ) != null ) { rootThreadGroup = rootThreadGroup.getParent ( ) ; } }

Target:
protected void setUp ( ) { myThreads = new java.util.ArrayList < > ( ) ; initialThreadGroup = new java.lang.ThreadGroup ( java.lang.Thread.currentThread ( ) . getThreadGroup ( ) , "test group" ) ; initialThread = new libcore.java.lang.OldThreadGroupTest.MyThread ( initialThreadGroup , "initial thread" ) ; myThreads.add ( initialThread ) ; initialThread.start ( ) ; java.lang.ThreadGroup rootThreadGroup = initialThreadGroup ; while ( ( rootThreadGroup.getParent ( ) ) != null ) { rootThreadGroup = rootThreadGroup.getParent ( ) ; } }
Source:
public E poll ( ) { final java.util.concurrent.locks.ReentrantLock lock = this . lock ; lock.lock ( ) ; try { return ( count ) == 0 ? null : extract ( ) ; } finally { lock.unlock ( ) ; } }

Target:
public boolean offer ( E e , long timeout , java.util.concurrent.TimeUnit unit ) throws java.lang.InterruptedException { java.util.concurrent.ArrayBlockingQueue.checkNotNull ( e ) ; long nanos = unit.toNanos ( timeout ) ; final java.util.concurrent.locks.ReentrantLock lock = this . lock ; lock.lockInterruptibly ( ) ; try { while ( ( count ) == ( items.length ) ) { if ( nanos <= 0 ) return false ; nanos = notFull.awaitNanos ( nanos ) ; } enqueue ( e ) ; return true ; } finally { lock.unlock ( ) ; } }
Source:
private static java.nio.charset.Charset lookup ( java.lang.String charsetName ) { if ( charsetName == null ) throw new java.lang.IllegalArgumentException ( "Null charset name" ) ; if ( ( ( java.nio.charset.Charset.cache1 ) != null ) && ( charsetName.equals ( java.nio.charset.Charset.cache1.getKey ( ) ) ) ) return java.nio.charset.Charset.cache1.getValue ( ) ; return java.nio.charset.Charset.lookup2 ( charsetName ) ; }

Target:
private static void cache ( java.lang.String charsetName , java.nio.charset.Charset cs ) { java.nio.charset.Charset.cache2 = java.nio.charset.Charset.cache1 ; java.nio.charset.Charset.cache1 = new java.lang.Object [ ] { charsetName , cs } ; }
Source:
private int getListenerKey ( java.lang.Object listener ) { synchronized ( mMapLock ) { int valueIndex = mListenerMap.indexOfValue ( listener ) ; if ( valueIndex != ( - 1 ) ) { return mListenerMap.keyAt ( valueIndex ) ; } } return android.net.nsd.NsdManager.INVALID_LISTENER_KEY ; }

Target:
private int getListenerKey ( java.lang.Object listener ) { android.net.nsd.NsdManager.checkListener ( listener ) ; synchronized ( mMapLock ) { int valueIndex = mListenerMap.indexOfValue ( listener ) ; com.android.internal.util.Preconditions.checkArgument ( ( valueIndex != ( - 1 ) ) , "listener not registered" ) ; return mListenerMap.keyAt ( valueIndex ) ; } }
Source:
private void waitUninterruptibly ( com.google.common.util.concurrent.Monitor.Guard guard , boolean signalBeforeWaiting ) { if ( ! ( guard.isSatisfied ( ) ) ) { if ( signalBeforeWaiting ) { signalConditionsOfSatisfiedGuards ( null ) ; } incrementWaiters ( guard ) ; try { final java.util.concurrent.locks.Condition condition = guard.condition ; do { condition.awaitUninterruptibly ( ) ; } while ( ! ( guard.isSatisfied ( ) ) ) ; } finally { decrementWaiters ( guard ) ; } } }

Target:
private void awaitUninterruptibly ( com.google.common.util.concurrent.Monitor.Guard guard , boolean signalBeforeWaiting ) { if ( signalBeforeWaiting ) { signalNextWaiter ( ) ; } beginWaitingFor ( guard ) ; try { do { guard.condition.awaitUninterruptibly ( ) ; } while ( ! ( guard.isSatisfied ( ) ) ) ; } finally { endWaitingFor ( guard ) ; } }
Source:
public void testBasicCycle ( ) { com.android.tools.perflib.heap.Heap heap = new com.android.tools.perflib.heap.analysis.HeapBuilder ( 3 ) . addReference ( 1 , 2 ) . addReference ( 2 , 3 ) . addReference ( 3 , 1 ) . addRoot ( 1 ) . getHeap ( ) ; assertEquals ( 6 , heap.getInstance ( 1 ) . getCompositeSize ( ) ) ; assertEquals ( 6 , heap.getInstance ( 2 ) . getCompositeSize ( ) ) ; assertEquals ( 6 , heap.getInstance ( 3 ) . getCompositeSize ( ) ) ; }

Target:
public void testBasicCycle ( ) { com.android.tools.perflib.heap.Snapshot snapshot = new com.android.tools.perflib.heap.analysis.SnapshotBuilder ( 3 ) . addReference ( 1 , 2 ) . addReference ( 2 , 3 ) . addReference ( 3 , 1 ) . addRoot ( 1 ) . getSnapshot ( ) ; assertEquals ( 6 , snapshot.findReference ( 1 ) . getCompositeSize ( ) ) ; assertEquals ( 6 , snapshot.findReference ( 2 ) . getCompositeSize ( ) ) ; assertEquals ( 6 , snapshot.findReference ( 3 ) . getCompositeSize ( ) ) ; }
Source:
public void onLoadFinished ( android.content.Loader < java.util.List < android.printservice.PrintServiceInfo > > loader , java.util.List < android.printservice.PrintServiceInfo > data ) { switch ( loader.getId ( ) ) { case com.android.printspooler.ui.AddPrinterActivity.LOADER_ID_ENABLED_SERVICES : mEnabledServicesAdapter.updateData ( data ) ; break ; case com.android.printspooler.ui.AddPrinterActivity.LOADER_ID_DISABLED_SERVICES : mDisabledServicesAdapter.updateData ( data ) ; break ; case com.android.printspooler.ui.AddPrinterActivity.LOADER_ID_ALL_SERVICES : mRecommendedServicesAdapter.updateInstalledServices ( data ) ; default : } }

Target:
public void onLoadFinished ( android.content.Loader < java.util.List < android.printservice.PrintServiceInfo > > loader , java.util.List < android.printservice.PrintServiceInfo > data ) { switch ( loader.getId ( ) ) { case com.android.printspooler.ui.AddPrinterActivity.LOADER_ID_ENABLED_SERVICES : mEnabledServicesAdapter.updateData ( data ) ; break ; case com.android.printspooler.ui.AddPrinterActivity.LOADER_ID_DISABLED_SERVICES : mDisabledServicesAdapter.updateData ( data ) ; break ; case com.android.printspooler.ui.AddPrinterActivity.LOADER_ID_ALL_SERVICES : if ( mHasVending ) { mRecommendedServicesAdapter.updateInstalledServices ( data ) ; } else { mNoPrintServiceMessageAdapter.updateInstalledServices ( data ) ; } default : } }
Source:
public com.android.jack.library.InputJackLibrary checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull java.lang.String string ) throws com.android.sched.util.codec.ParsingException { com.android.sched.vfs.InputVFS vfs = codec.checkString ( context , string ) ; try { return com.android.jack.library.JackLibraryFactory.getInputLibrary ( vfs ) ; } catch ( com.android.jack.LibraryException e ) { throw new com.android.sched.util.codec.ParsingException ( e.getMessage ( ) , e ) ; } }

Target:
public com.android.jack.library.InputJackLibrary checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull java.lang.String string ) throws com.android.sched.util.codec.ParsingException { com.android.sched.vfs.VFS vfs = codec.checkString ( context , string ) ; try { return com.android.jack.library.JackLibraryFactory.getInputLibrary ( vfs ) ; } catch ( com.android.jack.LibraryException e ) { throw new com.android.sched.util.codec.ParsingException ( e.getMessage ( ) , e ) ; } }
Source:
private void removeAuthorityLocked ( android.accounts.Account account , java.lang.String authorityName , boolean doWrite ) { android.content.SyncStorageEngine.AccountInfo accountInfo = mAccounts.get ( account ) ; if ( accountInfo != null ) { final android.content.SyncStorageEngine.AuthorityInfo authorityInfo = accountInfo.authorities.remove ( authorityName ) ; if ( authorityInfo != null ) { mAuthorities.remove ( authorityInfo.ident ) ; if ( doWrite ) { writeAccountInfoLocked ( ) ; } } } }

Target:
private void removeAuthorityLocked ( android.accounts.Account account , int userId , java.lang.String authorityName , boolean doWrite ) { android.content.SyncStorageEngine.AccountInfo accountInfo = mAccounts.get ( new android.accounts.AccountAndUser ( account , userId ) ) ; if ( accountInfo != null ) { final android.content.SyncStorageEngine.AuthorityInfo authorityInfo = accountInfo.authorities.remove ( authorityName ) ; if ( authorityInfo != null ) { mAuthorities.remove ( authorityInfo.ident ) ; if ( doWrite ) { writeAccountInfoLocked ( ) ; } } } }
Source:
private void getTotalNumOfItemsRequestFromNative ( byte [ ] address , byte scope ) { android.os.Bundle data = new android.os.Bundle ( ) ; android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_NATIVE_REQ_GET_TOTAL_NUM_OF_ITEMS ) ; msg.arg1 = scope ; msg.obj = address ; mHandler.sendMessage ( msg ) ; }

Target:
private void setAddressedPlayerRequestFromNative ( byte [ ] address , int playerId ) { final com.android.bluetooth.avrcp.Avrcp.AvrcpMessageHandler handler = mHandler ; if ( handler == null ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , "setAddressedPlayerRequestFromNative: mHandler is already null" ) ; return ; } android.os.Message msg = handler.obtainMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_NATIVE_REQ_SET_ADDR_PLAYER , playerId , 0 ) ; msg.obj = address ; handler.sendMessage ( msg ) ; }
Source:
private java.io.File getPathSettingsFile ( ) { return new java.io.File ( getWorkspaceLocation ( ) , ( ( ( ( ( ( ( ( ".metadata" + ( java.io.File.separator ) ) + ".plugins" ) + ( java.io.File.separator ) ) + "org.eclipse.core.runtime" ) + ( java.io.File.separator ) ) + ".settings" ) + ( java.io.File.separator ) ) + "org.eclipse.core.resources.prefs" ) ) ; }

Target:
private java.io.File getRuntimeSettingsDir ( ) { return new java.io.File ( getWorkspaceLocation ( ) , ( ( ( ( ( ( ".metadata" + ( java.io.File.separator ) ) + ".plugins" ) + ( java.io.File.separator ) ) + "org.eclipse.core.runtime" ) + ( java.io.File.separator ) ) + ".settings" ) ) ; }
Source:
public void serverReadPhy ( int clientIf , java.lang.String address ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; }

Target:
public void serverSetPreferredPhy ( int serverIf , java.lang.String address , int txPhy , int rxPhy , int phyOptions ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.serverSetPreferredPhy ( serverIf , address , txPhy , rxPhy , phyOptions ) ; }
Source:
public int dexopt ( java.lang.String apkPath , int uid , boolean isPublic , java.lang.String pkgName , java.lang.String instructionSet , boolean vmSafeMode , boolean debuggable ) { if ( ! ( com.android.server.pm.Installer.isValidInstructionSet ( instructionSet ) ) ) { android.util.Slog.e ( com.android.server.pm.Installer.TAG , ( "Invalid instruction set: " + instructionSet ) ) ; return - 1 ; } return mInstaller.dexopt ( apkPath , uid , isPublic , pkgName , instructionSet , vmSafeMode , debuggable ) ; }

Target:
public int dexopt ( java.lang.String apkPath , int uid , boolean isPublic , java.lang.String pkgName , java.lang.String instructionSet , boolean vmSafeMode , boolean debuggable , @ android.annotation.Nullable java.lang.String outputPath ) { if ( ! ( com.android.server.pm.Installer.isValidInstructionSet ( instructionSet ) ) ) { android.util.Slog.e ( com.android.server.pm.Installer.TAG , ( "Invalid instruction set: " + instructionSet ) ) ; return - 1 ; } return mInstaller.dexopt ( apkPath , uid , isPublic , pkgName , instructionSet , vmSafeMode , debuggable , outputPath ) ; }
Source:
public void TestCoverage ( ) { com.ibm.icu.util.Currency usd = com.ibm.icu.util.Currency.getInstance ( "USD" ) ; if ( ! ( noData ( ) ) ) { assertEquals ( "USD.getSymbol()" , "$" , usd.getSymbol ( ) ) ; } }

Target:
public void testGetName_Locale_Int_String_BooleanArray ( ) { com.ibm.icu.util.Currency currency = com.ibm.icu.util.Currency.getInstance ( ULocale.CHINA ) ; boolean [ ] isChoiceFormat = new boolean [ 1 ] ; int nameStyle = com.ibm.icu.util.Currency.LONG_NAME ; java.lang.String pluralCount = "" ; java.lang.String ulocaleName = currency.getName ( ULocale.CANADA , nameStyle , pluralCount , isChoiceFormat ) ; assertEquals ( "currency name mismatch" , "Chinese Yuan" , ulocaleName ) ; java.lang.String localeName = currency.getName ( java.util.Locale.CANADA , nameStyle , pluralCount , isChoiceFormat ) ; assertEquals ( "currency name mismatch" , ulocaleName , localeName ) ; }
Source:
public void addRegistrationCallback ( android.telephony.ims.stub.ImsRegistrationImplBase.Callback callback ) { }

Target:
public void addRegistrationCallback ( android.telephony.ims.stub.ImsRegistrationImplBase.Callback callback ) throws com.android.ims.ImsException { if ( callback == null ) { throw new java.lang.NullPointerException ( "registration callback can't be null" ) ; } checkAndThrowExceptionIfServiceUnavailable ( ) ; try { mMmTelFeatureConnection.addRegistrationCallback ( callback ) ; com.android.ims.ImsManager.log ( "Registration Callback registered." ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "addRegistrationCallback(IRIB)" , e , android.telephony.ims.ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } }
Source:
public void requestPeers ( android.net.wifi.p2p.WifiP2pManager.Channel c , android.net.wifi.p2p.WifiP2pManager.PeerListListener listener ) { android.net.wifi.p2p.WifiP2pManager.checkChannel ( c ) ; c.mAsyncChannel.sendMessage ( android.net.wifi.p2p.WifiP2pManager.REQUEST_PEERS , 0 , c.putListener ( listener ) ) ; }

Target:
public void requestPeers ( android.net.wifi.p2p.WifiP2pManager.Channel c , android.net.wifi.p2p.WifiP2pManager.PeerListListener listener ) { android.net.wifi.p2p.WifiP2pManager.checkChannel ( c ) ; android.os.Bundle callingPackage = new android.os.Bundle ( ) ; callingPackage.putString ( android.net.wifi.p2p.WifiP2pManager.CALLING_PACKAGE , c.mContext.getOpPackageName ( ) ) ; c.mAsyncChannel.sendMessage ( android.net.wifi.p2p.WifiP2pManager.REQUEST_PEERS , 0 , c.putListener ( listener ) , callingPackage ) ; }
Source:
public void testCertificateParsingException02 ( ) { javax.security.cert.CertificateParsingException tE ; for ( int i = 0 ; i < ( tests.api.javax.security.cert.CertificateParsingExceptionTest.msgs.length ) ; i ++ ) { tE = new javax.security.cert.CertificateParsingException ( tests.api.javax.security.cert.CertificateParsingExceptionTest.msgs [ i ] ) ; assertEquals ( "getMessage() must return: " . concat ( tests.api.javax.security.cert.CertificateParsingExceptionTest.msgs [ i ] ) , tE.getMessage ( ) , tests.api.javax.security.cert.CertificateParsingExceptionTest.msgs [ i ] ) ; assertNull ( "getCause() must return null" , tE.getCause ( ) ) ; } }

Target:
public void testCertificateParsingException02 ( ) { javax.security.cert.CertificateParsingException tE ; for ( int i = 0 ; i < ( org.apache.harmony.tests.javax.security.cert.CertificateParsingExceptionTest.msgs.length ) ; i ++ ) { tE = new javax.security.cert.CertificateParsingException ( org.apache.harmony.tests.javax.security.cert.CertificateParsingExceptionTest.msgs [ i ] ) ; assertEquals ( "getMessage() must return: " . concat ( org.apache.harmony.tests.javax.security.cert.CertificateParsingExceptionTest.msgs [ i ] ) , tE.getMessage ( ) , org.apache.harmony.tests.javax.security.cert.CertificateParsingExceptionTest.msgs [ i ] ) ; assertNull ( "getCause() must return null" , tE.getCause ( ) ) ; } }
Source:
public void TestDefaultProvider ( ) { android.icu.text.RuleBasedNumberFormat formatter = new android.icu.text.RuleBasedNumberFormat ( java.util.Locale.US , android.icu.text.RuleBasedNumberFormat.SPELLOUT ) ; formatter.setLenientScannerProvider ( null ) ; formatter.setLenientParseMode ( true ) ; java.lang.String [ ] [ ] lpTestData = new java.lang.String [ ] [ ] { new java.lang.String [ ] { "2 thousand six HUNDRED fifty-7" , "2,657" } } ; if ( logKnownIssue ( "9503" , "Lenient parse problems with English RBNF" ) ) { logln ( "Can't do lenient parse test due to http://bugs.icu-project.org/trac/ticket/9503" ) ; } else { doLenientParseTest ( formatter , lpTestData ) ; } }

Target:
public void TestDefaultProvider ( ) { android.icu.text.RuleBasedNumberFormat formatter = new android.icu.text.RuleBasedNumberFormat ( java.util.Locale.US , android.icu.text.RuleBasedNumberFormat.SPELLOUT ) ; formatter.setLenientScannerProvider ( null ) ; formatter.setLenientParseMode ( true ) ; java.lang.String [ ] [ ] lpTestData = new java.lang.String [ ] [ ] { new java.lang.String [ ] { "2 thousand six HUNDRED fifty-7" , "2,657" } } ; doLenientParseTest ( formatter , lpTestData ) ; }
Source:
public void testTransmitFollowupFail ( ) throws org.json.JSONException { final short transactionId = 5689 ; android.os.Bundle args = new android.os.Bundle ( ) ; args.putInt ( "id" , transactionId ) ; args.putInt ( "reason" , WifiNanNative.NAN_STATUS_TX_FAIL ) ; com.android.server.wifi.nan.WifiNanHalMock.callTransmitFollowup ( com.android.server.wifi.HalMockUtils.convertBundleToJson ( args ) . toString ( ) ) ; org.mockito.Mockito.verify ( mNanStateManager ) . onMessageSendFailNotification ( transactionId , WifiNanNative.NAN_STATUS_TX_FAIL ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mNanStateManager ) ; }

Target:
public void testTransmitFollowupFail ( ) throws org.json.JSONException { final short transactionId = 5689 ; android.os.Bundle args = new android.os.Bundle ( ) ; args.putInt ( "id" , transactionId ) ; args.putInt ( "reason" , WifiAwareNative.AWARE_STATUS_TX_FAIL ) ; com.android.server.wifi.aware.WifiAwareHalMock.callTransmitFollowup ( com.android.server.wifi.HalMockUtils.convertBundleToJson ( args ) . toString ( ) ) ; org.mockito.Mockito.verify ( mAwareStateManager ) . onMessageSendFailNotification ( transactionId , WifiAwareNative.AWARE_STATUS_TX_FAIL ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mAwareStateManager ) ; }
Source:
public void testInterfaceCountersUdp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.getKey ( 256 ) ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_MD5 , android.net.cts.IpSecManagerTest.getKey ( 128 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , false , 1000 , false ) ; }

Target:
public void testInterfaceCountersUdp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_MD5 , getAuthKey ( 128 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1000 , false ) ; }
Source:
private static void add ( @ org.jetbrains.annotations.NotNull java.util.Map < java.lang.Integer , com.intellij.openapi.util.Pair < java.lang.String , com.intellij.execution.RunnerAndConfigurationSettings > > map , @ org.jetbrains.annotations.NotNull com.intellij.execution.RunnerAndConfigurationSettings settings ) { if ( ( settings.getConfiguration ( ) ) instanceof com.intellij.openapi.externalSystem.service.execution.ExternalSystemRunConfiguration ) { map.put ( java.lang.System.identityHashCode ( settings ) , com.intellij.openapi.util.Pair.create ( getRunConfigurationActivationTaskName ( settings ) , settings ) ) ; } }

Target:
private static void add ( @ org.jetbrains.annotations.NotNull java.util.Map < java.lang.Integer , com.intellij.openapi.util.Pair < java.lang.String , com.intellij.execution.RunnerAndConfigurationSettings > > map , @ org.jetbrains.annotations.NotNull com.intellij.execution.RunnerAndConfigurationSettings settings ) { if ( ( settings.getConfiguration ( ) ) instanceof com.intellij.openapi.externalSystem.service.execution.ExternalSystemRunConfiguration ) { map.put ( java.lang.System.identityHashCode ( settings ) , com.intellij.openapi.util.Pair.create ( com.intellij.openapi.externalSystem.service.project.manage.ExternalSystemTaskActivator.getRunConfigurationActivationTaskName ( settings ) , settings ) ) ; } }
Source:
public com.android.jack.test.toolchain.LegacyToolchain build ( ) { return new com.android.jack.test.toolchain.LegacyToolchain ( com.android.jack.test.toolchain.AbstractTestTools.getPrebuilt ( "legacy-java-compiler" ) , com.android.jack.test.toolchain.AbstractTestTools.getPrebuiltsAsClasspath ( "legacy-java-compiler.bootclasspath" ) , com.android.jack.test.toolchain.AbstractTestTools.getPrebuilt ( "jarjar" ) , com.android.jack.test.toolchain.AbstractTestTools.getPrebuilt ( "proguard" ) , com.android.jack.test.toolchain.AbstractTestTools.getPrebuilt ( "dx" ) , isDesugarEnabled ) ; }

Target:
public com.android.jack.test.toolchain.LegacyBasedToolchain build ( ) { return isDesugarEnabled ? new com.android.jack.test.toolchain.LegacyDesugarToolchain ( com.android.jack.test.toolchain.AbstractTestTools.getPrebuilt ( "legacy-java-compiler" ) , com.android.jack.test.toolchain.AbstractTestTools.getPrebuiltsAsClasspath ( "legacy-java-compiler.bootclasspath" ) , com.android.jack.test.toolchain.AbstractTestTools.getPrebuilt ( "jarjar" ) , com.android.jack.test.toolchain.AbstractTestTools.getPrebuilt ( "proguard" ) , com.android.jack.test.toolchain.AbstractTestTools.getPrebuilt ( "dx" ) ) : new com.android.jack.test.toolchain.LegacyNoDesugarToolchain ( com.android.jack.test.toolchain.AbstractTestTools.getPrebuilt ( "legacy-java-compiler" ) , com.android.jack.test.toolchain.AbstractTestTools.getPrebuiltsAsClasspath ( "legacy-java-compiler.bootclasspath" ) , com.android.jack.test.toolchain.AbstractTestTools.getPrebuilt ( "jarjar" ) , com.android.jack.test.toolchain.AbstractTestTools.getPrebuilt ( "proguard" ) , com.android.jack.test.toolchain.AbstractTestTools.getPrebuilt ( "dx" ) ) ; }
Source:
public void testUngrant_DoubleUngrant_Failure ( ) throws java.lang.Exception { assertTrue ( "Password should work for keystore" , mKeyStore.password ( android.security.KeyStoreTest.TEST_PASSWD ) ) ; assertTrue ( "Should be able to generate key for testcase" , mKeyStore.generate ( android.security.KeyStoreTest.TEST_KEYNAME , KeyStore.UID_SELF , KeyStore.FLAG_ENCRYPTED ) ) ; assertTrue ( "Should be able to grant key to other user" , mKeyStore.grant ( android.security.KeyStoreTest.TEST_KEYNAME , 0 ) ) ; assertTrue ( "Should be able to ungrant key to other user" , mKeyStore.ungrant ( android.security.KeyStoreTest.TEST_KEYNAME , 0 ) ) ; assertFalse ( "Should fail to ungrant key to other user second time" , mKeyStore.ungrant ( android.security.KeyStoreTest.TEST_KEYNAME , 0 ) ) ; }

Target:
public void testUngrant_NoGrant_Failure ( ) throws java.lang.Exception { assertTrue ( "Password should work for keystore" , mKeyStore.password ( android.security.KeyStoreTest.TEST_PASSWD ) ) ; assertTrue ( "Should be able to generate key for testcase" , mKeyStore.generate ( android.security.KeyStoreTest.TEST_KEYNAME , KeyStore.UID_SELF , NativeCrypto.EVP_PKEY_RSA , 1024 , KeyStore.FLAG_ENCRYPTED , null ) ) ; assertFalse ( "Should not be able to revoke not existent grant" , mKeyStore.ungrant ( android.security.KeyStoreTest.TEST_KEYNAME , 0 ) ) ; }
Source:
public final long getLong ( ) { int newPosition = ( position ) + ( libcore.io.SizeOf.LONG ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferUnderflowException ( ) ; } long result = this . block.peekLong ( ( ( offset ) + ( position ) ) , order ) ; position = newPosition ; return result ; }

Target:
public final char getChar ( ) { int newPosition = ( position ) + ( libcore.io.SizeOf.CHAR ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferUnderflowException ( ) ; } char result = ( ( char ) ( this . block.peekShort ( ( ( offset ) + ( position ) ) , order ) ) ) ; position = newPosition ; return result ; }
Source:
private void startUp ( ) { com.android.preload.Main.getUI ( ) . showWaitDialog ( ) ; initDevice ( ) ; new com.android.preload.actions.ReloadListAction ( com.android.preload.Main.clientUtils , getDevice ( ) , clientListModel ) . run ( ) ; com.android.preload.Main.getUI ( ) . hideWaitDialog ( ) ; }

Target:
private void startUp ( ) { com.android.preload.Main.getUI ( ) . showWaitDialog ( ) ; initDevice ( ) ; new com.android.preload.actions.ReloadListAction ( com.android.preload.Main.clientUtils , getDevice ( ) , clientListModel ) . run ( ) ; com.android.preload.Main.getUI ( ) . hideWaitDialog ( ) ; com.android.preload.Main.getUI ( ) . ready ( ) ; }
Source:
public void adjustLabel ( com.android.sdklib.internal.repository.SdkSource source ) { if ( ( ( getLabel ( ) ) == null ) || ( getLabel ( ) . startsWith ( "http" ) ) ) { setLabel ( ( source == ( com.android.sdkuilib.internal.repository.sdkman2.PkgCategorySource.UNKNOWN_SOURCE ) ? "Local Packages" : source.toString ( ) ) ) ; } }

Target:
public void adjustLabel ( com.android.sdklib.internal.repository.sources.SdkSource source ) { if ( ( ( getLabel ( ) ) == null ) || ( getLabel ( ) . startsWith ( "http" ) ) ) { setLabel ( ( source == ( com.android.sdkuilib.internal.repository.sdkman2.PkgCategorySource.UNKNOWN_SOURCE ) ? "Local Packages" : source.toString ( ) ) ) ; } }
Source:
public void setVoiceRadioTech ( int radioTech ) { synchronized ( mLock ) { if ( com.android.internal.telephony.uicc.IccCardProxy.DBG ) { log ( ( "Setting radio tech " + ( android.telephony.ServiceState.rilRadioTechnologyToString ( radioTech ) ) ) ) ; } if ( android.telephony.ServiceState.isGsm ( radioTech ) ) { mCurrentAppType = com.android.internal.telephony.uicc.UiccController.APP_FAM_3GPP ; } else { mCurrentAppType = com.android.internal.telephony.uicc.UiccController.APP_FAM_3GPP2 ; } updateQuietMode ( ) ; } }

Target:
public void setVoiceRadioTech ( int radioTech ) { synchronized ( mLock ) { if ( com.android.internal.telephony.uicc.IccCardProxy.DBG ) { log ( ( "Setting radio tech " + ( android.telephony.ServiceState.rilRadioTechnologyToString ( radioTech ) ) ) ) ; } if ( android.telephony.ServiceState.isGsm ( radioTech ) ) { mCurrentAppType = UiccController.APP_FAM_3GPP ; } else { mCurrentAppType = UiccController.APP_FAM_3GPP2 ; } updateQuietMode ( ) ; } }
Source:
public void removeScheduledRecording ( com.android.tv.dvr.ScheduledRecording ... schedules ) { android.util.Log.i ( com.android.tv.dvr.DvrManager.TAG , ( "Removing " + ( java.util.Arrays.asList ( schedules ) ) ) ) ; if ( ! ( com.android.tv.common.SoftPreconditions.checkState ( mDataManager.isDvrScheduleLoadFinished ( ) ) ) ) { return ; } for ( com.android.tv.dvr.ScheduledRecording r : schedules ) { if ( ( r.getState ( ) ) == ( ScheduledRecording.STATE_RECORDING_IN_PROGRESS ) ) { stopRecording ( r ) ; } else { mDataManager.removeScheduledRecording ( r ) ; } } }

Target:
public void forceRemoveScheduledRecording ( com.android.tv.dvr.data.ScheduledRecording ... schedules ) { android.util.Log.i ( com.android.tv.dvr.DvrManager.TAG , ( "Force removing " + ( java.util.Arrays.asList ( schedules ) ) ) ) ; if ( ! ( com.android.tv.common.SoftPreconditions.checkState ( mDataManager.isDvrScheduleLoadFinished ( ) ) ) ) { return ; } for ( com.android.tv.dvr.data.ScheduledRecording r : schedules ) { if ( ( r.getState ( ) ) == ( com.android.tv.dvr.data.ScheduledRecording.STATE_RECORDING_IN_PROGRESS ) ) { stopRecording ( r ) ; } else { mDataManager.removeScheduledRecording ( true , r ) ; } } }